<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/96534>96534</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            pdb2yaml crash
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          edmcman
      </td>
    </tr>
</table>

<pre>
    ```
Stack dump:
0.      Program arguments: llvm-pdbutil pdb2yaml 0ad0b9dfa3df17b96ecc37a692f69d86.exe.pdb --all
 #0 0x0000072503e3fd01 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/lib/x86_64-linux-gnu/libLLVM-14.so.1+0xe3fd01)
 #1 0x0000072503e3da3e llvm::sys::RunSignalHandlers() (/lib/x86_64-linux-gnu/libLLVM-14.so.1+0xe3da3e)
 #2 0x0000072503e40236 (/lib/x86_64-linux-gnu/libLLVM-14.so.1+0xe40236)
 #3 0x0000072502842520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
 #4 0x0000072505535819 llvm::yaml::ScalarEnumerationTraits<llvm::codeview::RegisterId, void>::enumeration(llvm::yaml::IO&, llvm::codeview::RegisterId&) (/lib/x86_64-linux-gnu/libLLVM-14.so.1+0x2535819)
 #5 0x0000072505536ed9 llvm::CodeViewYAML::detail::SymbolRecordImpl<llvm::codeview::RegisterSym>::map(llvm::yaml::IO&) (/lib/x86_64-linux-gnu/libLLVM-14.so.1+0x2536ed9)
 #6 0x000007250553f2bd (/lib/x86_64-linux-gnu/libLLVM-14.so.1+0x253f2bd)
 #7 0x000007250553e1a5 llvm::yaml::MappingTraits<llvm::CodeViewYAML::SymbolRecord>::mapping(llvm::yaml::IO&, llvm::CodeViewYAML::SymbolRecord&) (/lib/x86_64-linux-gnu/libLLVM-14.so.1+0x253e1a5)
 #8 0x000000000049f3ce std::enable_if<has_SequenceTraits<std::vector<llvm::CodeViewYAML::SymbolRecord, std::allocator<llvm::CodeViewYAML::SymbolRecord> > >::value, void>::type llvm::yaml::yamlize<std::vector<llvm::CodeViewYAML::SymbolRecord, std::allocator<llvm::CodeViewYAML::SymbolRecord> >, llvm::yaml::EmptyContext>(llvm::yaml::IO&, std::vector<llvm::CodeViewYAML::SymbolRecord, std::allocator<llvm::CodeViewYAML::SymbolRecord> >&, bool, llvm::yaml::EmptyContext&) (/usr/lib/llvm-14/bin/llvm-pdbutil+0x49f3ce)
 #9 0x0000000000498fda (/usr/lib/llvm-14/bin/llvm-pdbutil+0x498fda)
#10 0x000000000049fafd (/usr/lib/llvm-14/bin/llvm-pdbutil+0x49fafd)
#11 0x000000000049f86c (/usr/lib/llvm-14/bin/llvm-pdbutil+0x49f86c)
#12 0x00000000004991da (/usr/lib/llvm-14/bin/llvm-pdbutil+0x4991da)
#13 0x000000000049ed9b (/usr/lib/llvm-14/bin/llvm-pdbutil+0x49ed9b)
#14 0x0000000000498de7 (/usr/lib/llvm-14/bin/llvm-pdbutil+0x498de7)
#15 0x000000000049ba76 (/usr/lib/llvm-14/bin/llvm-pdbutil+0x49ba76)
#16 0x0000000000498268 (/usr/lib/llvm-14/bin/llvm-pdbutil+0x498268)
#17 0x00000000004b2fbe (/usr/lib/llvm-14/bin/llvm-pdbutil+0x4b2fbe)
#18 0x00000000004af1be (/usr/lib/llvm-14/bin/llvm-pdbutil+0x4af1be)
#19 0x0000000000468aaa (/usr/lib/llvm-14/bin/llvm-pdbutil+0x468aaa)
#20 0x0000072502829d90 __libc_start_call_main ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#21 0x0000072502829e40 call_init ./csu/../csu/libc-start.c:128:20
#22 0x0000072502829e40 __libc_start_main ./csu/../csu/libc-start.c:379:5
#23 0x000000000041ad25 (/usr/lib/llvm-14/bin/llvm-pdbutil+0x41ad25)
fish: Job 1, 'llvm-pdbutil pdb2yaml 0ad0b9dfa…' terminated by signal SIGSEGV (Address boundary error)
```

[pdb.zip](https://github.com/user-attachments/files/15960140/pdb.zip)

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzMl11v2zoShn8NfSNYoEYSJV74wk3jbhYttmiKAntlUOLI5i71cUgqifvrDyg7tqUabapzUyMftKV55p2XQ4sU1qpdg7gi6TuSvl-I3u1bs0JZl7VoFkUrDyvC6OmHvid0_ehE-f9A9nVH4vXxIxoSyj-bdmdEHQiz62tsnCXxOtD6qV52suid0kEnCziIWgdUSFpwWYlYVlFWcIZlGWeCcagYlzkL8QXDThbBcim0PuYICMQ0oC_UvzJIaYxxJWk0pPBK4rU92OPgs1GNG3R-NaJEAvnlJiOet611BkVNgBG4C1TjCPCAQE5go1VBYPOSsy1Lllo1_cty1_THCx8_fvu0jJLQtmFE4B19OSogwC8So4lEKWK8JfFL3zyqXSP0v0QjNRo7pJ-pwicZqYCxioRCzGahh8gROr5GQ55ACvQN6NJD2QAdQkbM5JqZpnGaR_zKNN8zx9FjKbQw901foxFOtc1XI5TvtLvL3WUr8Unh88ln3Cnr0DxIP9VPrZIkvj9ewgtm1CGXdA__ObXIW-hs5vTBsd6RIenEEIby2pC7VuI3hc__XX_6ePxEohPq1aRDXbT6C5atkQ91p9_gzuOhPttSi-7ndsyt0hcxqpJNqqygkDPZPnTEziZsjER6s6U-ia5Tze5GI_3o8rWz1355wNtb6Bfcf2Kxr3JkQ_5qw_BKeBWXGFgnX1eAKDRuVUXiu72w20f8q8emxLMZ5zufsHSt-R174O6SR2jdluI3AfF9cPo9SRC6xx8WsTt0eHNe_Uh9xz-iiPH8XzTe15073LWNwxc33PbzFvoTChmEFG2r31TTdS_31pw7etgWRAmBTaGa1_enbcLxGTF06qiV-aSV80qKeWgfeUb7ZzadrhJRyZmqRSVH6GiKzlk5E52zcoSGCZpHcw3xkSN0PEGj5MU8tI8coZPpNErMZk6jxGyETifoQmRsHtpHjtBsqhpYPlM1sHyEzsboAqoCZ6GHyBF68u0vqmgmeogcoSerkeVCzGu-IfIaDXS8wwQu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