peterhuene closed issue #1845:
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_throwHowever, 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).cc @alexcrichton @yurydelendik
peterhuene commented on issue #1845:
Closing this old issue as I am auditing my assigned issues.
Last updated: May 03 2026 at 22:13 UTC