WebAssembly / tool-conventions

Conventions supporting interoperatibility between tools working with WebAssembly.
Artistic License 2.0
297 stars 65 forks source link

Wasm coredump format #190

Closed xtuc closed 1 year ago

xtuc commented 1 year ago

I'd like to propose a format to represent coredumps in Wasm, or at least start the discussion. I already made an initial document here https://github.com/xtuc/wasm-coredump-format/blob/main/README.md, including some experimental tooling to PoC the idea.

I'm using it to debug crashes from a project running on Cloudlare Workers and I'm seeing interest from other people. Do you think it make sense to add it to the tooling conventions and/or standardize it?

I went ahead and made my own bad version of gdb. I'm not familiar with gdb internals, is there a chance that it supports a coredump format specific to Wasm?

Edit: just noticed there's a GitHub repo specific to debugging. This issue can be moved to WebAssembly/debugging.