You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
wasmtime with lightbeam backend panic due to an assert!. This issue will make program calling lightbeam as 3rd party library to crash. Instead an error should be through to let the caller handle it properly.
$ unzip panic_assert_elem_br_table.zip
$ ./target/release/wasmtime --lightbeam panic_assert_elem_br_table.wasm
thread 'main' panicked at 'Can't pass different params to different elements of `br_table` yet', crates/lightbeam/src/function_body.rs:495:29note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
Related piece of code
lightbeam panics because of a calling to assert! macro.
"Can't pass different params to different elements of `br_table` \
yet"
);
cc = new_cc;
Fix proposal
After applying the pull request 672, wasmtime will return:
$ ./target/release/wasmtime --lightbeam panic_assert_elem_br_table.wasm
Error: failed to process main module `panic_assert_elem_br_table.wasm`
Caused by:
0: WebAssembly failed to compile
1: Compilation error: Failed to translate function: Microwasm error: Can't pass different params to different elements of `br_table` yet
The text was updated successfully, but these errors were encountered:
Issue description
wasmtime
with lightbeam backend panic due to anassert!
. This issue will make program calling lightbeam as 3rd party library to crash. Instead an error should be through to let the caller handle it properly.Reproduction
wasmtime commit: 3558d41
Compilation with debug info:
Download & run testcase:
panic_assert_elem_br_table.zip
Related piece of code
lightbeam panics because of a calling to
assert!
macro.wasmtime/crates/lightbeam/src/function_body.rs
Lines 493 to 500 in 3558d41
Fix proposal
After applying the pull request 672,
wasmtime
will return:The text was updated successfully, but these errors were encountered: