-
Notifications
You must be signed in to change notification settings - Fork 951
"out of bounds memory access" in runtime.alloc / hashmapStringGet #4866
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
Comments
Can you try running with a larger stack size to see if it's stack-overflow-related memory corruption? |
Also if this binary works on when compiled for native but not on wasm that would also be useful to know. |
I asked wasmtime for a max stack size of The binary works when run natively (plain |
TinyGo has its own internal stack management in linear memory, which for wasm is 64kB by default. That's usually enough, but not always (and can result in weird bugs). Hence why it's important to check.
What about when you use just |
Ah, it does in fact crash there. But, I don't think it's the same crash given the Wasm binary doesn't complain about GC/heap size?
The Boehm PR crashes too, but differently too:
|
When running the TypeScript Go port (modified to remove JSON calls that aren't currently working in tinygo), I'm seeing this error when running the binary:
wazero
:wasmtime
:The repro for this takes a bit to get to (time wise, long clone, long build):
The text was updated successfully, but these errors were encountered: