Skip to content

jcaesar/wasmer-stack-trace-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Wasmer module with a stack trace

Building the guest (can be skipped, the result is checked in):

cargo build --manifest-path guest/Cargo.toml --release --target wasm32-unknown-unknown
cp guest/target/wasm32-unknown-unknown/release/stackpanic.wasm host/

Running the host:

cargo run --manifest-path host/Cargo.toml

The expected output:

RuntimeError: unreachable
	<module>::rust_begin_unwind
	<module>::core::panicking::panic_fmt
	<module>::core::panicking::panic
	<module>::stackpanic::c
	<module>::stackpanic::b
	<module>::a

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages