<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/89169>89169</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[lld-link] Linker exception 0xC0000005
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
gz83
</td>
</tr>
</table>
<pre>
I use llvm 18.1.3 to compile Chromium. When linking brotli.exe, lld-link throws some exceptions. The following is the relevant exception information.
`FAILED: brotli.exe brotli.exe.pdb
D:\LLVM\bin\lld-link.exe "/OUT:./brotli.exe" /nologo -libpath:D:\LLVM\lib\clang\18\lib\windows "-libpath:../../../../../Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.39.33519/ATLMFC/lib/x64" "-libpath:../../../../../Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.39.33519/lib/x64" "-libpath:../../../../../Program Files (x86)/Windows Kits/10/lib/10.0.22621.0/ucrt/x64" "-libpath:../../../../../Program Files (x86)/Windows Kits/10/lib/10.0.22621.0/um/x64" /MACHINE:X64 "/PDB:./brotli.exe.pdb" "@./brotli.exe.rsp"
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0. Program arguments: D:\\LLVM\\bin\\lld-link.exe /OUT:./brotli.exe /nologo -libpath:D:\\LLVM\\lib\\clang\\18\\lib\\windows "-libpath:../../../../../Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.39.33519/ATLMFC/lib/x64" "-libpath:../../../../../Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.39.33519/lib/x64" "-libpath:../../../../../Program Files (x86)/Windows Kits/10/lib/10.0.22621.0/ucrt/x64" "-libpath:../../../../../Program Files (x86)/Windows Kits/10/lib/10.0.22621.0/um/x64" /MACHINE:X64 /PDB:./brotli.exe.pdb @./brotli.exe.rsp
1. Running pass 'Function Pass Manager' on module 'ld-temp.o'.
2. Running pass 'X86 Assembly Printer' on function '@"??1?$basic_ios@DU?$char_traits@D@__Cr@std@@@__Cr@std@@UEAA@XZ"'
Exception Code: 0xC0000005
#0 0x00007ff6b429b745 (D:\LLVM\bin\lld-link.exe+0x1ab745)
#1 0x00007ff6b429b63d (D:\LLVM\bin\lld-link.exe+0x1ab63d)
#2 0x00007ff6b6013d11 (D:\LLVM\bin\lld-link.exe+0x1f23d11)
#3 0x00007ff6b417ecdd (D:\LLVM\bin\lld-link.exe+0x8ecdd)
#4 0x00007ff6b5a643ef (D:\LLVM\bin\lld-link.exe+0x19743ef)
#5 0x00007ff6b417c86f (D:\LLVM\bin\lld-link.exe+0x8c86f)
#6 0x00007ff6b5d8890e (D:\LLVM\bin\lld-link.exe+0x1c9890e)
#7 0x00007ff6b5bbcc63 (D:\LLVM\bin\lld-link.exe+0x1accc63)
#8 0x00007ff6b41fae51 (D:\LLVM\bin\lld-link.exe+0x10ae51)
#9 0x00007ff6b41fa91d (D:\LLVM\bin\lld-link.exe+0x10a91d)
#10 0x00007ff6b63845c0 xmlLinkGetData (D:\LLVM\bin\lld-link.exe+0x22945c0)
#11 0x00007ff6b638387c xmlLinkGetData (D:\LLVM\bin\lld-link.exe+0x229387c)
#12 0x00007ff6b62460ae xmlLinkGetData (D:\LLVM\bin\lld-link.exe+0x21560ae)
#13 0x00007ff6b624589d xmlLinkGetData (D:\LLVM\bin\lld-link.exe+0x215589d)
#14 0x00007ff6b4b25eab (D:\LLVM\bin\lld-link.exe+0xa35eab)
#15 0x00007ff6b4838dd7 (D:\LLVM\bin\lld-link.exe+0x748dd7)
#16 0x00007ff6b4684f3d (D:\LLVM\bin\lld-link.exe+0x594f3d)
#17 0x00007ff6b467a6ba (D:\LLVM\bin\lld-link.exe+0x58a6ba)
#18 0x00007ff6b4679fd6 (D:\LLVM\bin\lld-link.exe+0x589fd6)
#19 0x00007ff6b444a657 (D:\LLVM\bin\lld-link.exe+0x35a657)
#20 0x00007ff6b444a373 (D:\LLVM\bin\lld-link.exe+0x35a373)
#21 0x00007ff6b6158504 xmlLinkGetData (D:\LLVM\bin\lld-link.exe+0x2068504)
#22 0x00007ffa6631257d (C:\Windows\System32\KERNEL32.DLL+0x1257d)
#23 0x00007ffa6738aa48 (C:\Windows\SYSTEM32\ntdll.dll+0x5aa48)`
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzsmE1zozoWhn-NvFGFEvoAsfDCjc1MVzs9qU76Y2aTEiDbmgjkAtFx5tdPHewkljt9r5Ne3LtoV8om4j2PDtJ5hUD1vVm3Wk-ReIfEfKIGv3HddP0_ySalqx-m7_HQa2zt9wbHMoojhr3DlWu2xmqcbzrXmKGJ8NeNbrE17Z1p17jsnLcm0juNaI6trS_gDPabzt33uHeNxnpX6a03ru0jfLPReOWsdfcQbHrsNxp32urvqvXPSmzalesaBccRInNEZofvhBSz98vFHLHZUd9Hh9G2Lvda0CCRL5dfLpHIS9MikT8mOAYhShEt_vX5BrFZhGhxfC0UI1q0zrq1wxfWlFvlN4idMK0pkcgrq9o1Enksn5ruTVvD9SNKj4Ij6OSlr6vOrTvV4MJY3SNaXJqqc71befzF9IOy-NoPtXGIFpSMOeeuaYbW-AdEiy85osWNc3aMvB7_jXnEsogxEWeIFrOb5WUBzZAcLXYJ31_f3yG3X04JIyp3MkEUaF8P4_7BeOgxJk89xCQiEaUJjSNoHKrO_yX9Nse9Fpez_J_vPy4Qm31L-KEer-bvfqjHsaj3iSJOTs51_Rbax5q_Wi5m1wvcD2VjPFa4HNa401vXefDyxvttDxVMC0SLtfGboYwqBzmB6w8_F9vO_VdXMD6m74dx1rFqa2zayg61Hj1bdarf4FJVd75TlT6Y9Nqr6g7XQ7OFXsYmEuHx8zh4qlsPjW495IEPdnp21JNRf_Tqi0b9Q5cG2L0xj-z66Njjc799-9u3b_HtT02LX7br6Iz44IxPQ9vC3XCresguLYa2Gm-CV9BwqVq11h2iKXYtblw9WKj61NY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