<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - ThinLTO crashes while destroying the context"
href="https://bugs.llvm.org/show_bug.cgi?id=32763">32763</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>ThinLTO crashes while destroying the context
</td>
</tr>
<tr>
<th>Product</th>
<td>lld
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>ELF
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>davide@freebsd.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, tejohnson@google.com
</td>
</tr></table>
<p>
<div>
<pre>$ ./run.sh
ld.lld: ../lib/IR/Metadata.cpp:210: void
llvm::ReplaceableMetadataImpl::dropRef(void*): Assertion `WasErased &&
"Expected to drop a reference"' failed.
$ cat run.sh
rm -f try.o 1.o 2.o
~/work/llvm/build-release/bin/opt -module-summary 1.ll -o 1.o
~/work/llvm/build-release/bin/opt -module-summary 2.ll -o 2.o
~/work/llvm/build-release/bin/ld.lld 1.o 2.o 2>&1 | grep "Expected to drop a
reference"
$ cat 1.ll
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define void @tinkywinky() {
tail call void @patatino()
ret void
}
declare void @patatino()
$ cat 2.ll
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define void @patatino() {
ret void
}
!llvm.asan.globals = !{!0, !2, !4, !6, !8, !10, !12, !14}
!0 = distinct !{null, !1, !"FIRST_BYTE_MARK", i1 false, i1 false}
!1 = !{!"externals/tinyxml/tinyxml2.cpp", i32 393, i32 25}
!2 = distinct !{null, !3, !"SEMICOLON", i1 false, i1 false}
!3 = !{!"externals/tinyxml/tinyxml2.cpp", i32 448, i32 27}
!4 = distinct !{null, !5, !"<string literal>", i1 false, i1 false}
!5 = !{!"externals/tinyxml/tinyxml2.cpp", i32 536, i32 41}
!6 = distinct !{null, !7, !"<string literal>", i1 false, i1 false}
!7 = !{!"externals/tinyxml/tinyxml2.cpp", i32 542, i32 41}
!8 = distinct !{null, !9, !"<string literal>", i1 false, i1 false}
!9 = !{!"externals/tinyxml/tinyxml2.cpp", i32 548, i32 41}
!10 = distinct !{null, !11, !"<string literal>", i1 false, i1 false}
!11 = !{!"externals/tinyxml/tinyxml2.cpp", i32 548, i32 51}
!12 = distinct !{null, !13, !"<string literal>", i1 false, i1 false}
!13 = !{!"externals/tinyxml/tinyxml2.cpp", i32 548, i32 60}
!14 = distinct !{null, !15, !"<string literal>", i1 false, i1 false}
!15 = !{!"externals/tinyxml/tinyxml2.cpp", i32 557, i32 41}</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>