[llvm-bugs] [Bug 44456] New: Assertion failure / segfault when internalizing twice-promoted global value

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jan 3 19:54:31 PST 2020


            Bug ID: 44456
           Summary: Assertion failure / segfault when internalizing
                    twice-promoted global value
           Product: new-bugs
           Version: 9.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: tmandry at google.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

I get "llvm::thinLTOInternalizeModule ... Assertion `GS !=
DefinedGlobals.end()' failed" consistently when compiling a particular Rust

This happens when handling the following symbol name:


Note that this has _two_ .llvm extensions appended.

getOriginalNameBeforePromote chops off both extensions instead of only the last

Changing getOriginalNameBeforePromote to only chop off the last one (with
rsplit instead of split) fixes the issue.

I do not yet have a simple reproducer. I'm hoping this is clearly a bug without
one, but if not I can get one ready.

See also https://github.com/rust-lang/rust/issues/67855

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200104/e3f4a63f/attachment-0001.html>

More information about the llvm-bugs mailing list