Stream: git-wasmtime

Topic: wasmtime / PR #11507 Exceptions: handle `try_table` in un...


view this post on Zulip Wasmtime GitHub notifications bot (Aug 22 2025 at 01:23):

cfallin opened PR #11507 from cfallin:unreachable-try-table to bytecodealliance:main:

Our Wasm-to-CLIF translator has a separate match-over-opcodes for unreachable code that mostly does nothing, but needs to push entries onto the control stack so that end-opcode processing works properly and tracks the bytecode's nesting (which is important because after an end we might re-enter reachable code).

Previously, try_table was not handled here -- it fell into the catchall case that did nothing -- so a try_table in unreachable code (most trivially, (unreachable) (try_table) in any block) would result in a panic. This PR fixes that by updating try_table handling to work like block and loop in unreachable contexts.

Fixes #11505.

<!--
Please make sure you include the following information:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

view this post on Zulip Wasmtime GitHub notifications bot (Aug 22 2025 at 01:23):

cfallin requested fitzgen for a review on PR #11507.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 22 2025 at 01:23):

cfallin requested wasmtime-compiler-reviewers for a review on PR #11507.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 22 2025 at 01:23):

cfallin requested wasmtime-core-reviewers for a review on PR #11507.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 22 2025 at 03:19):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 22 2025 at 03:42):

alexcrichton merged PR #11507.


Last updated: Dec 06 2025 at 07:03 UTC