[LLVMbugs] [Bug 10439] New: [AVX] seg fault in llc due to infinite loop of SelectionDAGLegalize::LegalizeOp calls

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jul 22 04:12:33 PDT 2011


http://llvm.org/bugs/show_bug.cgi?id=10439

           Summary: [AVX] seg fault in llc due to infinite loop of
                    SelectionDAGLegalize::LegalizeOp calls
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: matt at pharr.org
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=6916)
 --> (http://llvm.org/bugs/attachment.cgi?id=6916)
bitcode to reproduce

(This happens with a recently-synced top-of-tree).

With the attached test case, if you run:

% llc -mcpu=corei7-avx -mattr=+avx seg.bc

It crashes with a seg fault due to an infinite set of mutually recursive calls
to LegalizeOp

[.....]
#9547 0x00000001004d8b5c in (anonymous
namespace)::SelectionDAGLegalize::LegalizeOp (this=0x7fff5fbfe8b0, Op={Node =
0x103058810, ResNo = 0}) at LegalizeDAG.cpp:976
#9548 0x00000001004e096a in (anonymous
namespace)::SelectionDAGLegalize::LegalizeOp (this=0x7fff5fbfe8b0, Op={Node =
0x103059e10, ResNo = 0}) at LegalizeDAG.cpp:1709
#9549 0x00000001004d8b5c in (anonymous
namespace)::SelectionDAGLegalize::LegalizeOp (this=0x7fff5fbfe8b0, Op={Node =
0x103058810, ResNo = 0}) at LegalizeDAG.cpp:976
#9550 0x00000001004e096a in (anonymous
namespace)::SelectionDAGLegalize::LegalizeOp (this=0x7fff5fbfe8b0, Op={Node =
0x103059e10, ResNo = 0}) at LegalizeDAG.cpp:1709
#9551 0x00000001004d8b5c in (anonymous
namespace)::SelectionDAGLegalize::LegalizeOp (this=0x7fff5fbfe8b0, Op={Node =
0x103058810, ResNo = 0}) at LegalizeDAG.cpp:976
#9552 0x00000001004e096a in (anonymous
namespace)::SelectionDAGLegalize::LegalizeOp (this=0x7fff5fbfe8b0, Op={Node =
0x103057f10, ResNo = 0}) at LegalizeDAG.cpp:1709
#9553 0x00000001004edc85 in (anonymous
namespace)::SelectionDAGLegalize::LegalizeDAG (this=0x7fff5fbfe8b0) at
LegalizeDAG.cpp:213
#9554 0x00000001004eddbd in llvm::SelectionDAG::Legalize (this=0x1029226d0) at
LegalizeDAG.cpp:3892
#9555 0x00000001005d4d7c in llvm::SelectionDAGISel::CodeGenAndEmitDAG
(this=0x10291ce80) at SelectionDAGISel.cpp:548
#9556 0x00000001005d6b1e in llvm::SelectionDAGISel::SelectBasicBlock
(this=0x10291ce80, Begin={<std::iterator<std::bidirectional_iterator_tag,const
llvm::Instruction,long int,const llvm::Instruction*,const llvm::Instruction&>>
= {<No data fields>}, NodePtr = 0x102912a08},
End={<std::iterator<std::bidirectional_iterator_tag,const
llvm::Instruction,long int,const llvm::Instruction*,const llvm::Instruction&>>
= {<No data fields>}, NodePtr = 0x102912110}, HadTailCall=@0x7fff5fbfed78) at
SelectionDAGISel.cpp:414
#9557 0x00000001005d743e in llvm::SelectionDAGISel::SelectAllBasicBlocks
(this=0x10291ce80, Fn=@0x102911200) at SelectionDAGISel.cpp:972
#9558 0x00000001005d79c8 in llvm::SelectionDAGISel::runOnMachineFunction
(this=0x10291ce80, mf=@0x1029320f0) at SelectionDAGISel.cpp:282
#9559 0x00000001006f5ed9 in llvm::MachineFunctionPass::runOnFunction
(this=0x10291ce80, F=@0x102911200) at MachineFunctionPass.cpp:33
#9560 0x00000001009fa3e9 in llvm::FPPassManager::runOnFunction
(this=0x10291be80, F=@0x102911200) at PassManager.cpp:1513
#9561 0x00000001009fa5df in llvm::FPPassManager::runOnModule (this=0x10291be80,
M=@0x10290f800) at PassManager.cpp:1535
#9562 0x00000001009fa0a4 in llvm::MPPassManager::runOnModule (this=0x102919c30,
M=@0x10290f800) at PassManager.cpp:1589
#9563 0x00000001009fb884 in llvm::PassManagerImpl::run (this=0x1029198f0,
M=@0x10290f800) at PassManager.cpp:1671
#9564 0x00000001009fb8e5 in llvm::PassManager::run (this=0x7fff5fbff430,
M=@0x10290f800) at PassManager.cpp:1715
#9565 0x00000001000372b0 in main (argc=4, argv=0x7fff5fbff5a8) at llc.cpp:373

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list