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
Invalid execution of optimized smallpt binary #218
Comments
Looks related to this PR: #175 |
After reverting #175 things are better, but
|
Also in this example wasm3 fails with The zip file contains execution traces of Steps:
|
Made some progress figuring this out. With some tweaking, i can achieve a successful hash on all but I still haven't tracked down the cause of failure. |
@soundandform I can confirm it also fixes the music bug. |
@soundandform but it also breaks some other examples from |
@vshymanskyy taking a quick look at pywasm code, this is probably due to the change of call frame, preparing for multi-return. empty slots (= to return count) need to be padded before args. |
oops. will re-check!
…On Fri, 9 Apr 2021, 20:54 Steven Massey, ***@***.***> wrote:
@soundandform <https://github.com/soundandform> but it also breaks some
other examples from pywasm3 😢
@vshymanskyy <https://github.com/vshymanskyy> taking a quick look at
pywasm code, this is probably due to the change of call frame, preparing
for multi-return. empty slots (= to return count) need to be padded before
args.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#218 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AALP3FAYTO6Y22Y7RL4GBQLTH45NXANCNFSM4ZYDQFYQ>
.
|
Awesome that you now can play the midisynth 😀 |
@soundandform please check |
@soundandform nevermind, figured it out. The issue was on |
I think we can close this, all of the found issues were covered by tests |
./wasm3 smallpt-ex.wasm 4 32 | sha1sum
Produces (correctly)
ea05d85998b2f453b588ef76a1256215bf9b851c
However if
smallpt-ex.wasm
is build with-O3
or-Os
flags, it produces wrong output.With
-O2
or-Oz
, it works as expected. They all execute fine inwasmer
.Pre-built binaries: smallpt.zip
The text was updated successfully, but these errors were encountered: