[llvm-bugs] [Bug 30911] New: SelectionDAG crash

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Nov 3 17:28:37 PDT 2016


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

            Bug ID: 30911
           Summary: SelectionDAG crash
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: ARM
          Assignee: unassignedbugs at nondot.org
          Reporter: llvm at meinersbur.de
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 17553
  --> https://llvm.org/bugs/attachment.cgi?id=17553&action=edit
Test case derived from oggenc with Polly

The attached test case crashes with llc. LLVM trunk r285921 on Windows 10 and
Linux x86_64. Target architecture is arm-linux-gnueabihf.

Test case is derived from test-suite's oggenc.c with code generated by Polly
and reduced using bugpoint -llc-safe.

> Debug\bin\llc.exe oggenc.ll
Wrote crash dump file "C:\Users\MEINER~1\AppData\Local\Temp\llc.exe-762294.dmp"
#0 0x01810ad2 llvm::SUnit::getNode(void)const 
c:\users\meinersbur\src\llvm\include\llvm\codegen\scheduledag.h:372:0
#1 0x01f18e30 `anonymous
namespace'::ScheduleDAGRRList::DelayForLiveRegsBottomUp
c:\users\meinersbur\src\llvm\lib\codegen\selectiondag\scheduledagrrlist.cpp:1312:0
#2 0x01f192f4 `anonymous
namespace'::ScheduleDAGRRList::PickNodeToScheduleBottomUp
c:\users\meinersbur\src\llvm\lib\codegen\selectiondag\scheduledagrrlist.cpp:1368:0
#3 0x01f19d98 `anonymous namespace'::ScheduleDAGRRList::ListScheduleBottomUp
c:\users\meinersbur\src\llvm\lib\codegen\selectiondag\scheduledagrrlist.cpp:1508:0
#4 0x01f15c79 `anonymous namespace'::ScheduleDAGRRList::Schedule
c:\users\meinersbur\src\llvm\lib\codegen\selectiondag\scheduledagrrlist.cpp:350:0
#5 0x020c8c2c llvm::ScheduleDAGSDNodes::Run(class llvm::SelectionDAG *,class
llvm::MachineBasicBlock *)
c:\users\meinersbur\src\llvm\lib\codegen\selectiondag\scheduledagsdnodes.cpp:63:0
#6 0x01f3a2dd llvm::SelectionDAGISel::CodeGenAndEmitDAG(void)
c:\users\meinersbur\src\llvm\lib\codegen\selectiondag\selectiondagisel.cpp:870:0
#7 0x01f385a3 llvm::SelectionDAGISel::SelectBasicBlock(class
llvm::ilist_iterator<struct llvm::ilist_detail::node_options<class
llvm::Instruction,1,0,void>,0,1>,class llvm::ilist_iterator<struct
llvm::ilist_detail::node_options<class llvm::Instruction,1,0,void>,0,1>,bool &)
c:\users\meinersbur\src\llvm\lib\codegen\selectiondag\selectiondagisel.cpp:684:0
#8 0x01f382e6 llvm::SelectionDAGISel::SelectAllBasicBlocks(class llvm::Function
const &)
c:\users\meinersbur\src\llvm\lib\codegen\selectiondag\selectiondagisel.cpp:1554:0
#9 0x01f31ee7 llvm::SelectionDAGISel::runOnMachineFunction(class
llvm::MachineFunction &)
c:\users\meinersbur\src\llvm\lib\codegen\selectiondag\selectiondagisel.cpp:509:0
#10 0x010f1038 `anonymous namespace'::ARMDAGToDAGISel::runOnMachineFunction
c:\users\meinersbur\src\llvm\lib\target\arm\armiseldagtodag.cpp:70:0
#11 0x0173553b llvm::MachineFunctionPass::runOnFunction(class llvm::Function &)
c:\users\meinersbur\src\llvm\lib\codegen\machinefunctionpass.cpp:62:0
#12 0x01bda535 llvm::FPPassManager::runOnFunction(class llvm::Function &)
c:\users\meinersbur\src\llvm\lib\ir\legacypassmanager.cpp:1509:0
#13 0x01bda6da llvm::FPPassManager::runOnModule(class llvm::Module &)
c:\users\meinersbur\src\llvm\lib\ir\legacypassmanager.cpp:1530:0
#14 0x01bdb71e `anonymous namespace'::MPPassManager::runOnModule
c:\users\meinersbur\src\llvm\lib\ir\legacypassmanager.cpp:1586:0
#15 0x01bdbdfa llvm::legacy::PassManagerImpl::run(class llvm::Module &)
c:\users\meinersbur\src\llvm\lib\ir\legacypassmanager.cpp:1689:0
#16 0x01bd63dd llvm::legacy::PassManager::run(class llvm::Module &)
c:\users\meinersbur\src\llvm\lib\ir\legacypassmanager.cpp:1721:0
#17 0x00d42897 compileModule
c:\users\meinersbur\src\llvm\tools\llc\llc.cpp:526:0
#18 0x00d4335c main c:\users\meinersbur\src\llvm\tools\llc\llc.cpp:282:0
#19 0x024d7dae invoke_main
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl:64:0
#20 0x024d7c30 _scrt_common_main_seh
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl:253:0
#21 0x024d7acd _scrt_common_main
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl:296:0
#22 0x024d7dc8 mainCRTStartup
f:\dd\vctools\crt\vcstartup\src\startup\exe_main.cpp:17:0
#23 0x75178694 (C:\WINDOWS\System32\KERNEL32.DLL+0x18694)
#24 0x77ccfb54 (C:\WINDOWS\SYSTEM32\ntdll.dll+0x5fb54)
#25 0x77ccfb24 (C:\WINDOWS\SYSTEM32\ntdll.dll+0x5fb24)


