Bug 1670502 - rustc core dump during firefox build in llvm
Summary: rustc core dump during firefox build in llvm
Keywords:
Status: CLOSED DUPLICATE of bug 1668033
Alias: None
Product: Fedora
Classification: Fedora
Component: rust
Version: rawhide
Hardware: armhfp
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Josh Stone
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-01-29 17:07 UTC by Jeremy Linton
Modified: 2019-01-30 00:08 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-01-30 00:08:01 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jeremy Linton 2019-01-29 17:07:11 UTC
Description of problem: the rustc compiler is crashing while building firefox with the following commandline:

35:59.79   process didn't exit successfully: `/usr/bin/rustc --crate-name gkrust toolkit/library/rust/lib.rs --color never --crate-type staticlib --emit=dep-info,link -C opt-level=2 -C panic=abort -C codegen-units=1 -C lto --cfg 'feature="bindgen"' --cfg 'feature="cubeb-remoting"' --cfg 'feature="cubeb_pulse_rust"' --cfg 'feature="gecko_profiler"' --cfg 'feature="gkrust-shared"' --cfg 'feature="quantum_render"' --cfg 'feature="servo"' -C metadata=47100c6a84c6522a -C extra-filename=-47100c6a84c6522a --out-dir /root/firefox/firefox-65.0/objdir/armv7-unknown-linux-gnueabihf/release/deps --target armv7-unknown-linux-gnueabihf -C linker=/root/firefox/firefox-65.0/build/cargo-linker -L dependency=/root/firefox/firefox-65.0/objdir/armv7-unknown-linux-gnueabihf/release/deps -L dependency=/root/firefox/firefox-65.0/objdir/release/deps --extern gkrust_shared=/root/firefox/firefox-65.0/objdir/armv7-unknown-linux-gnueabihf/release/deps/libgkrust_shared-06381da997f4762c.rlib --extern mozilla_central_workspace_hack=/root/firefox/firefox-65.0/objdir/armv7-unknown-linux-gnueabihf/release/deps/libmozilla_central_workspace_hack-3a8a39063d39286c.rlib -C opt-level=2 -C debuginfo=2 -Cdebuginfo=0 -L native=/root/firefox/firefox-65.0/objdir/armv7-unknown-linux-gnueabihf/release/build/lmdb-sys-2d581c007ac7a9a6/out` (signal: 11, SIGSEGV: invalid memory reference)



Version-Release number of selected component (if applicable):
rawhide
[root@localhost firefox-65.0]# rustc --version
rustc 1.32.0
[root@localhost firefox-65.0]# rpm -qa |grep llvm
llvm-devel-7.0.1-1.fc30.armv7hl
llvm-7.0.1-1.fc30.armv7hl
llvm-libs-7.0.1-1.fc30.armv7hl


How reproducible: 100% at the moment.


Steps to Reproduce:
1. fedpkg clone firefox; l
2. dnf builddeps firefox.spec, (build most recent libicu, remove excludearch)
3. fedpkg local

Actual results:
backtrace:

