sammccall added a comment. The latest reland of this patch triggers a segfault in clang (seemingly only on k8 and ppc). I've bisected it to r341519 but don't understand the cause. The stacktrace is:
1. <eof> parser at end of file 2. Code generation #0 0x00005649754494d4 SignalHandler(int) (third_party/crosstool/v18/llvm_unstable/toolchain/bin/clang+0x10db4d4) #1 0x00007f72c7f849a0 __restore_rt (/usr/grte/v4/lib64/libpthread.so.0+0xf9a0) #2 0x000056497495f950 llvm::MCObjectStreamer::visitUsedSymbol(llvm::MCSymbol const&) (third_party/crosstool/v18/llvm_unstable/toolchain/bin/clang+0x5f1950) #3 0x0000564974927858 llvm::MCELFStreamer::EmitValueImpl(llvm::MCExpr const*, unsigned int, llvm::SMLoc) (third_party/crosstool/v18/llvm_unstable/toolchain/bin/clang+0x5b9858) #4 0x0000564975bdb18c llvm::AddressPool::emit(llvm::AsmPrinter&, llvm::MCSection*) (third_party/crosstool/v18/llvm_unstable/toolchain/bin/clang+0x186d18c) #5 0x0000564975bb5525 llvm::DwarfDebug::endModule() (third_party/crosstool/v18/llvm_unstable/toolchain/bin/clang+0x1847525) #6 0x00005649748d185a llvm::AsmPrinter::doFinalization(llvm::Module&) (third_party/crosstool/v18/llvm_unstable/toolchain/bin/clang+0x56385a) #7 0x000056497535f883 llvm::FPPassManager::doFinalization(llvm::Module&) (third_party/crosstool/v18/llvm_unstable/toolchain/bin/clang+0xff1883) #8 0x000056497535ff05 llvm::legacy::PassManagerImpl::run(llvm::Module&) (third_party/crosstool/v18/llvm_unstable/toolchain/bin/clang+0xff1f05) #9 0x0000564974acff27 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> >) (third_party/crosstool/v18/llvm_unstable/toolchain/bin/clang+0x761f27) #10 0x00005649764c40cd clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) (third_party/crosstool/v18/llvm_unstable/toolchain/bin/clang+0x21560cd) #11 0x0000564974cc4f78 clang::ParseAST(clang::Sema&, bool, bool) (third_party/crosstool/v18/llvm_unstable/toolchain/bin/clang+0x956f78) #12 0x000056497649a3e7 clang::FrontendAction::Execute() (third_party/crosstool/v18/llvm_unstable/toolchain/bin/clang+0x212c3e7) #13 0x00005649764e1c02 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (third_party/crosstool/v18/llvm_unstable/toolchain/bin/clang+0x2173c02) #14 0x000056497683e8b3 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (third_party/crosstool/v18/llvm_unstable/toolchain/bin/clang+0x24d08b3) #15 0x00005649754110de cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (third_party/crosstool/v18/llvm_unstable/toolchain/bin/clang+0x10a30de) #16 0x0000564974e4682a main (third_party/crosstool/v18/llvm_unstable/toolchain/bin/clang+0xad882a) #17 0x00007f72c7cf2bbd __libc_start_main (/usr/grte/v4/lib64/libc.so.6+0x38bbd) #18 0x0000564974e51069 _start (third_party/crosstool/v18/llvm_unstable/toolchain/bin/clang+0xae3069) clang: error: unable to execute command: Segmentation fault clang: error: clang frontend command failed due to signal (use -v to see invocation) I can try to isolate a reproducer if the buildbots don't pick this up. Repository: rL LLVM https://reviews.llvm.org/D45045 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits