Stream: git-wasmtime

Topic: wasmtime / PR #14654 Debug support: handle panics in host...


view this post on Zulip Wasmtime GitHub notifications bot (Oct 10 2026 at 04:38):

cfallin opened PR #14654 from cfallin:fix-debug-handler-panic to bytecodealliance:main:

If the debugger handles a hostcall-error debug event by panicking, that panic currently happens within the raise() libcall, which itself must not panic (because previously, it never ran user host code). A panic in that context would abort the process (because it would happen in an extern "C" function).

This PR wraps the debug event handler invocation in a catch_unwind and, if a panic occurs in the debug hook, replaces the unwind reason with that panic.

<!--
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 review the Bytecode Alliance's AI tool usage policy at
https://github.com/bytecodealliance/governance/blob/main/AI_TOOL_POLICY.md

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 (Oct 10 2026 at 04:38):

cfallin requested dicej for a review on PR #14654.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 10 2026 at 04:38):

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

view this post on Zulip Wasmtime GitHub notifications bot (Oct 10 2026 at 07:00):

github-actions[bot] added the label wasmtime:api on PR #14654.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 10 2026 at 18:09):

:thumbs_up: alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 10 2026 at 18:09):

alexcrichton added PR #14654 Debug support: handle panics in hostcall-error debug hook. to the merge queue

view this post on Zulip Wasmtime GitHub notifications bot (Oct 10 2026 at 18:32):

:check: alexcrichton merged PR #14654.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 10 2026 at 18:32):

alexcrichton removed PR #14654 Debug support: handle panics in hostcall-error debug hook. from the merge queue


Last updated: Oct 11 2026 at 04:10 UTC