Skip to content

Conversation

sirtimid
Copy link
Contributor

@sirtimid sirtimid commented Sep 5, 2025

Closes #613

Fix when sending messages to objects owned by terminated vats, the kernel should reject the message with a "no vat" error. Added a test to validate.

@sirtimid sirtimid requested a review from a team as a code owner September 5, 2025 13:04
@@ -145,7 +145,7 @@ export class KernelRouter {
if (this.#kernelStore.isRevoked(targetObject)) {
return routeAsSplat(kser('revoked object'));
}
const vatId = this.#kernelStore.getOwner(targetObject);
const vatId = this.#kernelStore.getOwner(targetObject, false);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this just prevents getOwner to throw

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we just get rid of the second param of getOwner()? Before this change it was only ever true, now it is only ever false in production code.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done a0a9621

@sirtimid sirtimid enabled auto-merge (squash) September 8, 2025 12:57
@sirtimid sirtimid requested a review from rekmarks September 8, 2025 13:06
Copy link
Member

@rekmarks rekmarks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@sirtimid sirtimid merged commit a0e984d into main Sep 8, 2025
23 checks passed
@sirtimid sirtimid deleted the sirtimid/message-terminated-vat branch September 8, 2025 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Messages to terminated vat objects cause kernel hangs instead of proper error handling
2 participants