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

Panic compiling a memory operation with fuel and nonstandard configuration #5445

Closed
alexcrichton opened this issue Dec 15, 2022 · 1 comment
Labels
fuzz-bug Bugs found by a fuzzer

Comments

@alexcrichton
Copy link
Member

This input module:

(module
  (func
    (local i32 i64)
    local.get 0
    i64.load8_s offset=2147483631
    local.set 1
  )
  (memory  1 1)
)

will fail to compile with:

$ cargo run compile testcase0.wat --fuel 0 --static-memory-maximum-size 538976288 
...
thread '<unnamed>' panicked at 'assertion failed: `(left == right)`
  left: `2`,
 right: `0`', crates/cranelift/src/func_environ.rs:388:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

cc @fitzgen as bisection shows that this was a regression from #5386

@alexcrichton alexcrichton added the fuzz-bug Bugs found by a fuzzer label Dec 15, 2022
@fitzgen
Copy link
Member

fitzgen commented Dec 15, 2022

Thanks! Looking into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fuzz-bug Bugs found by a fuzzer
Projects
None yet
Development

No branches or pull requests

2 participants