<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - segfault in llvm::DwarfUnit::createAndAddDIE"
   href="https://llvm.org/bugs/show_bug.cgi?id=26715">26715</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>segfault in llvm::DwarfUnit::createAndAddDIE
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>-New Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>hans@chromium.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=15937" name="attach_15937" title="repro source">attachment 15937</a> <a href="attachment.cgi?id=15937&action=edit" title="repro source">[details]</a></span>
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)</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>