Wasmtime: lightbeam panicked when either run or wasm2obj

Created on 9 Nov 2020  路  3Comments  路  Source: bytecodealliance/wasmtime

- What are the steps to reproduce the issue?
t.wasm is wat2wasm from below text:

(module
  (func $add (param $lhs i32) (param $rhs i32) (result i32)
    get_local $lhs
    get_local $rhs
    i32.add)
  (export "add" (func $add))
)

./wasmtime run --lightbeam t.wasm 1 2
./wasmtime wasm2obj --lightbeam t.wasm t.obj
- What do you expect to happen? What does actually happen? Does it panic, and
if so, with which assertion?

Expect to be run without any issue. Got error with the output:

thread 'main' panicked at 'index out of bounds: the len is 0 but the index is 0', /PATH/wasmtime/crates/lightbeam/src/backend.rs:637:35
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

- Which Wasmtime version / commit hash / branch are you using?
main latest by now, commit 12e658a1ef344ccacf872accb0cadd7ef6e8cf4a
- If relevant, can you include some extra information about your environment?
(Rust version, operating system, architecture...)
rustc 1.45.2, MacOS

bug lightbeam

All 3 comments

The lightbeam backend is known to currently have many bugs in it and is not tested on CI. It's not recommended for widespread usage. Thanks for the report, though, this is good to know when someone gets around to fixing lightbeam issues!

Are the lengths of translation.function_body_input and translation.native_signatures always the same or can they be different in some situations?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bnjbvr picture bnjbvr  路  7Comments

ckaran picture ckaran  路  5Comments

hardfist picture hardfist  路  4Comments

matthewbauer picture matthewbauer  路  5Comments

yurydelendik picture yurydelendik  路  6Comments