https://bugs.llvm.org/show_bug.cgi?id=44456

            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: unassignedb...@nondot.org
          Reporter: tman...@google.com
                CC: htmldevelo...@gmail.com, llvm-bugs@lists.llvm.org

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

This happens when handling the following symbol name:

switch.table._ZN77_$LT$omaha_client..protocol..request..Event$u20$as$u20$core..clone..Clone$GT$5clone17h829b64c9ab982ff5E.llvm.10390335839252477638.llvm.11308644296266801080

Note that this has _two_ .llvm extensions appended.

getOriginalNameBeforePromote chops off both extensions instead of only the last
one.

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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to