dicej requested alexcrichton for a review on PR #13415.
dicej requested wasmtime-core-reviewers for a review on PR #13415.
dicej opened PR #13415 from dicej:waitable-sync-async-trap to bytecodealliance:main:
...and vice-versa.
Per https://github.com/WebAssembly/component-model/pull/647, a waitable may not be added to a waitable-set while it's being used in a synchronous operation, nor may a waitable that's already added to a waitable-set be used in a synchronous operation.
Test case courtesy of Alex via #13212.
Fixes #13212
<!--
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 ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
github-actions[bot] added the label wasmtime:api on PR #13415.
github-actions[bot] added the label wasmtime:c-api on PR #13415.
dicej updated PR #13415.
I realized we don't have a test yet for adding a waitable to a set while it's involved in a sync operation; will add one.
dicej updated PR #13415.
:thumbs_up: alexcrichton submitted PR review:
Thanks!
alexcrichton added PR #13415 trap if waitable added to waitable-set while used synchronously to the merge queue.
github-merge-queue[bot] removed PR #13415 trap if waitable added to waitable-set while used synchronously from the merge queue.
alexcrichton added PR #13415 trap if waitable added to waitable-set while used synchronously to the merge queue.
github-merge-queue[bot] removed PR #13415 trap if waitable added to waitable-set while used synchronously from the merge queue.
alexcrichton added PR #13415 trap if waitable added to waitable-set while used synchronously to the merge queue.
:check: alexcrichton merged PR #13415.
alexcrichton removed PR #13415 trap if waitable added to waitable-set while used synchronously from the merge queue.
Last updated: Jun 01 2026 at 09:49 UTC