-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
wasm-ld bug #8981
Comments
Thanks @truedim! @sbc100 Looks like this might be an unknown wasm-ld bug? |
Fix is at https://reviews.llvm.org/D64872 |
llvm-git-migration
pushed a commit
to llvm/llvm-project
that referenced
this issue
Jul 17, 2019
When hidden symbols are discarded by comdat rules we still want to create a local defined symbol, otherwise `Symbol::isDiscarded()` relies on begin able to check `getChunk->discarded`. This is a followup on rL362769. The comdat.ll test was previously GC'ing the `__wasm_call_ctors` functions so `do_init` was not actually being included in the link. Once that function was included in triggered the crash bug that this change addresses. Fixes: emscripten-core/emscripten#8981 Differential Revision: https://reviews.llvm.org/D64872 llvm-svn: 366358
dtzWill
pushed a commit
to llvm-mirror/lld
that referenced
this issue
Jul 17, 2019
When hidden symbols are discarded by comdat rules we still want to create a local defined symbol, otherwise `Symbol::isDiscarded()` relies on begin able to check `getChunk->discarded`. This is a followup on rL362769. The comdat.ll test was previously GC'ing the `__wasm_call_ctors` functions so `do_init` was not actually being included in the link. Once that function was included in triggered the crash bug that this change addresses. Fixes: emscripten-core/emscripten#8981 Differential Revision: https://reviews.llvm.org/D64872 git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@366358 91177308-0d34-0410-b5e6-96231b3b80d8
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
em++ file1.cpp file2.cpp
where file1.cpp and file2.cpp are the same:
Assertion failed: FunctionIndex != INVALID_INDEX, file C:\b\s\w\ir\cache\builder\emscripten-releases\llvm-project\lld\wasm\Symbols.cpp, line 152
The bug also can be reproduced with
boost/math/special_functions/binomial.hpp
boost/spirit/home/support/utree.hpp
It only happens with upstream WASM backend.
The text was updated successfully, but these errors were encountered: