-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Labels
bugIncorrect behavior in the current implementation that needs fixingIncorrect behavior in the current implementation that needs fixing
Description
In the .NET repo, there's a test (see corresponding .wat file here) that defines a host function that throws a .NET exception. The .NET API turns the exception into a C API wasm_trap_t.
This results in the following trap message on Windows:
Test error message for wasmtime dotnet unit tests.
wasm backtrace:
0: 0xad - <unknown>!do_throw
However, on Linux and macOS, the Wasm frame is missing:
Test error message for wasmtime dotnet unit tests.
We should be able to properly capture the backtrace across all platforms and translate the wasm frames.
See bytecodealliance/wasmtime-dotnet#16 for an example of the failure (ignore the general I/O error encountered: Invalid argument (os error 22) failures as that's fixed by a Wasmtime PR under review).
Metadata
Metadata
Assignees
Labels
bugIncorrect behavior in the current implementation that needs fixingIncorrect behavior in the current implementation that needs fixing