<html>
<head>
<base href="https://llvm.org/bugs/" />
</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 --- - Inliner crashing with "An asserting value handle still pointed to this value!""
href="https://llvm.org/bugs/show_bug.cgi?id=27112">27112</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Inliner crashing with "An asserting value handle still pointed to this value!"
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Interprocedural Optimizations
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>mikael.holmen@ericsson.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=16118" name="attach_16118" title="Reproducer ll file">attachment 16118</a> <a href="attachment.cgi?id=16118&action=edit" title="Reproducer ll file">[details]</a></span>
Reproducer ll file
Running
opt -S -globals-aa -early-cse -inline ./crash.ll -debug
opt crashes in the inliner:
Args: /data/repo/llvm-patch/build-all/bin/opt -S -globals-aa -early-cse -inline
./crash.ll -debug
Inliner visiting SCC: INDIRECTNODE: 0 call sites.
While deleting: void ()* %foo
An asserting value handle still pointed to this value!
UNREACHABLE executed at ../lib/IR/Value.cpp:744!
#0 0x00000000017a6ad8 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/data/repo/llvm-patch/build-all/bin/opt+0x17a6ad8)
#1 0x00000000017a52a6 llvm::sys::RunSignalHandlers()
(/data/repo/llvm-patch/build-all/bin/opt+0x17a52a6)
#2 0x00000000017a760a SignalHandler(int)
(/data/repo/llvm-patch/build-all/bin/opt+0x17a760a)
#3 0x00007f7fdedb7340 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x10340)
#4 0x00007f7fddfdfcc9 gsignal
/build/eglibc-3GlaMS/eglibc-2.19/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56:0
#5 0x00007f7fddfe30d8 abort
/build/eglibc-3GlaMS/eglibc-2.19/stdlib/abort.c:91:0
#6 0x0000000001761ddd llvm::llvm_unreachable_internal(char const*, char const*,
unsigned int) (/data/repo/llvm-patch/build-all/bin/opt+0x1761ddd)
#7 0x00000000013ff8ae llvm::ValueHandleBase::ValueIsDeleted(llvm::Value*)
(/data/repo/llvm-patch/build-all/bin/opt+0x13ff8ae)
#8 0x00000000013ff17b llvm::Value::~Value()
(/data/repo/llvm-patch/build-all/bin/opt+0x13ff17b)
#9 0x0000000001398c2d llvm::Function::~Function()
(/data/repo/llvm-patch/build-all/bin/opt+0x1398c2d)
#10 0x0000000001398e79 llvm::Function::~Function()
(/data/repo/llvm-patch/build-all/bin/opt+0x1398e79)
#11 0x000000000146466c llvm::Inliner::removeDeadFunctions(llvm::CallGraph&,
bool) (/data/repo/llvm-patch/build-all/bin/opt+0x146466c)
#12 0x0000000000f90f36 (anonymous
namespace)::CGPassManager::runOnModule(llvm::Module&)
(/data/repo/llvm-patch/build-all/bin/opt+0xf90f36)
#13 0x00000000013d09e5 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/data/repo/llvm-patch/build-all/bin/opt+0x13d09e5)
#14 0x00000000006314be main (/data/repo/llvm-patch/build-all/bin/opt+0x6314be)
#15 0x00007f7fddfcaec5 __libc_start_main
/build/eglibc-3GlaMS/eglibc-2.19/csu/libc-start.c:321:0
#16 0x000000000061d37c _start
(/data/repo/llvm-patch/build-all/bin/opt+0x61d37c)
Stack dump:
0. Program arguments: /data/repo/llvm-patch/build-all/bin/opt -S
-globals-aa -early-cse -inline ./crash.ll -debug
1. Running pass 'CallGraph Pass Manager' on module './crash.ll'.
Abort</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>