Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assertion failure inside the interpreter #1244

Closed
fitzgen opened this issue Feb 12, 2019 · 2 comments
Closed

Assertion failure inside the interpreter #1244

fitzgen opened this issue Feb 12, 2019 · 2 comments

Comments

@fitzgen
Copy link
Member

fitzgen commented Feb 12, 2019

Getting this with wasm-bindgen 0.2.35. I suspect related to the walrus port? +cc @alexcrichton

  thread 'main' panicked at 'assertion failed: `(left == right)`
    left: `1`,
   right: `2`', crates/wasm-interpreter/src/lib.rs:183:9
  stack backtrace:
     0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
     1: std::sys_common::backtrace::_print
     2: std::panicking::default_hook::{{closure}}
     3: std::panicking::default_hook
     4: std::panicking::rust_panic_with_hook
     5: std::panicking::continue_panic_fmt
     6: std::panicking::begin_panic_fmt
     7: wasm_bindgen_wasm_interpreter::Interpreter::interpret_closure_descriptor
     8: wasm_bindgen_cli_support::js::closures::rewrite
     9: wasm_bindgen_cli_support::js::Context::finalize
    10: wasm_bindgen_cli_support::Bindgen::_generate
    11: wasm_bindgen::main
    12: std::rt::lang_start::{{closure}}
    13: std::panicking::try::do_call
    14: __rust_maybe_catch_panic
    15: std::rt::lang_start_internal
|   16: main
@fitzgen
Copy link
Member Author

fitzgen commented Feb 12, 2019

I had LTO enabled, this might be messing with params, leading to this assertion failure.

@fitzgen
Copy link
Member Author

fitzgen commented Feb 12, 2019

I have an incoming fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant