[llvm-bugs] [Bug 37164] New: llc segfauls with split DWARF

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Apr 18 08:15:55 PDT 2018


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

            Bug ID: 37164
           Summary: llc segfauls with split DWARF
           Product: libraries
           Version: trunk
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: DebugInfo
          Assignee: unassignedbugs at nondot.org
          Reporter: jdevlieghere at apple.com
                CC: llvm-bugs at lists.llvm.org

On Darwin, llc doesn't know how to deal with split DWARF. Currently this leads
to llc segfaulting when passing it a DWO file (-split-dwarf-file).

Reproducer:

llc -split-dwarf-file=foo.dwo -filetype=obj
llvm/test/DebugInfo/Generic/debug-names-one-cu.ll

Stack-trace:

* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS
(code=1, address=0x8)
  * frame #0: 0x0000000100eb058a llc`llvm::DwarfDebug::finalizeModuleInfo()
[inlined] llvm::MCSection::getBeginSymbol(this=0x0000000000000000) at
MCSection.h:106 [opt]
    frame #1: 0x0000000100eb058a
llc`llvm::DwarfDebug::finalizeModuleInfo(this=<unavailable>) at
DwarfDebug.cpp:748 [opt]
    frame #2: 0x0000000100eb0964
llc`llvm::DwarfDebug::endModule(this=0x000000010600d400) at DwarfDebug.cpp:809
[opt]
    frame #3: 0x0000000100e89c3d
llc`llvm::AsmPrinter::doFinalization(this=<unavailable>, M=<unavailable>) at
AsmPrinter.cpp:1370 [opt]
    frame #4: 0x000000010130e670
llc`llvm::FPPassManager::doFinalization(this=0x0000000103f17340,
M=0x0000000103f12940) at LegacyPassManager.cpp:1559 [opt]
    frame #5: 0x000000010130ebbd
llc`llvm::legacy::PassManagerImpl::run(llvm::Module&) at
LegacyPassManager.cpp:1615 [opt]
    frame #6: 0x000000010130e8a8
llc`llvm::legacy::PassManagerImpl::run(this=0x000000010501a400,
M=0x0000000103f12940) at LegacyPassManager.cpp:1700 [opt]
    frame #7: 0x0000000100005c42 llc`compileModule(argv=0x0000000000000000,
Context=0x00007ffeefbfeea0) at llc.cpp:572 [opt]
    frame #8: 0x000000010000317f llc`main(argc=<unavailable>,
argv=<unavailable>) at llc.cpp:345 [opt]
    frame #9: 0x00007fff6266b015 libdyld.dylib`start + 1

-- 
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/20180418/ea7e849d/attachment.html>


More information about the llvm-bugs mailing list