-
Notifications
You must be signed in to change notification settings - Fork 257
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
[BUG] clang++ backend crash #1377
Comments
@fmalita usually a good local work around for these sorts of issues is manually disabling optimization on the function causing the crash with https://clang.llvm.org/docs/AttributeReference.html#optnone. Rates as medium according to https://github.com/android/ndk/wiki/NDK-Release-Process, so will want to cherry-pick the fix for r21 and r22 when we get it. |
@stephenhines @pirama-arumuga-nainar the duped bug links to http://b/172773885 as well. |
Reproduces in my upstream LLVM tree (sync-ed to c43f8c772886ff from Nov 10). |
Here's output + clang invocation reduced with creduce. |
Filed https://bugs.llvm.org/show_bug.cgi?id=48232 in LLVM issue tracker. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
https://android-review.googlesource.com/c/toolchain/llvm_android/+/1573931 is where this will be fixed for r23. |
https://android-review.googlesource.com/c/toolchain/llvm_android/+/1585412 fixes it for r22b (the r399163b1 toolchain). |
Context: https://github.com/android/ndk/wiki/Changelog-r22#r22b Context: android/ndk#1427 Upstream changes: * [Issue 1377][0]: Fix Clang backend crash in register scavenging. * [Issue 1388][1]: Fixed LLVM's incorrect conversion to list files for long command lines on Windows. * [Issue 1391][2]: Fixed missing symbols from libz.a. * [Issue 1427][3]: Fixed Clang auto-detection for CMake 3.19 and older for Windows. Fix for issue 1427 above allows us to remove the older Android cmake toolchain file we've been using to work around the bug on Windows platforms. [0]: android/ndk#1377 [1]: android/ndk#1388 [2]: android/ndk#1391 [3]: android/ndk#1427
Context: https://github.com/android/ndk/wiki/Changelog-r22#r22b Context: android/ndk#1427 Upstream changes: * [Issue 1377][0]: Fix Clang backend crash in register scavenging. * [Issue 1388][1]: Fixed LLVM's incorrect conversion to list files for long command lines on Windows. * [Issue 1391][2]: Fixed missing symbols from `libz.a`. * [Issue 1427][3]: Fixed Clang auto-detection for CMake 3.19 and older for Windows. The fix for issue 1427 above allows us to remove the older Android cmake toolchain file we've been using (accc846) to work around the bug on Windows platforms. [0]: android/ndk#1377 [1]: android/ndk#1388 [2]: android/ndk#1391 [3]: android/ndk#1427
Description
SkSLByteCode-966658.zip
Trigger appears to be the combination of '-mfpu=neon' -mthumb -fomit-frame-pointer -Oz.
Environment Details
Not all of these will be relevant to every bug, but please provide as much
information as you can.
The text was updated successfully, but these errors were encountered: