<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 - Dia2dump dies with stackoverflow on pdbs generated by lld r351376"
   href="https://bugs.llvm.org/show_bug.cgi?id=40856">40856</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Dia2dump dies with stackoverflow on pdbs generated by lld r351376
          </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>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>COFF
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>santagada@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Hi,

I used lld snapshot r351376 to link itself and it produced a pdb that when
enumerating all symbols crashes dia2dump. It goes over some of the symbols and
then dies in a recursion:

        msdia140.dll!getPtrData()       Unknown
        msdia140.dll!TypeDispatcher::TypeDispatch(unsigned char *,class
TypeDispatcher *)       Unknown
        msdia140.dll!GetData::getTypeData(unsigned long,struct SymRowImage
*,unsigned long *)   Unknown
        msdia140.dll!CTypeIdTrav::get(class CSymRow &)  Unknown
        msdia140.dll!CDiaSession::ReturnOneObject<class CDiaSymbol,class
CSymRow,struct IDiaSymbol>(class CDiaSymbol *,class CTraversal<class CSymRow>
*,struct IDiaSymbol * *) Unknown
        msdia140.dll!CDiaSession::getSymbol(struct SYMBOL_ID_INTERNAL *,struct
IDiaSymbol * *)  Unknown
        msdia140.dll!CDiaSymbol::get_type(struct IDiaSymbol * *)        Unknown
        msdia140.dll!SymbolNameBuilder::AppendPointerTypeName(struct IDiaSymbol
*)      Unknown
        msdia140.dll!SymbolNameBuilder::AppendTypeName(struct IDiaSymbol *)    
Unknown
        msdia140.dll!SymbolNameBuilder::AppendPointerTypeName(struct IDiaSymbol
*)      Unknown
        msdia140.dll!SymbolNameBuilder::AppendTypeName(struct IDiaSymbol *)    
Unknown
        msdia140.dll!SymbolNameBuilder::AppendPointerTypeName(struct IDiaSymbol
*)      Unknown
        msdia140.dll!SymbolNameBuilder::AppendTypeName(struct IDiaSymbol *)    
Unknown
        msdia140.dll!SymbolNameBuilder::AppendPointerTypeName(struct IDiaSymbol
*)      Unknown
        msdia140.dll!SymbolNameBuilder::AppendTypeName(struct IDiaSymbol *)    
Unknown
        msdia140.dll!SymbolNameBuilder::AppendPointerTypeName(struct IDiaSymbol
*)      Unknown
        msdia140.dll!SymbolNameBuilder::AppendTypeName(struct IDiaSymbol *)    
Unknown
        msdia140.dll!SymbolNameBuilder::AppendPointerTypeName(struct IDiaSymbol
*)      Unknown

Here is a link to the generated binary and pdb:
<a href="https://we.tl/t-56BBkXpEhN">https://we.tl/t-56BBkXpEhN</a></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>