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
I suspect the linkage isn't setup the way wac/wace is expecting so the libc memset is being called with an invalid pointer. I've only tested C programs built the way I describe in the README.md (using a recent version of binaryen and emscripten). I.e. like this:
The prebuilt sha1sum.wasm file in vmir was built using clang/llvm via LLVM IR form. I would actually have been surprised if that worked without tweaks. It's probably something that we want to get working although I won't have time to work on this any time in the near future although I would be happy to take a pull request and answer specific questions about why wac/wace work the way they do.
kanaka
changed the title
segmentation fault (core dumped) ./wac
segmentation fault when running clang built wasm
Aug 1, 2018
When running wac on
sha1sum.wasm
from thevmir
project, I get the following error:I'm using:
When compiling with
-O1 -g
and usingbt full
ingdb
, this is the output:The problematic line could be line 454 in
thunks.c
?The text was updated successfully, but these errors were encountered: