You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Linux shortplay 6.1.57-gentoo-x86_64 #2 SMP PREEMPT_DYNAMIC Wed Nov 29 15:55:15 CET 2023 x86_64 AMD Ryzen 5 2500U with Radeon Vega Mobile Gfx AuthenticAMD GNU/Linux
Subsystem
WASI
What steps will reproduce the bug?
Compile the following code with rustc --target=wasm32-wasi main.rs
How often does it reproduce? Is there a required condition?
Every time you run the code.
This issue appears every time WASM requires to allocate more than (around) 8MiB.
What is the expected behavior? Why is that the expected behavior?
The expected behavior is for no segmentation fault to occur.
What do you see instead?
Segmentation fault, after the execution of the rust code.
Additional information
I noticed this issue in a project I'm working on. It that project WASI fails when trying to read a file larger than around 8MiB.
Unfortunately, I'm unable to identify the exact amount of memory required to trigger this bug, given that it changes based on a lot of different factors, which I wasn't able to identify.
Another thing, in the code I provided the bug is only triggered if you:
Excede a defined amount of memory for at least one variable
Print any variable.
I found this issue on another machine I don't have access to right now. It's running Arch Linux and Node.js v21.4.0.
Also, on this machine I'm running rustc v1.74.1
The text was updated successfully, but these errors were encountered:
Version
v21.5.0
Platform
Linux shortplay 6.1.57-gentoo-x86_64 #2 SMP PREEMPT_DYNAMIC Wed Nov 29 15:55:15 CET 2023 x86_64 AMD Ryzen 5 2500U with Radeon Vega Mobile Gfx AuthenticAMD GNU/Linux
Subsystem
WASI
What steps will reproduce the bug?
Compile the following code with
rustc --target=wasm32-wasi main.rs
This is my
index.js
:How often does it reproduce? Is there a required condition?
Every time you run the code.
This issue appears every time
WASM
requires to allocate more than (around) 8MiB.What is the expected behavior? Why is that the expected behavior?
The expected behavior is for no segmentation fault to occur.
What do you see instead?
Segmentation fault, after the execution of the rust code.
Additional information
I noticed this issue in a project I'm working on. It that project
WASI
fails when trying to read a file larger than around 8MiB.Unfortunately, I'm unable to identify the exact amount of memory required to trigger this bug, given that it changes based on a lot of different factors, which I wasn't able to identify.
Another thing, in the code I provided the bug is only triggered if you:
I found this issue on another machine I don't have access to right now. It's running Arch Linux and Node.js
v21.4.0
.Also, on this machine I'm running
rustc v1.74.1
The text was updated successfully, but these errors were encountered: