Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#64611 - [clang] PLEASE ENTER SUMMARY
Attached to Project:
Arch Linux
Opened by Sp1d3rmxn (sp1d3rmxn) - Friday, 22 November 2019, 12:57 GMT
Last edited by freswa (frederik) - Friday, 21 February 2020, 21:26 GMT
Opened by Sp1d3rmxn (sp1d3rmxn) - Friday, 22 November 2019, 12:57 GMT
Last edited by freswa (frederik) - Friday, 21 February 2020, 21:26 GMT
|
DetailsDescription:
Clang is segfaulting with LLVM libs during compilation in chroot for firefox, icecat, waterfox, and basically any derivative of mozilla based browser using rust to compile as well. 50:39.67 Stack dump: 50:39.67 0. Program arguments: /usr/bin/clang-9 -cc1 -triple x86_64-pc-linux-gnu -emit-obj -disable-free -disable-llvm-verifier -discard-value-names -main-file-name test-ctors.c -mrelocation-model pic -pic-level 2 -mthread-model posix -relaxed-aliasing -masm-verbose -mconstructor-aliases -fno-plt -munwind-tables -fuse-init-array -target-cpu broadwell -dwarf-column-info -debug-info-kind=limited -dwarf-version=4 -debugger-tuning=gdb -momit-leaf-frame-pointer -ffunction-sections -fdata-sections -coverage-notes-file /build/firefox-esr/src/firefox-68.2.0/obj-x86_64-pc-linux-gnu/build/unix/elfhack/test-ctors.gcno -resource-dir /usr/lib/clang/9.0.0 -dependency-file .deps/test-ctors.o.pp -MT test-ctors.o -sys-header-deps -MP -include /build/firefox-esr/src/firefox-68.2.0/config/gcc_hidden.h -include /build/firefox-esr/src/firefox-68.2.0/obj-x86_64-pc-linux-gnu/mozilla-config.h -I /build/firefox-esr/src/firefox-68.2.0/obj-x86_64-pc-linux-gnu/dist/system_wrappers -D NDEBUG=1 -D TRIMMED=1 -I /build/firefox-esr/src/firefox-68.2.0/build/unix/elfhack -I /build/firefox-esr/src/firefox-68.2.0/obj-x86_64-pc-linux-gnu/build/unix/elfhack -I /build/firefox-esr/src/firefox-68.2.0/obj-x86_64-pc-linux-gnu/dist/include -I /usr/include/nspr -I /usr/include/nss -I /build/firefox-esr/src/firefox-68.2.0/obj-x86_64-pc-linux-gnu/dist/include/nss -D MOZILLA_CLIENT -D _FORTIFY_SOURCE=2 -U _FORTIFY_SOURCE -D _FORTIFY_SOURCE=2 -U _FORTIFY_SOURCE -D _FORTIFY_SOURCE=2 -internal-isystem /usr/local/include -internal-isystem /usr/lib/clang/9.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -O2 -Wall -Wbitfield-enum-conversion -Wempty-body -Wignored-qualifiers -Wpointer-arith -Wshadow-field-in-constructor-modified -Wsign-compare -Wtype-limits -Wunreachable-code -Wunreachable-code-return -Wclass-varargs -Wfloat-overflow-conversion -Wfloat-zero-conversion -Wloop-analysis -Wstring-conversion -Wtautological-overlap-compare -Wtautological-unsigned-enum-zero-compare -Wtautological-unsigned-zero-compare -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=backend-plugin -Wno-error=return-std-move -Wno-error=atomic-alignment -Wformat -Wformat-security -Wno-gnu-zero-variadic-macro-arguments -std=gnu99 -fdebug-compilation-dir /build/firefox-esr/src/firefox-68.2.0/obj-x86_64-pc-linux-gnu/build/unix/elfhack -ferror-limit 19 -fmessage-length 0 -pthread -stack-protector 2 -fobjc-runtime=gcc -fdiagnostics-show-option -vectorize-loops -vectorize-slp -faddrsig -o test-ctors.o -x c /build/firefox-esr/src/firefox-68.2.0/build/unix/elfhack/test-ctors.c 50:39.67 1. <eof> parser at end of file 50:39.67 2. Code generation 50:39.67 3. Running pass 'Function Pass Manager' on module '/build/firefox-esr/src/firefox-68.2.0/build/unix/elfhack/test-ctors.c'. 50:39.67 4. Running pass 'X86 DAG->DAG Instruction Selection' on function '@test' 50:39.74 #0 0x00006c5aa11dbb7b llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/usr/bin/../lib/libLLVM-9.so+0xb08b7b) 50:39.74 #1 0x00006c5aa11d9a44 llvm::sys::RunSignalHandlers() (/usr/bin/../lib/libLLVM-9.so+0xb06a44) 50:39.74 #2 0x00006c5aa11d9bd6 (/usr/bin/../lib/libLLVM-9.so+0xb06bd6) 50:39.74 #3 0x00006c5a9f43cfb0 __restore_rt (/usr/bin/../lib/libc.so.6+0x3bfb0) 50:39.74 #4 0x00006c5aa1728324 llvm::EVT::getExtendedVectorNumElements() const (/usr/bin/../lib/libLLVM-9.so+0x1055324) 50:39.74 #5 0x00006c5aa197dd63 llvm::TargetLowering::SimplifyDemandedBits(llvm::SDValue, llvm::APInt const&, llvm::APInt const&, llvm::KnownBits&, llvm::TargetLowering::TargetLoweringOpt&, unsigned int, bool) const (/usr/bin/../lib/libLLVM-9.so+0x12aad63) 50:39.74 #6 0x00006c5aa197e721 llvm::TargetLowering::SimplifyDemandedBits(llvm::SDValue, llvm::APInt const&, llvm::APInt const&, llvm::KnownBits&, llvm::TargetLowering::TargetLoweringOpt&, unsigned int, bool) const (/usr/bin/../lib/libLLVM-9.so+0x12ab721) 50:39.74 #7 0x00006c5aa1790973 (/usr/bin/../lib/libLLVM-9.so+0x10bd973) 50:39.74 #8 0x00006c5aa17cc127 (/usr/bin/../lib/libLLVM-9.so+0x10f9127) 50:39.74 #9 0x00006c5aa17d4611 (/usr/bin/../lib/libLLVM-9.so+0x1101611) 50:39.74 #10 0x00006c5aa17d5adf (/usr/bin/../lib/libLLVM-9.so+0x1102adf) 50:39.74 #11 0x00006c5aa17d73ae llvm::SelectionDAG::Combine(llvm::CombineLevel, llvm::AAResults*, llvm::CodeGenOpt::Level) (/usr/bin/../lib/libLLVM-9.so+0x11043ae) 50:39.74 #12 0x00006c5aa195cf90 llvm::SelectionDAGISel::CodeGenAndEmitDAG() (/usr/bin/../lib/libLLVM-9.so+0x1289f90) 50:39.74 #13 0x00006c5aa1961737 llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) (/usr/bin/../lib/libLLVM-9.so+0x128e737) 50:39.74 #14 0x00006c5aa19645be (/usr/bin/../lib/libLLVM-9.so+0x12915be) 50:39.74 #15 0x00006c5aa376f36a (/usr/bin/../lib/libLLVM-9.so+0x309c36a) 50:39.74 #16 0x00006c5aa1520f85 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (/usr/bin/../lib/libLLVM-9.so+0xe4df85) 50:39.74 #17 0x00006c5aa12f7480 llvm::FPPassManager::runOnFunction(llvm::Function&) (/usr/bin/../lib/libLLVM-9.so+0xc24480) 50:39.74 #18 0x00006c5aa12f7502 llvm::FPPassManager::runOnModule(llvm::Module&) (/usr/bin/../lib/libLLVM-9.so+0xc24502) 50:39.74 #19 0x00006c5aa12f6786 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/usr/bin/../lib/libLLVM-9.so+0xc23786) 50:39.74 #20 0x00006c5a9fdfb1d8 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::DataLayout const&, llvm::Module*, clang::BackendAction, std::unique_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream> >) (/usr/bin/../lib/libclangCodeGen.so.9+0xc51d8) 50:39.75 #0 0x0000619a36375b7b llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/usr/bin/../lib/libLLVM-9.so+0xb08b7b) 50:39.76 #1 0x0000619a36373a44 llvm::sys::RunSignalHandlers() (/usr/bin/../lib/libLLVM-9.so+0xb06a44) 50:39.76 #2 0x0000619a36373bd6 (/usr/bin/../lib/libLLVM-9.so+0xb06bd6) 50:39.76 #3 0x0000619a345d6fb0 __restore_rt (/usr/bin/../lib/libc.so.6+0x3bfb0) 50:39.76 #4 0x0000619a368c2324 llvm::EVT::getExtendedVectorNumElements() const (/usr/bin/../lib/libLLVM-9.so+0x1055324) 50:39.76 #5 0x0000619a36b17d63 llvm::TargetLowering::SimplifyDemandedBits(llvm::SDValue, llvm::APInt const&, llvm::APInt const&, llvm::KnownBits&, llvm::TargetLowering::TargetLoweringOpt&, unsigned int, bool) const (/usr/bin/../lib/libLLVM-9.so+0x12aad63) 50:39.76 #6 0x0000619a36b18721 llvm::TargetLowering::SimplifyDemandedBits(llvm::SDValue, llvm::APInt const&, llvm::APInt const&, llvm::KnownBits&, llvm::TargetLowering::TargetLoweringOpt&, unsigned int, bool) const (/usr/bin/../lib/libLLVM-9.so+0x12ab721) 50:39.76 #7 0x0000619a3692a973 (/usr/bin/../lib/libLLVM-9.so+0x10bd973) 50:39.76 #8 0x0000619a36966127 (/usr/bin/../lib/libLLVM-9.so+0x10f9127) 50:39.76 #9 0x0000619a3696e611 (/usr/bin/../lib/libLLVM-9.so+0x1101611) 50:39.76 #10 0x0000619a3696fadf (/usr/bin/../lib/libLLVM-9.so+0x1102adf) 50:39.76 #11 0x0000619a369713ae llvm::SelectionDAG::Combine(llvm::CombineLevel, llvm::AAResults*, llvm::CodeGenOpt::Level) (/usr/bin/../lib/libLLVM-9.so+0x11043ae) 50:39.76 #12 0x0000619a36af6f90 llvm::SelectionDAGISel::CodeGenAndEmitDAG() (/usr/bin/../lib/libLLVM-9.so+0x1289f90) 50:39.76 #13 0x0000619a36afb737 llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) (/usr/bin/../lib/libLLVM-9.so+0x128e737) 50:39.76 #14 0x0000619a36afe5be (/usr/bin/../lib/libLLVM-9.so+0x12915be) 50:39.76 #15 0x0000619a3890936a (/usr/bin/../lib/libLLVM-9.so+0x309c36a) 50:39.76 #16 0x0000619a366baf85 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (/usr/bin/../lib/libLLVM-9.so+0xe4df85) 50:39.76 #17 0x0000619a36491480 llvm::FPPassManager::runOnFunction(llvm::Function&) (/usr/bin/../lib/libLLVM-9.so+0xc24480) 50:39.76 #18 0x0000619a36491502 llvm::FPPassManager::runOnModule(llvm::Module&) (/usr/bin/../lib/libLLVM-9.so+0xc24502) 50:39.76 #19 0x0000619a36490786 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/usr/bin/../lib/libLLVM-9.so+0xc23786) 50:39.76 #20 0x0000619a34f951d8 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::DataLayout const&, llvm::Module*, clang::BackendAction, std::unique_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream> >) (/usr/bin/../lib/libclangCodeGen.so.9+0xc51d8) 50:40.05 clang-9clang-9: : errorerror: : unable to execute command: Segmentation fault (core dumped) 50:40.06 unable to execute command: Segmentation fault (core dumped) 50:40.06 clang-9clang-9: : error: errorclang frontend command failed due to signal (use -v to see invocation): 50:40.06 clang frontend command failed due to signal (use -v to see invocation) 50:40.06 clang version 9.0.0 (tags/RELEASE_900/final) 50:40.06 clang version 9.0.0 (tags/RELEASE_900/final)Target: 50:40.06 x86_64-pc-linux-gnuTarget: 50:40.06 x86_64-pc-linux-gnuThread model: 50:40.06 posix 50:40.06 Thread model: InstalledDir: posix/usr/bin 50:40.06 InstalledDir: clang-9/usr/bin: 50:40.06 note: clang-9diagnostic msg: PLEASE submit a bug report to and include the crash backtrace, preprocessed source, and associated run script.: 50:40.06 note: diagnostic msg: PLEASE submit a bug report to and include the crash backtrace, preprocessed source, and associated run script. 50:40.10 clang-9clang-9: : notenote: : diagnostic msg: 50:40.10 ******************** 50:40.10 PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: 50:40.10 Preprocessed source(s) and associated run script(s) are located at:diagnostic msg: 50:40.10 ******************** 50:40.10 PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: 50:40.10 Preprocessed source(s) and associated run script(s) are located at: 50:40.10 clang-9: noteclang-9: : diagnostic msg: /tmp/test-ctors-75214f.cnote 50:40.10 : diagnostic msg: /tmp/test-array-bc4e3b.c 50:40.10 clang-9: note: diagnostic msg: /tmp/test-ctors-75214f.sh 50:40.10 clang-9: note: diagnostic msg: /tmp/test-array-bc4e3b.sh 50:40.10 clang-9: note: diagnostic msg: 50:40.10 ******************** 50:40.10 clang-9: note: diagnostic msg: Additional info: * package version(s) - latest "extra/clang 9.0.0-3" * config and/or log files etc. * link to upstream bug report, if any Steps to reproduce: build in chroot or outside of chroot |
This task depends upon
Does Mozilla's build process really introduce CPU dependent code? Clang seems to crash in a vectorization pass. It might only crash if the CPU features AVX2 instructions?
Edit: similar report somewhere else
https://www.linuxquestions.org/questions/slackware-14/llvm-9-0-0-clang-segfault-firefox-build-4175661799/