alexcrichton opened PR #14556 from alexcrichton:more-lockdown to bytecodealliance:main:
This commit updates the
poll_untilevent loop to stop harder once the event loop encounters a trap. Previously it was still possible to execute preexisting wasm tasks through the event loop, for example, when the purpose of the lockdown-on-trap is to halt everything and drop everything on the floor. This is a small fix in the main event loop plus a minor adjustment to turn abail_bug!into a normalbail!since it's expected to be possible to hit.<!--
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 dicej for a review on PR #14556.
alexcrichton requested wasmtime-core-reviewers for a review on PR #14556.
:thumbs_up: dicej submitted PR review:
This is going to help a lot; I wish we had done it sooner. Thanks!
alexcrichton added PR #14556 Lock the store down further on a trap to the merge queue.
:check: alexcrichton merged PR #14556.
alexcrichton removed PR #14556 Lock the store down further on a trap from the merge queue.
Last updated: Oct 11 2026 at 04:10 UTC