-
Notifications
You must be signed in to change notification settings - Fork 271
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
arm64-specific: wasm fails to instantiate: out of bounds memory access #2382
Comments
can you run this with amd64 emulation to see if it's specific to arm64? this should do it:
|
@evacchi it works under |
Perhaps still a trampoline issue? I remember when certain programs would hang in version 1.7.x and that a fix was made to the arm64 backend then. Perhaps an off-by-one of sorts is causing a memory out of bounds issue? |
@evacchi Just ran against a version with the wasm produced by go1.23.6 and it produces an identical error. |
I don't think that's what @evacchi asked for. Don't build the Wasm with 1.23, rather use 1.23 to |
@ncruces Good catch. I got that confused. @evacchi Same result unfortunately! GOTOOLCHAIN=go1.23.6 go run github.com/tetratelabs/wazero/cmd/[email protected] run ./redis-installer.wasm
go: downloading go1.23.6 (darwin/arm64)
error instantiating wasm binary: module[] function[_start] failed: wasm error: out of bounds memory access
wasm stack trace:
.time.__dataIO_.big8(i32) i32
.github.com_BurntSushi_toml_internal.init(i32) i32
.runtime.doInit1(i32) i32
.runtime.main(i32) i32
.wasm_pc_f_loop()
._rt0_wasm_wasip1()
exit status 1 |
interesting, so unrelated issue |
Describe the bug
Running a wasm binary returns the error:
To Reproduce
Running on Darwin/arm64 M2 chip
Expected behavior
Expected same output as [email protected]
Environment (please complete the relevant information):
The text was updated successfully, but these errors were encountered: