alexcrichton opened PR #15268 from alexcrichton:clean-up-core-dump-output to bytecodealliance:main:
Prior to this commit the rendering of the error in #15267 looked like this:
Error: failed to run main module `foo.wat` Caused by: 0: core dumped at out.core 1: failed to invoke `trap` 2: wasm coredump generated while executing store_name: modules: <module> instances: Instance { id: StoreInstanceId { store_id: StoreId(2), instance: InstanceId(1) } } memories: Memory { instance: StoreInstanceId { store_id: StoreId(2), instance: InstanceId(1) }, index: DefinedMemoryIndex(0) } Memory { instance: StoreInstanceId { store_id: StoreId(2), instance: InstanceId(1) }, index: DefinedMemoryIndex(1) } globals: backtrace: error while executing at wasm backtrace: 0: 0x2b - <unknown>!<wasm function 0> 3: error while executing at wasm backtrace: 0: 0x2b - <unknown>!<wasm function 0> 4: wasm trap: wasm `unreachable` instruction executedand now it looks like this:
Error: failed to run main module `foo.wat` Caused by: 0: core dumped at out.core 1: failed to invoke `trap` 2: wasm core dump captured 3: error while executing at wasm backtrace: 0: 0x2b - <unknown>!<wasm function 0> 4: wasm trap: wasm `unreachable` instruction executedThis avoid printing unnecessary debug representations, avoids double-printing a backtrace, fixes printing indentation in multi-line error contexts, and then trims down the info about the core dump.
<!--
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 removed the review request for wasmtime-core-reviewers from PR #15268.
alexcrichton requested pchickey for a review on PR #15268.
alexcrichton requested wasmtime-core-reviewers for a review on PR #15268.
alexcrichton removed the review request for wasmtime-default-reviewers from PR #15268.
alexcrichton requested fitzgen for a review on PR #15268.
alexcrichton requested wasmtime-default-reviewers for a review on PR #15268.
:thumbs_up: pchickey submitted PR review.
alexcrichton has enabled auto merge for PR #15268.
alexcrichton added PR #15268 Clean up the rendering of a core dump error to the merge queue.
alexcrichton removed PR #15268 Clean up the rendering of a core dump error from the merge queue.
:check: alexcrichton merged PR #15268.
Last updated: Nov 19 2026 at 20:05 UTC