Article 4RHTD LLVM 9.0.0 Clang segfault Firefox build

LLVM 9.0.0 Clang segfault Firefox build

by
TheRealGrogan
from LinuxQuestions.org on (#4RHTD)
Right at the end of the first pass, when compiling constructor tests.

That's bollocks, I'm going back to LLVM 8 (and reverting dependents for now)

Code:58:02.11 TEST-PASS | check_spidermonkey_style.py | ok
58:02.35 TEST-PASS | check_macroassembler_style.py | ok
58:02.35 toolkit/components/featuregates/feature_definitions.json.stub
58:02.49 TEST-PASS | check_js_opcode.py | ok
58:02.51 toolkit/components/telemetry/EventArtifactDefinitions.json.stub
58:02.51 toolkit/locales/multilocale.txt.stub
58:02.55 toolkit/mozapps/extensions/built_in_addons.json.stub
58:03.00 toolkit/components/telemetry/ScalarArtifactDefinitions.json.stub
58:04.51 Stack dump:
58:04.51 0. Program arguments: /usr/bin/clang-9 -cc1 -triple x86_64-unknown-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 -munwind-tables -fuse-init-array -target-cpu corei7 -dwarf-column-info -debug-info-kind=limited -dwarf-version=4 -debugger-tuning=gdb -momit-leaf-frame-pointer -ffunction-sections -fdata-sections -coverage-notes-file /storage2/shit/build/firefox-69.0.1/obj-x86_64-pc-linux-gnu/build/unix/elfhack/test-ctors.gcno -resource-dir /usr/bin/../lib64/clang/9.0.0 -dependency-file .deps/test-ctors.o.pp -MT test-ctors.o -sys-header-deps -MP -include /storage2/shit/build/firefox-69.0.1/config/gcc_hidden.h -include /storage2/shit/build/firefox-69.0.1/obj-x86_64-pc-linux-gnu/mozilla-config.h -I /storage2/shit/build/firefox-69.0.1/obj-x86_64-pc-linux-gnu/dist/system_wrappers -D NDEBUG=1 -D TRIMMED=1 -I /storage2/shit/build/firefox-69.0.1/build/unix/elfhack -I /storage2/shit/build/firefox-69.0.1/obj-x86_64-pc-linux-gnu/build/unix/elfhack -I /storage2/shit/build/firefox-69.0.1/obj-x86_64-pc-linux-gnu/dist/include -I /storage2/shit/build/firefox-69.0.1/obj-x86_64-pc-linux-gnu/dist/include/nspr -I /storage2/shit/build/firefox-69.0.1/obj-x86_64-pc-linux-gnu/dist/include/nss -D MOZILLA_CLIENT -U _FORTIFY_SOURCE -D _FORTIFY_SOURCE=2 -U _FORTIFY_SOURCE -D _FORTIFY_SOURCE=2 -cxx-isystem /usr/lib64/qt/include -cxx-isystem /usr/lib64/qt/include -internal-isystem /usr/local/include -internal-isystem /usr/bin/../lib64/clang/9.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -O3 -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 /storage2/shit/build/firefox-69.0.1/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 -fcolor-diagnostics -vectorize-loops -vectorize-slp -faddrsig -o test-ctors.o -x c /storage2/shit/build/firefox-69.0.1/build/unix/elfhack/test-ctors.c
58:04.51 1. <eof> parser at end of file
58:04.51 2. Code generation
58:04.51 3. Running pass 'Function Pass Manager' on module '/storage2/shit/build/firefox-69.0.1/build/unix/elfhack/test-ctors.c'.
58:04.51 4. Running pass 'X86 DAG->DAG Instruction Selection' on function '@test'
58:04.51 Stack dump:
58:04.51 0. Program arguments: /usr/bin/clang-9 -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free -disable-llvm-verifier -discard-value-names -main-file-name test-array.c -mrelocation-model pic -pic-level 2 -mthread-model posix -relaxed-aliasing -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu corei7 -dwarf-column-info -debug-info-kind=limited -dwarf-version=4 -debugger-tuning=gdb -momit-leaf-frame-pointer -ffunction-sections -fdata-sections -coverage-notes-file /storage2/shit/build/firefox-69.0.1/obj-x86_64-pc-linux-gnu/build/unix/elfhack/test-array.gcno -resource-dir /usr/bin/../lib64/clang/9.0.0 -dependency-file .deps/test-array.o.pp -MT test-array.o -sys-header-deps -MP -include /storage2/shit/build/firefox-69.0.1/config/gcc_hidden.h -include /storage2/shit/build/firefox-69.0.1/obj-x86_64-pc-linux-gnu/mozilla-config.h -I /storage2/shit/build/firefox-69.0.1/obj-x86_64-pc-linux-gnu/dist/system_wrappers -D NDEBUG=1 -D TRIMMED=1 -I /storage2/shit/build/firefox-69.0.1/build/unix/elfhack -I /storage2/shit/build/firefox-69.0.1/obj-x86_64-pc-linux-gnu/build/unix/elfhack -I /storage2/shit/build/firefox-69.0.1/obj-x86_64-pc-linux-gnu/dist/include -I /storage2/shit/build/firefox-69.0.1/obj-x86_64-pc-linux-gnu/dist/include/nspr -I /storage2/shit/build/firefox-69.0.1/obj-x86_64-pc-linux-gnu/dist/include/nss -D MOZILLA_CLIENT -U _FORTIFY_SOURCE -D _FORTIFY_SOURCE=2 -U _FORTIFY_SOURCE -D _FORTIFY_SOURCE=2 -cxx-isystem /usr/lib64/qt/include -cxx-isystem /usr/lib64/qt/include -internal-isystem /usr/local/include -internal-isystem /usr/bin/../lib64/clang/9.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -O3 -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 /storage2/shit/build/firefox-69.0.1/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 -fcolor-diagnostics -vectorize-loops -vectorize-slp -faddrsig -o test-array.o -x c /storage2/shit/build/firefox-69.0.1/build/unix/elfhack/test-array.c
58:04.51 1. <eof> parser at end of file
58:04.51 2. Code generation
58:04.51 3. Running pass 'Function Pass Manager' on module '/storage2/shit/build/firefox-69.0.1/build/unix/elfhack/test-array.c'.
58:04.51 4. Running pass 'X86 DAG->DAG Instruction Selection' on function '@test'
58:04.60 #0 0x00007efca57616f4 (/usr/bin/../lib64/libLLVMSupport.so.9+0x1776f4)
58:04.60 #1 0x00007efca575f5ee llvm::sys::RunSignalHandlers() (/usr/bin/../lib64/libLLVMSupport.so.9+0x1755ee)
58:04.60 #2 0x00007efca57619a8 (/usr/bin/../lib64/libLLVMSupport.so.9+0x1779a8)
58:04.60 #3 0x00007efca5385690 __restore_rt (/lib64/libpthread.so.0+0x13690)
58:04.60 #4 0x00007efca64d05e4 llvm::EVT::getExtendedVectorNumElements() const (/usr/bin/../lib64/libLLVMCodeGen.so.9+0x38b5e4)
58:04.61 #5 0x00007efca3da4041 llvm::TargetLowering::SimplifyDemandedBits(llvm::SDValue, llvm::APInt const&, llvm::APInt const&, llvm::KnownBits&, llvm::TargetLowering::TargetLoweringOpt&, unsigned int, bool) const (/usr/bin/../lib64/../lib64/libLLVMSelectionDAG.so.9+0x212041)
58:04.61 #6 0x00007efca3da9f9a llvm::TargetLowering::SimplifyDemandedBits(llvm::SDValue, llvm::APInt const&, llvm::APInt const&, llvm::KnownBits&, llvm::TargetLowering::TargetLoweringOpt&, unsigned int, bool) const (/usr/bin/../lib64/../lib64/libLLVMSelectionDAG.so.9+0x217f9a)
58:04.61 #7 0x00007efca3c278f0 (/usr/bin/../lib64/../lib64/libLLVMSelectionDAG.so.9+0x958f0)
58:04.61 #8 0x00007efca3c06937 #0( /usr/bin/../lib64/../lib64/libLLVMSelectionDAG.so.9+0x74937)
58:04.61 0x00007f1686e696f4 #9( /usr/bin/../lib64/libLLVMSupport.so.90x00007efca3bd29c1+ 0x1776f4()/usr/bin/../lib64/../lib64/libLLVMSelectionDAG.so.9
58:04.61 +0x409c1)
58:04.61 #10#1 0x00007efca3bcf64c0x00007f1686e675ee llvm::sys::RunSignalHandlers()( /usr/bin/../lib64/../lib64/libLLVMSelectionDAG.so.9(+/usr/bin/../lib64/libLLVMSupport.so.90x3d64c)+
58:04.61 0x1755ee)
58:04.61 #11 0x00007efca3bcdee3 #2llvm::SelectionDAG::Combine(llvm::CombineLevel, llvm::AAResults*, llvm::CodeGenOpt::Level) 0x00007f1686e699a8( /usr/bin/../lib64/../lib64/libLLVMSelectionDAG.so.9(+/usr/bin/../lib64/libLLVMSupport.so.90x3bee3+)0x1779a8
58:04.61 )
58:04.61 #12 0x00007efca3d8ae82#3 llvm::SelectionDAGISel::CodeGenAndEmitDAG()0x00007f1686a8d690 (__restore_rt/usr/bin/../lib64/../lib64/libLLVMSelectionDAG.so.9 +(0x1f8e82/lib64/libpthread.so.0)
58:04.61 +0x13690)#13
58:04.61 0x00007efca3d8aa37 #4llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) 0x00007f1687bd85e4( /usr/bin/../lib64/../lib64/libLLVMSelectionDAG.so.9llvm::EVT::getExtendedVectorNumElements() const+ 0x1f8a37()
58:04.61 /usr/bin/../lib64/libLLVMCodeGen.so.9+0x38b5e4#14)
58:04.61 0x00007efca3d882c6 llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&)#5 (0x00007f16854ac041/usr/bin/../lib64/../lib64/libLLVMSelectionDAG.so.9 +llvm::TargetLowering::SimplifyDemandedBits(llvm::SDValue, llvm::APInt const&, llvm::APInt const&, llvm::KnownBits&, llvm::TargetLowering::TargetLoweringOpt&, unsigned int, bool) const0x1f62c6 )(
58:04.61 /usr/bin/../lib64/../lib64/libLLVMSelectionDAG.so.9#15+ 0x2120410x00007efca6e1be58)
58:04.61 (/usr/bin/../lib64/libLLVMX86CodeGen.so.9+0xd6e58)
58:04.62 #6 0x00007f16854b1f9a llvm::TargetLowering::SimplifyDemandedBits(llvm::SDValue, llvm::APInt const&, llvm::APInt const&, llvm::KnownBits&, llvm::TargetLowering::TargetLoweringOpt&, unsigned int, bool) const (#16/usr/bin/../lib64/../lib64/libLLVMSelectionDAG.so.9+0x217f9a)
58:04.62 0x00007efca6329354 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (/usr/bin/../lib64/libLLVMCodeGen.so.9+0x1e4354)
58:04.62 #7#17 0x00007f168532f8f00x00007efca60074cb (llvm::FPPassManager::runOnFunction(llvm::Function&)/usr/bin/../lib64/../lib64/libLLVMSelectionDAG.so.9 +(0x958f0/usr/bin/../lib64/libLLVMCore.so.9)+
58:04.62 0x1aa4cb)
58:04.62 #8#18 0x00007f168530e9370x00007efca60077b3 (llvm::FPPassManager::runOnModule(llvm::Module&)/usr/bin/../lib64/../lib64/libLLVMSelectionDAG.so.9 +(0x74937/usr/bin/../lib64/libLLVMCore.so.9)+
58:04.62 0x1aa7b3)
58:04.62 #9 0x00007f16852da9c1#19 (/usr/bin/../lib64/../lib64/libLLVMSelectionDAG.so.90x00007efca6007d4f+ 0x409c1llvm::legacy::PassManagerImpl::run(llvm::Module&))
58:04.62 (/usr/bin/../lib64/libLLVMCore.so.9+#100x1aad4f )0x00007f16852d764c
58:04.62 (/usr/bin/../lib64/../lib64/libLLVMSelectionDAG.so.9#20+ 0x3d64c0x00007efca4b08c04)
58:04.62 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> >)#11 (0x00007f16852d5ee3/usr/bin/../lib64/libclangCodeGen.so.9 +llvm::SelectionDAG::Combine(llvm::CombineLevel, llvm::AAResults*, llvm::CodeGenOpt::Level)0xa4c04 )(
58:04.62 /usr/bin/../lib64/../lib64/libLLVMSelectionDAG.so.9+0x3bee3#21)
58:04.62 0x00007efca4d5b18d (#12/usr/bin/../lib64/libclangCodeGen.so.9 +0x00007f1685492e820x2f718d )llvm::SelectionDAGISel::CodeGenAndEmitDAG()
58:04.62 (/usr/bin/../lib64/../lib64/libLLVMSelectionDAG.so.9+#220x1f8e82 )0x00007efca2d20653
58:04.62 clang::ParseAST(clang::Sema&, bool, bool) (#13/usr/bin/../lib64/../lib64/libclangParse.so.9 +0x00007f1685492a370x32653 )llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&)
58:04.62 (/usr/bin/../lib64/../lib64/libLLVMSelectionDAG.so.9#23+ 0x1f8a370x00007efca47bcad1)
58:04.62 clang::FrontendAction::Execute() (#14/usr/bin/../lib64/libclangFrontend.so.9 +0x00007f16854902c60xe8ad1 )llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&)
58:04.62 (/usr/bin/../lib64/../lib64/libLLVMSelectionDAG.so.9+#240x1f62c6 )
58:04.63 0x00007efca475d03f #15clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) 0x00007f1688523e58( /usr/bin/../lib64/libclangFrontend.so.9(+/usr/bin/../lib64/libLLVMX86CodeGen.so.90x8903f)+
58:04.63 0xd6e58)
58:04.63 #25 0x00007efca46d10ec#16 clang::ExecuteCompilerInvocation(clang::CompilerInstance*)0x00007f1687a31354 (llvm::MachineFunctionPass::runOnFunction(llvm::Function&)/usr/bin/../lib64/libclangFrontendTool.so.9 +0x40ec()/usr/bin/../lib64/libLLVMCodeGen.so.9+
58:04.63 0x1e4354)
58:04.63 #26 #170x00000000004112ad cc1_main(llvm::ArrayRef<char const*>, char const*, void*)0x00007f168770f4cb (llvm::FPPassManager::runOnFunction(llvm::Function&)/usr/bin/clang-9 +(0x4112ad/usr/bin/../lib64/libLLVMCore.so.9)+
58:04.63 0x1aa4cb)
58:04.63 #27 #180x000000000040f3a2 0x00007f168770f7b3main llvm::FPPassManager::runOnModule(llvm::Module&)( /usr/bin/clang-9(+/usr/bin/../lib64/libLLVMCore.so.90x40f3a2+)0x1aa7b3
58:04.63 )
58:04.63 #28#19 0x00007efca3fd2e5b0x00007f168770fd4f __libc_start_mainllvm::legacy::PassManagerImpl::run(llvm::Module&) ((/lib64/libc.so.6/usr/bin/../lib64/libLLVMCore.so.9++0x23e5b0x1aad4f))
58:04.63 #29#20 0x00007f1686210c040x000000000040c89a 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> >) _start( /usr/bin/../lib64/libclangCodeGen.so.9(+/usr/bin/clang-90xa4c04+)0x40c89a
58:04.63 )
58:04.63 #21 0x00007f168646318d (/usr/bin/../lib64/libclangCodeGen.so.9+0x2f718d)
58:04.63 #22 0x00007f1684428653 clang::ParseAST(clang::Sema&, bool, bool) (/usr/bin/../lib64/../lib64/libclangParse.so.9+0x32653)
58:04.63 #23 0x00007f1685ec4ad1 clang::FrontendAction::Execute() (/usr/bin/../lib64/libclangFrontend.so.9+0xe8ad1)
58:04.63 #24 0x00007f1685e6503f clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/usr/bin/../lib64/libclangFrontend.so.9+0x8903f)
58:04.63 #25 0x00007f1685dd90ec clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/usr/bin/../lib64/libclangFrontendTool.so.9+0x40ec)
58:04.63 #26 0x00000000004112ad cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/usr/bin/clang-9+0x4112ad)
58:04.64 #27 0x000000000040f3a2 main (/usr/bin/clang-9+0x40f3a2)
58:04.64 #28 0x00007f16856dae5b __libc_start_main (/lib64/libc.so.6+0x23e5b)
58:04.64 #29 0x000000000040c89a _start (/usr/bin/clang-9+0x40c89a)
58:04.64 clang-9: clang-9: error: unable to execute command: Segmentation faulterror:
58:04.64 unable to execute command: Segmentation fault
58:04.64 clang-9: error: clang-9clang frontend command failed due to signal (use -v to see invocation):

58:04.64 error: clang frontend command failed due to signal (use -v to see invocation)
58:04.64 clang version 9.0.0 (tags/RELEASE_900/final)clang version 9.0.0 (tags/RELEASE_900/final)
58:04.64 Target: Target: x86_64-unknown-linux-gnux86_64-unknown-linux-gnu
58:04.64 Thread model: Thread model: posixposix
58:04.64 InstalledDir: InstalledDir: /usr/bin/usr/bin
58:04.64 clang-9clang-9: : notenote: : diagnostic msg: PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.diagnostic msg: PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
58:04.64
58:04.65 clang-9: note: diagnostic msg:
58:04.65 ********************
58:04.65 PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
58:04.65 Preprocessed source(s) and associated run script(s) are located at:
58:04.65 clang-9: note: diagnostic msg: /tmp/test-array-0b500c.c
58:04.65 clang-9: note: diagnostic msg: /tmp/test-array-0b500c.sh
58:04.65 clang-9: note: diagnostic msg:
58:04.65 ********************
58:04.65 gmake[5]: *** [/storage2/shit/build/firefox-69.0.1/config/rules.mk:730: test-array.o] Error 254
58:04.65 gmake[5]: *** Waiting for unfinished jobs....
58:04.66 clang-9: note: diagnostic msg:
58:04.66 ********************
58:04.66 PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
58:04.66 Preprocessed source(s) and associated run script(s) are located at:
58:04.66 clang-9: note: diagnostic msg: /tmp/test-ctors-bcd301.c
58:04.66 clang-9: note: diagnostic msg: /tmp/test-ctors-bcd301.sh
58:04.66 clang-9: note: diagnostic msg:
58:04.66 ********************
58:04.66 gmake[5]: *** [/storage2/shit/build/firefox-69.0.1/config/rules.mk:730: test-ctors.o] Error 254
58:04.66 gmake[4]: *** [/storage2/shit/build/firefox-69.0.1/config/recurse.mk:101: build/unix/elfhack/libs] Error 2
58:04.66 gmake[3]: *** [/storage2/shit/build/firefox-69.0.1/config/recurse.mk:34: libs] Error 2
58:04.66 gmake[2]: *** [/storage2/shit/build/firefox-69.0.1/config/rules.mk:391: default] Error 2
58:04.66 gmake[1]: *** [Makefile:188: profiledbuild] Error 2
58:04.66 gmake: *** [client.mk:125: build] Error 2
58:04.71 276 compiler warnings present.
58:04.81 /usr/bin/notify-send --app-name=Mozilla Build System Mozilla Build System Build failed

real 58m4.966s
user 332m24.251s
sys 5m24.163slatest?d=yIl2AUoC8zA latest?i=rVZo-VFvp1Q:WdFv9lKrHv8:F7zBnMy latest?i=rVZo-VFvp1Q:WdFv9lKrHv8:V_sGLiP latest?d=qj6IDK7rITs latest?i=rVZo-VFvp1Q:WdFv9lKrHv8:gIN9vFwrVZo-VFvp1Q
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments