<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/144931>144931</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[lld] Associative COMDAT symbol '.str.4' is not a key for its COMDAT
</td>
</tr>
<tr>
<th>Labels</th>
<td>
lld
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
thatgato
</td>
</tr>
</table>
<pre>
Version: LD 20.1.2
Host OS: Windows 10
Flags: -O0 -fno-omit-frame-pointer -flto -fsanitize=address,undefined -g -Wall -Wextra -static
**Note: Removing the -flto flag fixes the crash.**
Stacktrace / Error message: https://pastebin.com/BxSLEBpW
Link to my project where the crash occured: https://github.com/thatgato/SCLIReimagined/tree/llvm-bug-report
I saved the state of the code onto that separate branch, hoping it would help!
The code is incomplete. I suspect the crash originates from either the `Logger.cpp` or `Process.cpp` files, as commenting out `main.cpp`'s lines `29 & 30` fixes the crash. Before I added the functionality on those lines, I have never encountered this crash.
*I use CLion as my IDE, so some of the CMake configuration might not be directly included in the CMakeLists.*
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJx8VE2P4zYM_TXKhbAhKx_eHHzIJBM0QLZT7Cw6Z8WmbXVk0RDpzKS_vlA-dlsUWEAninyPfHqiZXZdQKzU8kktdzM7SU-xkt5KZ4VmJ2ou1Z8Y2VFQ8w0cd2B0XuRG6c1vxAIvryn85kJDHwyFVnqz97bjFM1eNGRtoIwGJ1kb7YDZSC4IRshaLwRZyzY4cX-jmu9s00RkVmY7hQZbF7CBrIPszXoP2Rt-SrSQsVhxtdKbdEw6v5NgovuGA51d6EB6vOO33nbQuk_ka7COlvv8VnVH0JtXsfW7RFsjKLOH5xgpwoDMtrvC9iJjGkeZvTL70bLgyYW8pkGZ_dPn6_H5aXy7QR1deAchGC4wRvoLa4GPHiP-JAeq6yli83_gzkk_ne6wD_2V2b9uj4dv6AbbJUHSXURUZu_9echOU5dF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