[llvm-bugs] [Bug 38597] New: Crash when building Firefox with LTO with clang 7.0 rc1
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Aug 16 04:04:48 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=38597
Bug ID: 38597
Summary: Crash when building Firefox with LTO with clang 7.0
rc1
Product: new-bugs
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: mh+llvm at glandium.org
CC: llvm-bugs at lists.llvm.org
This is what is printed out when it fails:
PHI nodes not grouped at top of basic block!
%703 = phi float [ undef, %606 ], [ undef, %610 ], [ undef, %658 ], [ %659,
%666 ], [ undef, %625 ], [ undef, %619 ], [ undef, %613 ]
label %699
LLVM ERROR: Broken function found, compilation aborted!
#0 0x00000000004cb2a4 PrintStackTraceSignalHandler(void*)
(/builds/worker/workspace/build/src/clang/bin/ld.lld+0x4cb2a4)
#1 0x00000000004c956e llvm::sys::RunSignalHandlers()
(/builds/worker/workspace/build/src/clang/bin/ld.lld+0x4c956e)
#2 0x00000000004cb4b2 SignalHandler(int)
(/builds/worker/workspace/build/src/clang/bin/ld.lld+0x4cb4b2)
#3 0x00007f7e5acbf0a0 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0xf0a0)
#4 0x00000000018d35c7 llvm::BitcodeModule::getModuleImpl(llvm::LLVMContext&,
bool, bool, bool)
(/builds/worker/workspace/build/src/clang/bin/ld.lld+0x18d35c7)
#5 0x00000000018da644 llvm::BitcodeModule::parseModule(llvm::LLVMContext&)
(/builds/worker/workspace/build/src/clang/bin/ld.lld+0x18da644)
#6 0x0000000000eec0da (anonymous
namespace)::InProcessThinBackend::runThinLTOBackendThread(std::function<std::unique_ptr<llvm::lto::NativeObjectStream,
std::default_delete<llvm::lto::NativeObjectStream> > (unsigned int)>,
std::function<std::function<std::unique_ptr<llvm::lto::NativeObjectStream,
std::default_delete<llvm::lto::NativeObjectStream> > (unsigned int)> (unsigned
int, llvm::StringRef)>, unsigned int, llvm::BitcodeModule,
llvm::ModuleSummaryIndex&, llvm::StringMap<std::unordered_set<unsigned long,
std::hash<unsigned long>, std::equal_to<unsigned long>, std::allocator<unsigned
long> >, llvm::MallocAllocator> const&, std::unordered_set<unsigned long,
std::hash<unsigned long>, std::equal_to<unsigned long>, std::allocator<unsigned
long> > const&, std::map<unsigned long, llvm::GlobalValue::LinkageTypes,
std::less<unsigned long>, std::allocator<std::pair<unsigned long const,
llvm::GlobalValue::LinkageTypes> > > const&, llvm::DenseMap<unsigned long,
llvm::GlobalValueSummary*, llvm::DenseMapInfo<unsigned long>,
llvm::detail::DenseMapPair<unsigned long, llvm::GlobalValueSummary*> > const&,
llvm::MapVector<llvm::StringRef, llvm::BitcodeModule,
llvm::DenseMap<llvm::StringRef, unsigned int,
llvm::DenseMapInfo<llvm::StringRef>,
llvm::detail::DenseMapPair<llvm::StringRef, unsigned int> >,
std::vector<std::pair<llvm::StringRef, llvm::BitcodeModule>,
std::allocator<std::pair<llvm::StringRef, llvm::BitcodeModule> > > >&,
llvm::DenseMap<unsigned long, llvm::TinyPtrVector<std::pair<std::string const,
llvm::TypeIdSummary> const*>, llvm::DenseMapInfo<unsigned long>,
llvm::detail::DenseMapPair<unsigned long,
llvm::TinyPtrVector<std::pair<std::string const, llvm::TypeIdSummary> const*> >
>
const&)::'lambda'(std::function<std::unique_ptr<llvm::lto::NativeObjectStream,
std::default_delete<llvm::lto::NativeObjectStream> > (unsigned
int)>)::operator()(std::function<std::unique_ptr<llvm::lto::NativeObjectStream,
std::default_delete<llvm::lto::NativeObjectStream> > (unsigned int)>) const
(/builds/worker/workspace/build/src/clang/bin/ld.lld+0xeec0da)
#7 0x0000000000eea637 std::_Function_handler<void (), std::_Bind<(anonymous
namespace)::InProcessThinBackend::start(unsigned int, llvm::BitcodeModule,
llvm::StringMap<std::unordered_set<unsigned long, std::hash<unsigned long>,
std::equal_to<unsigned long>, std::allocator<unsigned long> >,
llvm::MallocAllocator> const&, std::unordered_set<unsigned long,
std::hash<unsigned long>, std::equal_to<unsigned long>, std::allocator<unsigned
long> > const&, std::map<unsigned long, llvm::GlobalValue::LinkageTypes,
std::less<unsigned long>, std::allocator<std::pair<unsigned long const,
llvm::GlobalValue::LinkageTypes> > > const&, llvm::MapVector<llvm::StringRef,
llvm::BitcodeModule, llvm::DenseMap<llvm::StringRef, unsigned int,
llvm::DenseMapInfo<llvm::StringRef>,
llvm::detail::DenseMapPair<llvm::StringRef, unsigned int> >,
std::vector<std::pair<llvm::StringRef, llvm::BitcodeModule>,
std::allocator<std::pair<llvm::StringRef, llvm::BitcodeModule> > >
>&)::'lambda'(llvm::BitcodeModule, llvm::ModuleSummaryIndex&,
llvm::StringMap<std::unordered_set<unsigned long, std::hash<unsigned long>,
std::equal_to<unsigned long>, std::allocator<unsigned long> >,
llvm::MallocAllocator> const&, std::unordered_set<unsigned long,
std::hash<unsigned long>, std::equal_to<unsigned long>, std::allocator<unsigned
long> > const&, std::map<unsigned long, llvm::GlobalValue::LinkageTypes,
std::less<unsigned long>, std::allocator<std::pair<unsigned long const,
llvm::GlobalValue::LinkageTypes> > > const&, llvm::DenseMap<unsigned long,
llvm::GlobalValueSummary*, llvm::DenseMapInfo<unsigned long>,
llvm::detail::DenseMapPair<unsigned long, llvm::GlobalValueSummary*> > const&,
llvm::MapVector<llvm::StringRef, llvm::BitcodeModule,
llvm::DenseMap<llvm::StringRef, unsigned int,
llvm::DenseMapInfo<llvm::StringRef>,
llvm::detail::DenseMapPair<llvm::StringRef, unsigned int> >,
std::vector<std::pair<llvm::StringRef, llvm::BitcodeModule>,
std::allocator<std::pair<llvm::StringRef, llvm::BitcodeModule> > > >&,
llvm::DenseMap<unsigned long, llvm::TinyPtrVector<std::pair<std::string const,
llvm::TypeIdSummary> const*>, llvm::DenseMapInfo<unsigned long>,
llvm::detail::DenseMapPair<unsigned long,
llvm::TinyPtrVector<std::pair<std::string const, llvm::TypeIdSummary> const*> >
> const&) (llvm::BitcodeModule,
std::reference_wrapper<llvm::ModuleSummaryIndex>,
std::reference_wrapper<llvm::StringMap<std::unordered_set<unsigned long,
std::hash<unsigned long>, std::equal_to<unsigned long>, std::allocator<unsigned
long> >, llvm::MallocAllocator> const>,
std::reference_wrapper<std::unordered_set<unsigned long, std::hash<unsigned
long>, std::equal_to<unsigned long>, std::allocator<unsigned long> > const>,
std::reference_wrapper<std::map<unsigned long, llvm::GlobalValue::LinkageTypes,
std::less<unsigned long>, std::allocator<std::pair<unsigned long const,
llvm::GlobalValue::LinkageTypes> > > const>,
std::reference_wrapper<llvm::DenseMap<unsigned long, llvm::GlobalValueSummary*,
llvm::DenseMapInfo<unsigned long>, llvm::detail::DenseMapPair<unsigned long,
llvm::GlobalValueSummary*> > const>,
std::reference_wrapper<llvm::MapVector<llvm::StringRef, llvm::BitcodeModule,
llvm::DenseMap<llvm::StringRef, unsigned int,
llvm::DenseMapInfo<llvm::StringRef>,
llvm::detail::DenseMapPair<llvm::StringRef, unsigned int> >,
std::vector<std::pair<llvm::StringRef, llvm::BitcodeModule>,
std::allocator<std::pair<llvm::StringRef, llvm::BitcodeModule> > > > >,
std::reference_wrapper<llvm::DenseMap<unsigned long,
llvm::TinyPtrVector<std::pair<std::string const, llvm::TypeIdSummary> const*>,
llvm::DenseMapInfo<unsigned long>, llvm::detail::DenseMapPair<unsigned long,
llvm::TinyPtrVector<std::pair<std::string const, llvm::TypeIdSummary> const*> >
> >)> >::_M_invoke(std::_Any_data const&)
(/builds/worker/workspace/build/src/clang/bin/ld.lld+0xeea637)
#8 0x0000000001a46688
std::_Function_handler<std::unique_ptr<std::__future_base::_Result_base,
std::__future_base::_Result_base::_Deleter> (),
std::__future_base::_Task_setter<std::unique_ptr<std::__future_base::_Result<void>,
std::__future_base::_Result_base::_Deleter>, void> >::_M_invoke(std::_Any_data
const&) (/builds/worker/workspace/build/src/clang/bin/ld.lld+0x1a46688)
#9 0x0000000000517322
std::__future_base::_State_baseV2::_M_do_set(std::function<std::unique_ptr<std::__future_base::_Result_base,
std::__future_base::_Result_base::_Deleter> ()>&, bool&)
(/builds/worker/workspace/build/src/clang/bin/ld.lld+0x517322)
#10 0x00007f7e5acbc8a0 __pthread_once_internal
/build/eglibc-ZYONVs/eglibc-2.13/nptl/../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S:108:0
#11 0x0000000001a464db std::__future_base::_Task_state<std::function<void ()>,
std::allocator<int>, void ()>::_M_run()
(/builds/worker/workspace/build/src/clang/bin/ld.lld+0x1a464db)
#12 0x0000000001a45f28
std::thread::_Impl<std::_Bind_simple<llvm::ThreadPool::ThreadPool(unsigned
int)::$_0 ()> >::_M_run()
(/builds/worker/workspace/build/src/clang/bin/ld.lld+0x1a45f28)
#13 0x0000000001aa36a0 ~__shared_count
/builds/worker/workspace/build/gcc-objdir/x86_64-unknown-linux-gnu/libstdc++-v3/include/bits/shared_ptr_base.h:665:0
#14 0x0000000001aa36a0 ~__shared_ptr
/builds/worker/workspace/build/gcc-objdir/x86_64-unknown-linux-gnu/libstdc++-v3/include/bits/shared_ptr_base.h:914:0
#15 0x0000000001aa36a0 ~shared_ptr
/builds/worker/workspace/build/gcc-objdir/x86_64-unknown-linux-gnu/libstdc++-v3/include/bits/shared_ptr.h:93:0
#16 0x0000000001aa36a0 execute_native_thread_routine
/builds/worker/workspace/build/gcc-objdir/x86_64-unknown-linux-gnu/libstdc++-v3/src/c++11/../../../../../gcc-4.9.4/libstdc++-v3/src/c++11/thread.cc:95:0
#17 0x00007f7e5acb6b50 start_thread
/build/eglibc-ZYONVs/eglibc-2.13/nptl/pthread_create.c:304:0
#18 0x00007f7e59f45fbd clone
/build/eglibc-ZYONVs/eglibc-2.13/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:114:0
clang-7: error: unable to execute command: Segmentation fault
clang-7: error: linker command failed due to signal (use -v to see invocation)
I'm not sure how to make this report more useful.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180816/219ef755/attachment.html>
More information about the llvm-bugs
mailing list