alexcrichton requested dicej for a review on PR #14923.
alexcrichton opened PR #14923 from alexcrichton:fix-bail-bug-4 to bytecodealliance:main:
This commit fixes a possible
bail_bug!being hit when a guest task is cancelled before it's started. In this situation the pending "switch item" was getting mixed up due to the assumptions of the internalcleanup_threadfunction.<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease review the Bytecode Alliance's AI tool usage policy at
https://github.com/bytecodealliance/governance/blob/main/AI_TOOL_POLICY.mdPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
alexcrichton requested wasmtime-core-reviewers for a review on PR #14923.
:thumbs_up: dicej submitted PR review:
Eventually we should run out of forgot-to-save-and-restore-next-switch-context bugs to find and fix. They've got to be finite, right?
alexcrichton added PR #14923 Fix a bail_bug! eagerly cancelling a guest task to the merge queue.
:check: alexcrichton merged PR #14923.
alexcrichton removed PR #14923 Fix a bail_bug! eagerly cancelling a guest task from the merge queue.
Last updated: Oct 31 2026 at 23:03 UTC