-
Notifications
You must be signed in to change notification settings - Fork 264
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] Crashes trying to compile with the optimizations turned on #1090
Comments
For now I have to use this to avoid the crash: |
I don't see the error with the windows_x86_64 clang++.exe under wine or the linux clang from r20. |
What do you mean re-run? It happens all the time on all our machines. My PC has 8GB of memory. It's not enough for it? |
Make sure you use the same command line switches. It's important. |
I ran it under Windows'es Linux subsystem and did not crash too. I.e. this sh is not able to really reproduce the problem. Getting the following output instead:
It generates compile errors here. That's not the real case for this source, as it does not really contains compile errors. |
Aah, my bad. I got the same compiler error as well. I'll run this natively on Windows tomorrow. In the mean time, can you try with r21 canary if possible? That has fixes for some compiler crashes. |
I don't see it here: https://developer.android.com/ndk/downloads ... |
if you're looking to download an NDK canary build, you want https://ci.android.com/builds/branches/aosp-master-ndk/grid? (as described on https://android.googlesource.com/platform/ndk/+/master/docs/ContinuousBuilds.md)... |
I'm getting the same error re: std::time when running on Windows (without WSL), with both r20 and r21. Can you double check the repro file you uploaded? @DanAlbert independently tried to repro and got the same issue with std::time. |
The issue is that the repro source is not fully preprocessed and some code gets pruned because of the _QT_HAS_INCLUDE checks. For a proper repro, can you do the following:
|
Output: Android (5220042 based on r346389c) clang version 8.0.7 (https://android.googlesource.com/toolchain/clang b55f2d4ebfd35bf643d27dbca1bb228957008617) (https://android.googlesource.com/toolchain/llvm 3c393fe7a7e13b0fba4ac75a01aa683d7a5b11cd) (based on LLVM 8.0.7svn) PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: |
I was able to repro the crash on Linux.
This is the same as #1000 and #1053. The fix should be in r21. |
Description
Compile output:
C:\Users\user\AppData\Local\Android\android-ndk-r20/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++ -c -D__ANDROID_API__=21 -target armv7-none-linux-androideabi -gcc-toolchain C:\Users\user\AppData\Local\Android\android-ndk-r20/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64 -fno-limit-debug-info -DANDROID_HAS_WSTRING --sysroot=C:\Users\user\AppData\Local\Android\android-ndk-r20/sysroot -isystem C:\Users\user\AppData\Local\Android\android-ndk-r20/sysroot/usr/include/arm-linux-androideabi -isystem C:\Users\user\AppData\Local\Android\android-ndk-r20/sources/cxx-stl/llvm-libc++/include -isystem C:\Users\user\AppData\Local\Android\android-ndk-r20/sources/android/support/include -isystem C:\Users\user\AppData\Local\Android\android-ndk-r20/sources/cxx-stl/llvm-libc++abi/include -fstack-protector-strong -DANDROID -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -fno-builtin-memmove -mthumb -Oz -std=gnu++14 -Wall -W -D_REENTRANT -fPIC -DAPP_VERSION_MAJOR=6 -DAPP_VERSION_MINOR=0 -DAPP_VERSION_REVISION=0 -DAPP_VERSION_BUILD=0 -DAPP_VERSION_HASH="localbuild" -DAPP_VERSION_BRANCH="local" -DAPP_VERSION_TYPE="" -DQT_NO_DEBUG_OUTPUT -DQT_NO_WARNING_OUTPUT -DQT_NO_DEBUG -DNDEBUG -DDOWNLOADSWWW_LIBRARY -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -IC:/Work/Source/fdm-qml/vmscl/inet/qt/download/downloadswww -I. -IC:/Work/Qt/5.12.5/android_armv7/include -IC:/Work/Qt/5.12.5/android_armv7/include/QtNetwork -IC:/Work/Qt/5.12.5/android_armv7/include/QtCore -I. -IC:/Work/Qt/5.12.5/android_armv7/mkspecs/android-clang -o wwwdownload.obj C:/Work/Source/fdm-qml/vmscl/inet/qt/download/downloadswww/wwwdownload.cpp
LLVMSymbolizer: error reading file: 'kernel32.pdb': LLVM was not compiled with support for DIA. This usually means that you are not using MSVC, or your Visual Studio installation is corrupt.
LLVMSymbolizer: error reading file: 'ntdll.pdb': LLVM was not compiled with support for DIA. This usually means that you are not using MSVC, or your Visual Studio installation is corrupt.
#0 0x0000000000af4c27 (C:\Users\user\AppData\Local\Android\android-ndk-r20\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x6f4c27)
#1 0x0000000000b63b65 (C:\Users\user\AppData\Local\Android\android-ndk-r20\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x763b65)
#2 0x0000000000b6657c (C:\Users\user\AppData\Local\Android\android-ndk-r20\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x76657c)
#3 0x0000000000b69696 (C:\Users\user\AppData\Local\Android\android-ndk-r20\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x769696)
#4 0x0000000000b18d3d (C:\Users\user\AppData\Local\Android\android-ndk-r20\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x718d3d)
#5 0x0000000000d31977 (C:\Users\user\AppData\Local\Android\android-ndk-r20\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x931977)
#6 0x0000000000d31c03 (C:\Users\user\AppData\Local\Android\android-ndk-r20\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x931c03)
#7 0x0000000000d32359 (C:\Users\user\AppData\Local\Android\android-ndk-r20\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x932359)
#8 0x0000000001210d7c (C:\Users\user\AppData\Local\Android\android-ndk-r20\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0xe10d7c)
#9 0x0000000002d30942 (C:\Users\user\AppData\Local\Android\android-ndk-r20\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x2930942)
#10 0x0000000001ee1c34 (C:\Users\user\AppData\Local\Android\android-ndk-r20\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x1ae1c34)
#11 0x000000000190c1f6 (C:\Users\user\AppData\Local\Android\android-ndk-r20\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x150c1f6)
#12 0x00000000015ecd76 (C:\Users\user\AppData\Local\Android\android-ndk-r20\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x11ecd76)
#13 0x00000000015c6b65 (C:\Users\user\AppData\Local\Android\android-ndk-r20\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x11c6b65)
#14 0x000000000166e401 (C:\Users\user\AppData\Local\Android\android-ndk-r20\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x126e401)
#15 0x0000000000402fac (C:\Users\user\AppData\Local\Android\android-ndk-r20\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x2fac)
#16 0x0000000002f9e8dd (C:\Users\user\AppData\Local\Android\android-ndk-r20\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x2b9e8dd)
#17 0x0000000000401395 (C:\Users\user\AppData\Local\Android\android-ndk-r20\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x1395)
#18 0x00000000004014c8 (C:\Users\user\AppData\Local\Android\android-ndk-r20\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x14c8)
#19 0x00007ff801bc7974 (C:\WINDOWS\System32\KERNEL32.DLL+0x17974)
#20 0x00007ff801d0a271 (C:\WINDOWS\SYSTEM32\ntdll.dll+0x6a271)
clang++: error: clang frontend command failed due to signal (use -v to see invocation)
Android (5220042 based on r346389c) clang version 8.0.7 (https://android.googlesource.com/toolchain/clang b55f2d4ebfd35bf643d27dbca1bb228957008617) (https://android.googlesource.com/toolchain/llvm 3c393fe7a7e13b0fba4ac75a01aa683d7a5b11cd) (based on LLVM 8.0.7svn)
Target: armv7-none-linux-android
Thread model: posix
InstalledDir: C:\Users\user\AppData\Local\Android\android-ndk-r20/toolchains/llvm/prebuilt/windows-x86_64/bin
clang++: note: diagnostic msg: PLEASE submit a bug report to https://github.com/android-ndk/ndk/issues and include the crash backtrace, preprocessed source, and associated run script.
clang++: note: diagnostic msg:
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang++: note: diagnostic msg: C:\Users\user\AppData\Local\Temp\wwwdownload-0e9cdf.cpp
clang++: note: diagnostic msg: C:\Users\user\AppData\Local\Temp\wwwdownload-0e9cdf.sh
files.zip
clang++: note: diagnostic msg:
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: