Stream: git-wasmtime

Topic: wasmtime / PR #15268 Clean up the rendering of a core dum...


view this post on Zulip Wasmtime GitHub notifications bot (Nov 13 2026 at 19:29):

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 executed

and 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 executed

This 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:

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 (Nov 13 2026 at 19:29):

alexcrichton removed the review request for wasmtime-core-reviewers from PR #15268.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 13 2026 at 19:29):

alexcrichton requested pchickey for a review on PR #15268.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 13 2026 at 19:29):

alexcrichton requested wasmtime-core-reviewers for a review on PR #15268.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 13 2026 at 19:29):

alexcrichton removed the review request for wasmtime-default-reviewers from PR #15268.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 13 2026 at 19:29):

alexcrichton requested fitzgen for a review on PR #15268.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 13 2026 at 19:29):

alexcrichton requested wasmtime-default-reviewers for a review on PR #15268.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 13 2026 at 19:34):

:thumbs_up: pchickey submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 13 2026 at 19:36):

alexcrichton has enabled auto merge for PR #15268.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 13 2026 at 19:40):

alexcrichton added PR #15268 Clean up the rendering of a core dump error to the merge queue.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 13 2026 at 20:03):

alexcrichton removed PR #15268 Clean up the rendering of a core dump error from the merge queue.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 13 2026 at 20:03):

:check: alexcrichton merged PR #15268.


Last updated: Nov 19 2026 at 20:05 UTC