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

"stack size does not match block type" on valid wasm #815

Closed
kripken opened this issue Sep 18, 2019 · 3 comments
Closed

"stack size does not match block type" on valid wasm #815

kripken opened this issue Sep 18, 2019 · 3 comments
Labels
bug Something isn't working

Comments

@kripken
Copy link

kripken commented Sep 18, 2019

$ wasmer run a1.wasm
execute_wasm: "Can\'t compile module: ValidationError { msg: \"stack size does not match block type\" }"

The wasm file is valid, though.

Tested on wasmer 0.6.0, x86_64.

This was found by the binaryen fuzzer. Apologies it isn't smaller - the problem seems to be something to do with unreachable code, because when the reducer tries to shrink the testcase it fails.

a1.wasm.zip

@kripken kripken added the bug Something isn't working label Sep 18, 2019
@nlewycky
Copy link
Contributor

This is a bug in the version of wasmparser.rs we're using which appears to be fixed at head.

@syrusakbary
Copy link
Member

Note: this appears to be fixed in wasmparser.rs, but the issue is still happening in latest wasmer (0.11.0).

@syrusakbary
Copy link
Member

I've checked again, and this issue is now fixed in master (thanks to #1777 ).

The next release of Wasmer will be able to run the a1.wasm file provided :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants