<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - lld produces malformed PDB"
   href="https://bugs.llvm.org/show_bug.cgi?id=36196">36196</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>lld produces malformed PDB
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lld
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>Windows NT
          </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>All Bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>stefan.reinalter@molecular-matters.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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.
<span class="quote">>        Dia2Dump.exe!PrintLines(IDiaEnumLineNumbers * pLines) Line 2097 C++     Symbols loaded.</span >
        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@12() Unknown Non-user code. Symbols
loaded.
        ntdll.dll!__RtlUserThreadStart()        Unknown Non-user code. Symbols
loaded.
        ntdll.dll!__RtlUserThreadStart@8()     Unknown Non-user code. Symbols
loaded.</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>