[llvm-bugs] [Bug 31493] New: Crash in LoadCombine/AliasSetTracker

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Dec 29 02:44:46 PST 2016


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

            Bug ID: 31493
           Summary: Crash in LoadCombine/AliasSetTracker
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: mikael.holmen at ericsson.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 17790
  --> https://llvm.org/bugs/attachment.cgi?id=17790&action=edit
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.

-- 
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/20161229/d7483df0/attachment.html>


More information about the llvm-bugs mailing list