-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Winch runtime segmentation fault in wasmtime 20.0.0 #8446
Comments
saulecabrera
added
winch
Winch issues or pull requests
bug
Incorrect behavior in the current implementation that needs fixing
labels
Apr 23, 2024
Thanks for the report! A couple of questions that might help diagnose the root cause:
|
I was able to reproduce, only when the |
saulecabrera
added a commit
to saulecabrera/wasmtime
that referenced
this issue
Apr 23, 2024
Fixes bytecodealliance#8446 The WebAssembly tail call proposal is currently not supported in Winch. This commit returns an error when trying to enable the tail call proposal while using Winch as the compiler. Even though the issue linked above doesn't make use of any of the tail instructions, the trampolines were generated using Cranelift's tail call calling convention.
FYI, I've opened #8447, to address this issue. |
github-merge-queue bot
pushed a commit
that referenced
this issue
Apr 23, 2024
Fixes #8446 The WebAssembly tail call proposal is currently not supported in Winch. This commit returns an error when trying to enable the tail call proposal while using Winch as the compiler. Even though the issue linked above doesn't make use of any of the tail instructions, the trampolines were generated using Cranelift's tail call calling convention.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reproducer: https://files.catbox.moe/jbsi1b.wasm
When
wasmtime-cli-v20.0.0
is built withwinch
on x86_64-linux and the above file is run withwasmtime run -C compiler=winch --env PWD=/ --dir "$PWD"::/ -W tail-call -- hello.wasm
, then it fails with a segmentation fault. Remove-C compiler=winch
and it properly runs without any issue. The module above does not contain any opcodes unsupported by winch at this time.The text was updated successfully, but these errors were encountered: