llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
28.09k stars 11.6k forks source link

clang++: error: unable to execute command: Segmentation fault #29166

Closed llvmbot closed 7 years ago

llvmbot commented 8 years ago
Bugzilla Link 28796
Resolution WORKSFORME
Resolved on Jan 27, 2017 18:32
Version trunk
OS All
Attachments Content of TargetJITInfo-56cb61.sh and TargetJITInfo-56cb61.cpp
Reporter LLVM Bugzilla Contributor
CC @zmodem

Extended Description

Stack dump:

  1. Program arguments: prebuilts/clang/linux-x86/host/3.5/bin/clang++ -cc1 -triple x86_64--linux-android -emit-obj -mnoexecstack -disable-free -disable-llvm-verifier -main-file-name TargetJITInfo.cpp -mrelocation-model pic -pic-level 2 -relaxed-aliasing -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu slm -target-feature +popcnt -target-feature +ssse3 -target-feature +sse4 -target-feature +sse4.1 -target-feature +sse4.2 -target-feature +aes -target-linker-version 2.22 -momit-leaf-frame-pointer -g -ffunction-sections -coverage-file /var/aosp/aosp/cht_ffd_t4/out/target/product/r2_cht_ffd/obj/STATIC_LIBRARIES/libLLVMTarget_intermediates/TargetJITInfo.o -nostdsysteminc -nostdinc++ -resource-dir prebuilts/clang/linux-x86/host/3.5/bin/../lib/clang/3.5 -dependency-file out/target/product/r2_cht_ffd/obj/STATIC_LIBRARIES/libLLVMTarget_intermediates/TargetJITInfo.d -MT out/target/product/r2_cht_ffd/obj/STATIC_LIBRARIES/libLLVMTarget_intermediates/TargetJITInfo.o -sys-header-deps -isystem system/core/include -isystem hardware/libhardware/include -isystem hardware/libhardware_legacy/include -isystem hardware/ril/include -isystem libnativehelper/include -isystem frameworks/native/include -isystem frameworks/native/opengl/include -isystem frameworks/av/include -isystem frameworks/base/include -isystem out/target/product/r2_cht_ffd/obj/include -isystem device/intel/cht-kernel/kernel-headers -isystem bionic/libc/arch-x86_64/include -isystem bionic/libc/include -isystem bionic/libstdc++/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-x86 -isystem bionic/libm/include -isystem bionic/libm/include/amd64 -isystem prebuilts/clang/linux-x86/host/3.5/lib/clang/3.5/include/ -isystem out/target/product/r2_cht_ffd/obj/include/clang -include build/core/combo/include/arch/target_linux-x86/AndroidConfig.h -D _FORTIFY_SOURCE=2 -D USE_SSSE3 -D ANDROID -D NDEBUG -U DEBUG -D compiler_offsetof=__builtin_offsetof -D ANDROID -D NDEBUG -U DEBUG -D ANDROID_TARGET_BUILD -D _GNU_SOURCE -D STDC_LIMIT_MACROS -D STDC_CONSTANT_MACROS -D STDC_FORMAT_MACROS -D sprintf=sprintf -D _USING_LIBCXX -I external/libcxx/include -I bionic -I external/libcxx/include -I external/llvm -I external/llvm/include -I external/llvm/device/include -I external/llvm/lib/Target -I out/target/product/r2_cht_ffd/obj/STATIC_LIBRARIES/libLLVMTarget_intermediates -I out/target/product/r2_cht_ffd/gen/STATIC_LIBRARIES/libLLVMTarget_intermediates -I libnativehelper/include/nativehelper -I build/core/combo/include/arch/target_linux-x86/ -internal-isystem prebuilts/clang/linux-x86/host/3.5/bin/../lib/clang/3.5/include -O2 -Wno-multichar -Werror=format-security -Wstrict-aliasing=2 -Werror=pointer-to-int-cast -Werror=int-to-pointer-cast -W -Wall -Wno-unused -Winit-self -Wpointer-arith -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=int-conversion -Wno-unused-command-line-argument -W -Wall -Wno-unused -Winit-self -Wpointer-arith -Wsign-promo -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wall -W -Wno-unused-parameter -Wwrite-strings -Woverloaded-virtual -Wno-sign-promo -std=c++11 -fdeprecated-macro -fdebug-compilation-dir /var/aosp/aosp/cht_ffd_t4 -ferror-limit 19 -fmessage-length 0 -stack-protector 1 -mstackrealign -fno-rtti -fobjc-runtime=gcc -fdiagnostics-show-option -vectorize-loops -vectorize-slp -o out/target/product/r2_cht_ffd/obj/STATIC_LIBRARIES/libLLVMTarget_intermediates/TargetJITInfo.o -x c++ external/llvm/lib/Target/TargetJITInfo.cpp clang++: error: unable to execute command: Segmentation fault clang++: error: clang frontend command failed due to signal (use -v to see invocation) clang version 3.5 Target: x86_64--linux-android Thread model: posix clang++: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ 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: /tmp/TargetJITInfo-56cb61.cpp clang++: note: diagnostic msg: /tmp/TargetJITInfo-56cb61.sh clang++: note: diagnostic msg:


make: [out/target/product/r2_cht_ffd/obj/STATIC_LIBRARIES/libLLVMTarget_intermediates/TargetJITInfo.o] Error 254 make: Waiting for unfinished jobs....

make failed to build some targets (02:37:00 (hh:mm:ss))

zmodem commented 7 years ago

I can't reproduce this with recent Clang versions.