-
Notifications
You must be signed in to change notification settings - Fork 12.2k
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
wasm32 assertion failure in writePatchableLEB() #54012
Comments
@llvm/issue-subscribers-backend-webassembly |
Proposed fix is here: https://reviews.llvm.org/D120522 |
/cherry-pick 4c75521 |
Failed to cherry-pick: 4c75521 https://github.com/llvm/llvm-project/actions/runs/1899393567 Please manually backport the fix and push it to your github fork. Once this is done, please add a comment like this:
|
@nikic are you able to take care of that cherry pick? |
/branch llvmbot/llvm-project/issue54012 |
For the object file writer we need to allow the underflow (ar write zero), but for the final linker output we should probably generate an error (I've left that as a TODO for now). Fixes: llvm#54012 Differential Revision: https://reviews.llvm.org/D120522 (cherry picked from commit 4c75521)
/pull-request llvmbot#103 |
@sunfishcode What do you think about backporting these? db7b1af 4c75521 |
I don't think that @sunfishcode is still active in LLVM, it would probably be good if one of the current WebAssembly maintainers (@aheejin @tlively @pmatos @sbc100 maybe?) could pick a new code owner and add them in llvm-project/llvm/CODE_OWNERS.TXT Lines 90 to 92 in 1bd3369
|
@tstellar Yes, backporting both those patches looks good to me. |
For the object file writer we need to allow the underflow (ar write zero), but for the final linker output we should probably generate an error (I've left that as a TODO for now). Fixes: llvm#54012 Differential Revision: https://reviews.llvm.org/D120522 (cherry picked from commit 4c75521)
For the object file writer we need to allow the underflow (ar write zero), but for the final linker output we should probably generate an error (I've left that as a TODO for now). Fixes: llvm/llvm-project#54012 Differential Revision: https://reviews.llvm.org/D120522
With
llc -filetype=obj
, this results in an assertion failure:Of course, the input IR is UB, but it probably shouldn't crash?
The text was updated successfully, but these errors were encountered: