Skip to content

Instantly share code, notes, and snippets.

@Geal
Created November 29, 2018 22:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Geal/45d541e00e9b799eab29f2c13fadc038 to your computer and use it in GitHub Desktop.
Save Geal/45d541e00e9b799eab29f2c13fadc038 to your computer and use it in GitHub Desktop.
$ RUST_BACKTRACE=1 cargo run --bin wasmtime -- testload.wasm --function=load
Finished dev [unoptimized + debuginfo] target(s) in 0.21s
Running `target/debug/wasmtime testload.wasm --function=load`
thread '<unnamed>' panicked at 'called `Option::unwrap()` on a `None` value', libcore/option.rs:355:21
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at libstd/sys/unix/backtrace/tracing/gcc_s.rs:49
1: std::sys_common::backtrace::print
at libstd/sys_common/backtrace.rs:71
at libstd/sys_common/backtrace.rs:59
2: std::panicking::default_hook::{{closure}}
at libstd/panicking.rs:211
3: std::panicking::default_hook
at libstd/panicking.rs:227
4: <std::panicking::begin_panic::PanicPayload<A> as core::panic::BoxMeUp>::get
at libstd/panicking.rs:476
5: std::panicking::continue_panic_fmt
at libstd/panicking.rs:390
6: std::panicking::try::do_call
at libstd/panicking.rs:325
7: core::ptr::drop_in_place
at libcore/panicking.rs:77
8: core::ptr::drop_in_place
at libcore/panicking.rs:52
9: wasmtime_execute::execute::execute_by_index
at libcore/macros.rs:20
10: wasmtime_execute::traphandlers::Unwind::{{closure}}
at lib/execute/src/traphandlers.rs:45
11: wasmtime_execute::memory::PtrLen::as_mut_slice
at libstd/thread/local.rs:300
12: wasmtime_execute::memory::PtrLen::as_mut_slice
at libstd/thread/local.rs:254
13: alloc::str::<impl alloc::borrow::ToOwned for str>::to_owned
at lib/execute/src/traphandlers.rs:44
14: _ZL10HandleTrapP17macos_x64_context
at ./lib/execute/signalhandlers/SignalHandlers.cpp:408
15: _ZL19HandleMachExceptionRK16ExceptionRequest
at ./lib/execute/signalhandlers/SignalHandlers.cpp:525
16: _ZL26MachExceptionHandlerThreadPv
at ./lib/execute/signalhandlers/SignalHandlers.cpp:574
17: _pthread_body
18: _pthread_start
fatal runtime error: failed to initiate panic, error 5
Abort trap: 6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment