Skip to content

[lld] Associative COMDAT symbol '.str.4' is not a key for its COMDAT #144931

Open
@thatgato

Description

@thatgato

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    LTOLink time optimization (regular/full LTO or ThinLTO)crashPrefer [crash-on-valid] or [crash-on-invalid]

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions