[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
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: 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
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.
-------------- 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