Contributor
Siddharth Tewari

Implementing Coredump for Post-Mortem Debugging in WebAssembly


Mentors
hydai, Shen-Ta Hsieh
Organization
CNCF
Technologies
c++, webassembly
Topics
cloud native, container, Serverless, webassembly, Debugger
This project aims to implement wasm-coredump, to enhance the debugging capabilities of WebAssembly by implementing a coredump feature for post-mortem analysis for the wasmedge runtime. When WebAssembly encounters a runtime error, it will start unwinding and initiate a process to collect debugging information, including stack frames, local variable values, and a snapshot of the linear memory. For each stack frame, it will collect the values in locals (includes function parameters) and on the stack. Along with binary offsets to resolve to source file locations. This data is saved in a coredump file, which can be analysed post-mortem to debug the error using tools like wasmgdb