#0  0xb32c2954 in llvm::DwarfUnit::constructTypeDIE(llvm::DIE&, llvm::DICompositeType const*) () from /lib/libLLVM-7.so
#1  0xb32c2c20 in llvm::DwarfUnit::getOrCreateTypeDIE(llvm::MDNode const*) () from /lib/libLLVM-7.so
#2  0xb32c2c48 in llvm::DwarfUnit::addType(llvm::DIE&, llvm::DIType const*, llvm::dwarf::Attribute) () from /lib/libLLVM-7.so
#3  0xb32c4738 in llvm::DwarfUnit::constructMemberDIE(llvm::DIE&, llvm::DIDerivedType const*) () from /lib/libLLVM-7.so
#4  0xb32c25f0 in llvm::DwarfUnit::constructTypeDIE(llvm::DIE&, llvm::DICompositeType const*) () from /lib/libLLVM-7.so
#5  0xb32c2c20 in llvm::DwarfUnit::getOrCreateTypeDIE(llvm::MDNode const*) () from /lib/libLLVM-7.so
#6  0xb32c2c48 in llvm::DwarfUnit::addType(llvm::DIE&, llvm::DIType const*, llvm::dwarf::Attribute) () from /lib/libLLVM-7.so
#7  0xb32c4738 in llvm::DwarfUnit::constructMemberDIE(llvm::DIE&, llvm::DIDerivedType const*) () from /lib/libLLVM-7.so
#8  0xb32c25f0 in llvm::DwarfUnit::constructTypeDIE(llvm::DIE&, llvm::DICompositeType const*) () from /lib/libLLVM-7.so
#9  0xb32c2c20 in llvm::DwarfUnit::getOrCreateTypeDIE(llvm::MDNode const*) () from /lib/libLLVM-7.so
#10 0xb32c2c48 in llvm::DwarfUnit::addType(llvm::DIE&, llvm::DIType const*, llvm::dwarf::Attribute) () from /lib/libLLVM-7.so
#11 0xb32a19cc in llvm::DwarfCompileUnit::getOrCreateGlobalVariableDIE(llvm::DIGlobalVariable const*, llvm::ArrayRef<llvm::DwarfCompileUnit::GlobalExpr>) () from /lib/libLLVM-7.so
#12 0xb32b3af0 in llvm::DwarfDebug::beginModule() () from /lib/libLLVM-7.so
#13 0xb3283f18 in llvm::AsmPrinter::doInitialization(llvm::Module&) () from /lib/libLLVM-7.so
#14 0xb2ced8d8 in llvm::FPPassManager::doInitialization(llvm::Module&) () from /lib/libLLVM-7.so
#15 0xb2cf8084 in llvm::legacy::PassManagerImpl::run(llvm::Module&) () from /lib/libLLVM-7.so
#16 0xb4b34a00 in LLVMRustWriteOutputFile () at ../rustllvm/PassWrapper.cpp:543
#17 0xb4a7ae88 in rustc_codegen_llvm::back::write::write_output_file () from /usr/lib/rustlib/armv7-unknown-linux-gnueabihf/codegen-backends/librustc_codegen_llvm-llvm.so
#18 0xb4a7e0ec in rustc_codegen_llvm::back::write::codegen::{{closure}} () from /usr/lib/rustlib/armv7-unknown-linux-gnueabihf/codegen-backends/librustc_codegen_llvm-llvm.so
#19 0xb4a7d568 in rustc_codegen_llvm::back::write::codegen () from /usr/lib/rustlib/armv7-unknown-linux-gnueabihf/codegen-backends/librustc_codegen_llvm-llvm.so
#20 0xb4a41994 in rustc_codegen_ssa::back::write::execute_work_item () from /usr/lib/rustlib/armv7-unknown-linux-gnueabihf/codegen-backends/librustc_codegen_llvm-llvm.so
#21 0xb4b021c0 in std::sys_common::backtrace::__rust_begin_short_backtrace () from /usr/lib/rustlib/armv7-unknown-linux-gnueabihf/codegen-backends/librustc_codegen_llvm-llvm.so
#22 0xb4a0e7f8 in std::panicking::try::do_call () from /usr/lib/rustlib/armv7-unknown-linux-gnueabihf/codegen-backends/librustc_codegen_llvm-llvm.so

Expected results:
rustc doesn't crash during build

Additional info:

Comment 1 Josh Stone 2019-01-29 17:11:30 UTC
I believe this is a duplicate of bug 1668033 -- please try with llvm-7.0.1-2.fc30.

Comment 2 Jeremy Linton 2019-01-29 23:46:46 UTC
Yes that appears to have solved the problem.

Comment 3 Josh Stone 2019-01-30 00:08:01 UTC

*** This bug has been marked as a duplicate of bug 1668033 ***


Note You need to log in before you can comment on or make changes to this bug.