<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/87503>87503</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Exception Code: 0xC000001D after Associative COMDAT symbol
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
ColinHexagon
</td>
</tr>
</table>
<pre>
Hello,
While building a C++ project with clang (Release options, -fprofile-instr-generate -fcoverage-mapping -emit-llvm) on Windows,
lld-link.exe crashed? and asked me to create a bug report here.
This following error is printed:
LLVM ERROR: Associative COMDAT symbol '??0type_error@pybind11@@QEAA@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z' does not exist.
Followed by:
1. Running pass 'Function Pass Manager' on module 'ld-temp.o'.
2. Running pass 'X86 Assembly Printer' on function '@"??0type_error@pybind11@@QEAA@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z.6331"'
Exception Code: 0xC000001D
Followed by the stacktrace:
#0 0x00007ff79c94d346 (C:\PROGRA~1\LLVM\bin\lld-link.exe+0xcd346)
#1 0x00007ffc29271881 (C:\WINDOWS\System32\ucrtbase.dll+0x71881)
#2 0x00007ffc29272851 (C:\WINDOWS\System32\ucrtbase.dll+0x72851)
#3 0x00007ff79c9584a3 (C:\PROGRA~1\LLVM\bin\lld-link.exe+0xd84a3)
#4 0x00007ff79d16cd86 (C:\PROGRA~1\LLVM\bin\lld-link.exe+0x8ecd86)
#5 0x00007ff79d16cfbb (C:\PROGRA~1\LLVM\bin\lld-link.exe+0x8ecfbb)
#6 0x00007ff79d1944f2 (C:\PROGRA~1\LLVM\bin\lld-link.exe+0x9144f2)
#7 0x00007ff79dae49c0 (C:\PROGRA~1\LLVM\bin\lld-link.exe+0x12649c0)
#8 0x00007ff79dae6b3f (C:\PROGRA~1\LLVM\bin\lld-link.exe+0x1266b3f)
#9 0x00007ff79cc87039 (C:\PROGRA~1\LLVM\bin\lld-link.exe+0x407039)
#10 0x00007ff79d50da5d (C:\PROGRA~1\LLVM\bin\lld-link.exe+0xc8da5d)
#11 0x00007ff79d28dc1a (C:\PROGRA~1\LLVM\bin\lld-link.exe+0xa0dc1a)
#12 0x00007ff79d293903 (C:\PROGRA~1\LLVM\bin\lld-link.exe+0xa13903)
#13 0x00007ff79d28e293 (C:\PROGRA~1\LLVM\bin\lld-link.exe+0xa0e293)
#14 0x00007ff79d037533 (C:\PROGRA~1\LLVM\bin\lld-link.exe+0x7b7533)
#15 0x00007ff79d0362f0 (C:\PROGRA~1\LLVM\bin\lld-link.exe+0x7b62f0)
#16 0x00007ff79cb29810 (C:\PROGRA~1\LLVM\bin\lld-link.exe+0x2a9810)
#17 0x00007ff79cb28f6c (C:\PROGRA~1\LLVM\bin\lld-link.exe+0x2a8f6c)
#18 0x00007ff79ce7c17e (C:\PROGRA~1\LLVM\bin\lld-link.exe+0x5fc17e)
#19 0x00007ff79cb1b743 (C:\PROGRA~1\LLVM\bin\lld-link.exe+0x29b743)
#20 0x00007ff79c8c453f (C:\PROGRA~1\LLVM\bin\lld-link.exe+0x4453f)
#21 0x00007ff79c8bd11c (C:\PROGRA~1\LLVM\bin\lld-link.exe+0x3d11c)
#22 0x00007ff79c881cd0 (C:\PROGRA~1\LLVM\bin\lld-link.exe+0x1cd0)
#23 0x00007ff79c881444 (C:\PROGRA~1\LLVM\bin\lld-link.exe+0x1444)
#24 0x00007ff79f59b1b4 xmlLinkGetData (C:\PROGRA~1\LLVM\bin\lld-link.exe+0x2d1b1b4)
#25 0x00007ffc2b967344 (C:\WINDOWS\System32\KERNEL32.DLL+0x17344)
#26 0x00007ffc2baa26b1 (C:\WINDOWS\SYSTEM32\ntdll.dll+0x526b1)
lld-link --version returns:
LLD 16.0.6
clang --version returns:
clang version 16.0.6
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: C:\Program Files\LLVM\bin
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzMl89z46gSx_8afKHkAgT6cfDBseOZqZdM5nnyJm_3kkLQstlgyQU4cS77t28h54dJbfag0-qQVKn5fqCbbrlbem82HcAMiQsklhN5CNvezRa9Nd1XOMpN302aXj_PvoK1PWILRJaIzE9_77bGAm4OxmrTbbDEC8QuELvAe9f_ASrgJxO2WFnZbTBi1RosSA-43wfTdx6xBc7avetbYyEznQ8u20AHTgbAWav6R3ByA9lO7vcRn8HOhMzaxx1iNe47fGc63T_5t0NZqzNruocpHAErJ_0WNMpXWHYaS_8AGu8Ahx4rB3ELiZvDBjvY9y7gLTiYnvt2uzUet721_VPcHJzrHTYe753pQuS-rLu6-nWNL9frmzXK53jufa-MDOYR8OLmejm_xf551_QWI1aifIXyFQnPe7gfeIiT_XNjOk0p4gRx8t_L-RxxMr-8-BUXM95Ib9S9D850G8TJ8n-n12or3X1w0gQf3yJOfNAnxItQWtsrGYY9op2drG_LECe_I1Zi3YPHXR8wHI0PSQRWg_OgcfP85i2d4uFZH7ouhmUvvY-urQ6dipeKf8QX17KTG3CR33d41-uDhbjK6izAbj_tEStftmKfAP9fFTGYsGvsM_4xxPyV177uFUPKCWLs3xbYaZHnNJ6LlScvL48KhqTHi15DTBRyXJD40OUnIcdhC9gHqR6CkwrebgAjlhNMjlFctm1Zq5rrnBexwBZxlVj8WN98Wc__pEgsYnYisWhMh8TivD4QuyBHFYWI1e9k-k5WrGYlrSp6Rr779n15c_cTicXPZx9glzMkFgflQiM9TLW1A3ZQJVj2AcsqMQIbVQk2T-MgKi7zMXHQUZiQ-TlZ00LpalSEK4jKBC0-otumGYlumyZBFym65rxlY9A1jcoEXSZoCbxWZAyasiJKE3b1gV00eTuSHaUJu05SRFUlyesxbE6i8g0dSyWpQi2IlkKPqsIqKhM0TdCs0orKMWhJojJBsxRd5zUZVTOSRmWCzj-cGlg9Dk2iMkGn9UjyUuSj0GUTlQlafEAXrB2V2WUTlQk6qUfVsLqio9BMR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