$ bin/llc oggenc.ll
#0 0x0000000001307be8 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(bin/llc+0x1307be8)
#1 0x000000000130583e llvm::sys::RunSignalHandlers() (bin/llc+0x130583e)
#2 0x00000000013059b2 SignalHandler(int) (bin/llc+0x13059b2)
#3 0x00007f5b5a9f13e0 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x113e0)
#4 0x000000000114ebd1 (anonymous
namespace)::ScheduleDAGRRList::PickNodeToScheduleBottomUp() [clone
.constprop.284] (bin/llc+0x114ebd1)
#5 0x00000000011516e2 (anonymous namespace)::ScheduleDAGRRList::Schedule()
(bin/llc+0x11516e2)
#6 0x00000000011d7d99 llvm::SelectionDAGISel::CodeGenAndEmitDAG()
(bin/llc+0x11d7d99)
#7 0x00000000011e211c
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&)
(bin/llc+0x11e211c)
#8 0x00000000011e4339
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) [clone
.part.722] [clone .constprop.746] (bin/llc+0x11e4339)
#9 0x000000000082fa54 (anonymous
namespace)::ARMDAGToDAGISel::runOnMachineFunction(llvm::MachineFunction&)
(bin/llc+0x82fa54)
#10 0x0000000000cb6f95
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (bin/llc+0xcb6f95)
#11 0x0000000000f86ea3 llvm::FPPassManager::runOnFunction(llvm::Function&)
(bin/llc+0xf86ea3)
#12 0x0000000000f86f6c llvm::FPPassManager::runOnModule(llvm::Module&)
(bin/llc+0xf86f6c)
#13 0x0000000000f86a0d llvm::legacy::PassManagerImpl::run(llvm::Module&)
(bin/llc+0xf86a0d)
#14 0x00000000005e6bef compileModule(char**, llvm::LLVMContext&) [clone
.constprop.340] (bin/llc+0x5e6bef)
#15 0x00000000005a2580 main (bin/llc+0x5a2580)
#16 0x00007f5b59b60830 __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x20830)
#17 0x00000000005da489 _start (bin/llc+0x5da489)
Stack dump:
0.      Program arguments: bin/llc oggenc.ll
1.      Running pass 'Function Pass Manager' on module 'oggenc.ll'.
2.      Running pass 'ARM Instruction Selection' on function '@dradbg'
Segmentation fault (core dumped)

-- 
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/20161104/e4c7e9e7/attachment.html>


More information about the llvm-bugs mailing list