fitzgen opened PR #13378 from fitzgen:fallibe-alloc-wasm-backtrace to bytecodealliance:main:
Switch the internal
vm::Backtraceto useTryVecinstead ofVec, breaking out of frame collection on OOM instead of aborting. In the publicWasmBacktrace, useTryVec::with_capacityand gracefully return an empty backtrace if the initial allocation fails, or break out of the loop if a push fails.Truncated backtraces are better than aborting the process.
<!--
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
-->
fitzgen requested dicej for a review on PR #13378.
fitzgen requested wasmtime-core-reviewers for a review on PR #13378.
:thumbs_up: alexcrichton submitted PR review.
github-actions[bot] added the label wasmtime:api on PR #13378.
fitzgen updated PR #13378.
fitzgen has enabled auto merge for PR #13378.
fitzgen added PR #13378 Use fallible allocation for Wasm backtraces to the merge queue.
:check: fitzgen merged PR #13378.
fitzgen removed PR #13378 Use fallible allocation for Wasm backtraces from the merge queue.
Last updated: Jun 01 2026 at 09:49 UTC