[llvm-bugs] [Bug 36196] New: lld produces malformed PDB

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Feb 1 08:02:20 PST 2018


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

            Bug ID: 36196
           Summary: lld produces malformed PDB
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: stefan.reinalter at molecular-matters.com
                CC: llvm-bugs at lists.llvm.org

I wanted to investigate PDB files created by lld, but noticed that they seem to
be malformed.

If you run the attached PDB through Microsoft's DIA2Dump sample (part of the
DIA SDK found under VSPATH/DIA SDK/Samples/DIA2Dump) using -all as command line
argument, DIA2Dump will crash inside msdia140.dll with the following callstack:

        msdia140.dll!CLineByAddrTrav::nextMod(void)     Unknown Non-user code.
Symbols loaded.
        msdia140.dll!CLineByAddrTrav::next(void)        Unknown Non-user code.
Symbols loaded.
        msdia140.dll!CDiaEnumTraversal<class CDiaEnumLineNumbers,class
CLineRow,struct IDiaLineNumber,struct IDiaEnumLineNumbers,class
CDiaLineNumber,class CTraversal<class CLineRow> >::Next(unsigned long,struct
IDiaLineNumber * *,unsigned long *) Unknown Non-user code. Symbols loaded.
>	Dia2Dump.exe!PrintLines(IDiaEnumLineNumbers * pLines) Line 2097	C++	Symbols loaded.
        Dia2Dump.exe!PrintLines(IDiaSession * pSession, IDiaSymbol * pFunction)
Line 2063       C++     Symbols loaded.
        Dia2Dump.exe!DumpAllLines(IDiaSession * pSession, IDiaSymbol * pGlobal)
Line 1122       C++     Symbols loaded.
        Dia2Dump.exe!DumpAllPdbInfo(IDiaSession * pSession, IDiaSymbol *
pGlobal) Line 718      C++     Symbols loaded.
        Dia2Dump.exe!wmain(int argc, wchar_t * * argv) Line 62  C++     Symbols
loaded.
        Dia2Dump.exe!invoke_main() Line 90      C++     Non-user code. Symbols
loaded.
        Dia2Dump.exe!__scrt_common_main_seh() Line 283  C++     Non-user code.
Symbols loaded.
        Dia2Dump.exe!__scrt_common_main() Line 326      C++     Non-user code.
Symbols loaded.
        Dia2Dump.exe!wmainCRTStartup() Line 17  C++     Non-user code. Symbols
loaded.
        kernel32.dll!@BaseThreadInitThunk at 12() Unknown Non-user code. Symbols
loaded.
        ntdll.dll!__RtlUserThreadStart()        Unknown Non-user code. Symbols
loaded.
        ntdll.dll!__RtlUserThreadStart at 8()     Unknown Non-user code. Symbols
loaded.

-- 
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/20180201/04ccebfb/attachment.html>


More information about the llvm-bugs mailing list