<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 --- - Crash in LoadCombine/AliasSetTracker"
href="https://llvm.org/bugs/show_bug.cgi?id=31493">31493</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Crash in LoadCombine/AliasSetTracker
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</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>new bugs
</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=17790" name="attach_17790" title="Reproducer ll file">attachment 17790</a> <a href="attachment.cgi?id=17790&action=edit" title="Reproducer ll file">[details]</a></span>
Reproducer ll file
Running
opt -S -load-combine reproducer.ll
we get
opt: ../lib/Analysis/AliasSetTracker.cpp:144: void
llvm::AliasSet::addPointer(llvm::AliasSetTracker &, llvm::AliasSet::PointerRec
&, uint64_t, const llvm::AAMDNodes &, bool): Assertion `*PtrListEnd == nullptr
&& "End of list is not null?"' failed.
#0 0x0000000001a8e9c8 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(../llvm-patch/build-all/bin/opt+0x1a8e9c8)
#1 0x0000000001a8f566 SignalHandler(int)
(../llvm-patch/build-all/bin/opt+0x1a8f566)
#2 0x00007f0aa0b96330 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x10330)
#3 0x00007f0a9f789c37 gsignal
/build/eglibc-oGUzwX/eglibc-2.19/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56:0
#4 0x00007f0a9f78d028 abort
/build/eglibc-oGUzwX/eglibc-2.19/stdlib/abort.c:91:0
#5 0x00007f0a9f782bf6 __assert_fail_base
/build/eglibc-oGUzwX/eglibc-2.19/assert/assert.c:92:0
#6 0x00007f0a9f782ca2 (/lib/x86_64-linux-gnu/libc.so.6+0x2fca2)
#7 0x00000000010d833b llvm::AliasSet::addPointer(llvm::AliasSetTracker&,
llvm::AliasSet::PointerRec&, unsigned long, llvm::AAMDNodes const&, bool)
(../llvm-patch/build-all/bin/opt+0x10d833b)
#8 0x00000000010d9265
llvm::AliasSetTracker::getAliasSetForPointer(llvm::Value*, unsigned long,
llvm::AAMDNodes const&) (../llvm-patch/build-all/bin/opt+0x10d9265)
#9 0x00000000010d9604 llvm::AliasSetTracker::add(llvm::LoadInst*)
(../llvm-patch/build-all/bin/opt+0x10d9604)
#10 0x00000000018f8db3 (anonymous
namespace)::LoadCombine::runOnBasicBlock(llvm::BasicBlock&)
(../llvm-patch/build-all/bin/opt+0x18f8db3)
#11 0x000000000160c6ea (anonymous
namespace)::BBPassManager::runOnFunction(llvm::Function&)
(../llvm-patch/build-all/bin/opt+0x160c6ea)
#12 0x0000000001606d78 llvm::FPPassManager::runOnFunction(llvm::Function&)
(../llvm-patch/build-all/bin/opt+0x1606d78)
#13 0x0000000001606fb8 llvm::FPPassManager::runOnModule(llvm::Module&)
(../llvm-patch/build-all/bin/opt+0x1606fb8)
#14 0x0000000001607495 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(../llvm-patch/build-all/bin/opt+0x1607495)
#15 0x00000000006b5f15 main (../llvm-patch/build-all/bin/opt+0x6b5f15)
#16 0x00007f0a9f774f45 __libc_start_main
/build/eglibc-oGUzwX/eglibc-2.19/csu/libc-start.c:321:0
#17 0x00000000006a7e5f _start (../llvm-patch/build-all/bin/opt+0x6a7e5f)
Stack dump:
0. Program arguments: ../llvm-patch/build-all/bin/opt -S -load-combine
reproducer.ll
1. Running pass 'Function Pass Manager' on module 'reproducer.ll'.
2. Running pass 'BasicBlock Pass Manager' on function '@tall'
3. Running pass 'Combine Adjacent Loads' on basic block '%0'
Abort
-debug printouts don't say anything so no help there.
bugpoint refuses to reduce the attached test case more.</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>