[LLVMbugs] [Bug 1687] New: opt -loop-index-split segfaults on SaveLastValue-2007-08-17 .ll

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Sep 19 19:45:41 PDT 2007


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

           Summary: opt -loop-index-split segfaults on SaveLastValue-2007-
                    08-17.ll
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: emil at cs.rmit.edu.au
                CC: llvmbugs at cs.uiuc.edu


With a Debug+Checking build of LLVM 2.1 prerelease,
"make check" uncovers [among other things]:

FAIL:
/home/emil/ll/llvm-2.1/test/Transforms/LoopIndexSplit/SaveLastValue-2007-08-17.ll
Failed with exit(1) at line 1
while running: llvm-as <
/home/emil/ll/llvm-2.1/test/Transforms/LoopIndexSplit/SaveLastValue-2007-08-17.ll
| opt -loop-index-split -disable-output -stats |&  grep "loop-index-split" |
count 1
count: expected 1 lines and got        0.
child killed: segmentation violation
child process exited abnormally

#0  0x08495206 in llvm::Instruction::getNext (this=0x5a5a5a5a)
    at Instruction.h:231
231       Instruction *getNext()             { return Next; }
(gdb) where
#0  0x08495206 in llvm::Instruction::getNext (this=0x5a5a5a5a)
    at Instruction.h:231
#1  0x08496a51 in llvm::SymbolTableListTraits<llvm::Instruction,
llvm::BasicBlock>::getNext (V=0x5a5a5a5a) at SymbolTableListTraits.h:52
#2  0x084d6db3 in llvm::ilist_iterator<llvm::Instruction>::operator
llvm::Instruction* (this=0xbfbfe400) at ilist:115
#3  0x085c94ad in removeBlocks (this=0x28c31180, DeadBB=0x28c18190, 
    LP=0x28c04880, LiveBB=0x28c181c0)
    at /home/emil/ll/llvm-2.1/lib/Transforms/Scalar/LoopIndexSplit.cpp:721
#4  0x085c9ef0 in splitLoop (this=0x28c31180, SD=@0x28c311d0)
    at /home/emil/ll/llvm-2.1/lib/Transforms/Scalar/LoopIndexSplit.cpp:1127
#5  0x085cb40c in runOnLoop (this=0x28c31180, IncomingLoop=0x28c04880, 
    LPM_Ref=@0x28c39040)
    at /home/emil/ll/llvm-2.1/lib/Transforms/Scalar/LoopIndexSplit.cpp:253
#6  0x08716044 in llvm::LPPassManager::runOnFunction (this=0x28c39040, 
    F=@0x28c02240) at /home/emil/ll/llvm-2.1/lib/Analysis/LoopPass.cpp:225
#7  0x0881f31d in llvm::FPPassManager::runOnFunction (this=0x28c37060, 
    F=@0x28c02240) at /home/emil/ll/llvm-2.1/lib/VMCore/PassManager.cpp:1168
#8  0x0881f4b4 in llvm::FPPassManager::runOnModule (this=0x28c37060, 
    M=@0x28c04480) at /home/emil/ll/llvm-2.1/lib/VMCore/PassManager.cpp:1188
#9  0x0881efd3 in llvm::MPPassManager::runOnModule (this=0x28c211b0, 
    M=@0x28c04480) at /home/emil/ll/llvm-2.1/lib/VMCore/PassManager.cpp:1237
#10 0x0881f194 in llvm::PassManagerImpl::run (this=0x28c24040, M=@0x28c04480)
    at /home/emil/ll/llvm-2.1/lib/VMCore/PassManager.cpp:1310
#11 0x0881f1fa in llvm::PassManager::run (this=0xbfbfe984, M=@0x28c04480)
    at /home/emil/ll/llvm-2.1/lib/VMCore/PassManager.cpp:1342
#12 0x0848421b in main (argc=4, argv=0xbfbfec70)
    at /home/emil/ll/llvm-2.1/tools/opt/opt.cpp:426

(gdb) print this
$2 = (llvm::Instruction * const) 0x5a5a5a5a
(gdb) print *this
Cannot access memory at address 0x5a5a5a5a


-- 
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