-
Notifications
You must be signed in to change notification settings - Fork 786
Unknown name subsection when using wasm-opt on custom .wasm #1914
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
I think that warning may happen if the wasm uses name section subsections, like the locals subsection. We still need to add support for that. Btw, what compiler created that wasm, do you know? Testing on v68, I don't see a crash with -O2 (it successfully shrinks it by around 17%). Do you have a stack trace? Or running valgrind may find something (I don't see anything here). |
It is our own compiler for a functional language called flow - not related to the flow from Facebook. I ran the tool in the Windows Subsystem for Linux, so the crash might be related to that. When I run with gdb, I get this stacktrace, which is probably not much help: Starting program: /mnt/c/work/binaryen-version_68/wasm-opt -O2 euler7.wasm Thread 5 "wasm-opt" received signal SIGABRT, Aborted. If it helps, I attach the .wat behind the .wasm file. |
Interesting. Would a debug build in WSL show a better stack trace? Or does it have limitations? If you can run valgrind in a debug build in WSL that might be especially interesting. |
Also may be interesting to see if the test suite passes on WSL ( |
It runs and runs, and then fails at this point: executing: bin/wasm-opt split.wast -O Error: EINVAL: invalid argument, uv_pipe_open |
Interesting, thanks, I guess it's not too surprising to see node differences like that between platforms (emscripten's NODERAWFS mode has several open issues on that). I guess our test suite is not fully portable because of that. |
The tool worked when I ran it on the original .wat based on master, so I guess we can close this. |
I have a .wasm file, which produces the error above when trying to run "wasm-opt euler7.wasm". When I try to run -O2 on it, it crashes with the latest release.
euler7.zip
The text was updated successfully, but these errors were encountered: