[llvm-bugs] [Bug 26715] New: segfault in llvm::DwarfUnit::createAndAddDIE

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Feb 23 09:34:56 PST 2016


https://llvm.org/bugs/show_bug.cgi?id=26715

            Bug ID: 26715
           Summary: segfault in llvm::DwarfUnit::createAndAddDIE
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: hans at chromium.org
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 15937
  --> https://llvm.org/bugs/attachment.cgi?id=15937&action=edit
repro source

This seems to have regressed during the night.

Repro invocation:
$ clang -cc1 -triple x86_64-unknown-linux-gnu -emit-obj
-debug-info-kind=limited -std=gnu++11  /tmp/a.ii

#0 0x0000000001aaa985 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x1aaa985)
#1 0x0000000001aa8736 llvm::sys::RunSignalHandlers()
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x1aa8736)
#2 0x0000000001aa8961 SignalHandler(int)
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x1aa8961)
#3 0x00007ff95a3c9330 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x10330)
#4 0x0000000001f6549e llvm::DwarfUnit::createAndAddDIE(unsigned int,
llvm::DIE&, llvm::DINode const*)
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x1f6549e)
#5 0x0000000001f903c8
llvm::DwarfCompileUnit::getOrCreateGlobalVariableDIE(llvm::DIGlobalVariable
const*) (/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x1f903c8)
#6 0x0000000001f5b002 llvm::DwarfDebug::beginModule()
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x1f5b002)
#7 0x0000000001f5bc64 llvm::DwarfDebug::DwarfDebug(llvm::AsmPrinter*,
llvm::Module*)
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x1f5bc64)
#8 0x0000000001f414db llvm::AsmPrinter::doInitialization(llvm::Module&)
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x1f414db)
#9 0x00000000017638b7 llvm::FPPassManager::doInitialization(llvm::Module&)
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x17638b7)
#10 0x000000000176daeb llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x176daeb)
#11 0x0000000001bd4f52 clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions
const&, llvm::StringRef, llvm::Module*, clang::BackendAction,
llvm::raw_pwrite_stream*)
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x1bd4f52)
#12 0x0000000002152f9f
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x2152f9f)
#13 0x000000000245e62b clang::ParseAST(clang::Sema&, bool, bool)
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x245e62b)
#14 0x000000000215305e clang::CodeGenAction::ExecuteAction()
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x215305e)
#15 0x0000000001ea8536 clang::FrontendAction::Execute()
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x1ea8536)
#16 0x0000000001e8530e
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x1e8530e)
#17 0x0000000001f2c1ae
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x1f2c1ae)
#18 0x00000000009d5848 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x9d5848)
#19 0x0000000000991fb5 main
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x991fb5)
#20 0x00007ff9595d5ec5 __libc_start_main
/tmp/tmp.Htw1L27e9P/csu/libc-start.c:321:0
#21 0x00000000009d1924 _start
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x9d1924)

-- 
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/20160223/b54375bd/attachment-0001.html>


More information about the llvm-bugs mailing list