-
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]: Segfault due to mismatching "march" commandline arguments #1710
Comments
Culprit for the segfault seems to be the mismatch between |
I've added this to our agenda with ARM tomorrow morning. I'll file an upstream LLVM bug if necessary, but thank you for the clear description of what is going wrong here. |
This looks to have been fixed in https://reviews.llvm.org/D114677. When I tried to reproduce this at head, I get an error, but not a crash:
|
Bug: android/ndk#1710 Test: None Change-Id: Iffb9e9f49fe1d558f7d738ac94e0437418b8848f (cherry picked from commit d8a5a55) Merged-In: Iffb9e9f49fe1d558f7d738ac94e0437418b8848f
Bug: android/ndk#1710 Test: None Change-Id: Iffb9e9f49fe1d558f7d738ac94e0437418b8848f
Bug: android/ndk#1710 Test: None Change-Id: Iffb9e9f49fe1d558f7d738ac94e0437418b8848f (cherry picked from commit d8a5a55) Merged-In: Iffb9e9f49fe1d558f7d738ac94e0437418b8848f
Description
Update: This can more easily be reproduced with the following invocation
clang
doesn't dump any of the crash files, even I explicitly set the directory via-fcrash-diagnostics-dir
and always want to have the files produced (-gen-reproducer
). But the crash can easily be reproduced:wget https://www.gnupg.org/ftp/gcrypt/gnutls/v3.6/gnutls-3.6.14.tar.xz && tar -xf gnutls-3.6.14.tar.xz
cd gnutls-3.6.14/lib/accelerated/aarch64
clang -target aarch64-none-linux-android26 -w -march=armv8.2-a -mcpu=kryo -mtune=kryo -Werror=return-type -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -Wformat -Werror=format-security -fexceptions -fPIC -Wa,-march=all -D__USE_FORTIFY_LEVEL=_FORTIFY_SOURCE -DANDROID -D_FORTIFY_SOURCE=2 -DPIC -c -o elf/.libs/sha1-armv8.o elf/sha1-armv8.s
Please feel free to ask if more information is needed. The same problem still exists with the latest release 3.6.16 of gnutls.
Upstream bug
No response
Commit to cherry-pick
No response
Affected versions
r24, r25
Canary version
No response
Host OS
Linux
Host OS version
Ubuntu 18.04
Affected ABIs
arm64-v8a
The text was updated successfully, but these errors were encountered: