[LLVMbugs] [Bug 2693] New: ice on valid; Segmentation fault

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Aug 19 23:57:23 PDT 2008


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

           Summary: ice on valid; Segmentation fault
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llvm-g++
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nicholas at mxc.ca
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=1939)
 --> (http://llvm.org/bugs/attachment.cgi?id=1939)
testcase

I have a testcase that I can't seem to reproduce without running it through
llvm-g++ itself.

$ llvm-g++ -O1 001.c -c
001.c:49: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://developer.apple.com/bugreporter> for instructions.

Even though the error appears to be in the details of ScalarEvolution, I can't
make it happen with .bc files! Here's the stack trace:

(gdb) bt
#0  0x08fea708 in ?? ()
#1  0x08ba8ef1 in llvm::ScalarEvolution::getAddExpr (this=0x8fd77e8, 
    Ops=@0xff90b778) at ScalarEvolution.cpp:764
#2  0x08aade6b in llvm::ScalarEvolution::getAddExpr (this=0x8fd77e8, 
    LHS=@0xff90b7dc, RHS=@0xff90b7d8)
    at /home/nicholas/llvm-commit/include/llvm/Analysis/ScalarEvolution.h:210
#3  0x08bac3a5 in createSCEV (this=0x8fe5710, V=0x8faef58)
    at ScalarEvolution.cpp:1747
#4  0x08bad441 in getSCEV (this=0x8fe5710, V=0x8faef58)
    at ScalarEvolution.cpp:1536
#5  0x08babd7d in createNodeForPHI (this=0x8fe5710, PN=0x8fe5238)
    at ScalarEvolution.cpp:1583
#6  0x08bace0e in createSCEV (this=0x8fe5710, V=0x8fe5238)
    at ScalarEvolution.cpp:1823
#7  0x08bad441 in getSCEV (this=0x8fe5710, V=0x8fe5238)
    at ScalarEvolution.cpp:1536
#8  0x08bad515 in llvm::ScalarEvolution::getSCEV (this=0x8fd77e8, V=0x8fe5238)
    at ScalarEvolution.cpp:2984
#9  0x08b15f8a in GetExpressionSCEV (this=0x8fd5cd8, Exp=0x8fe5238)
    at LoopStrengthReduce.cpp:286
#10 0x08b163b6 in AddUsersIfInteresting (this=0x8fd5cd8, I=0x8fe5238, 
    L=0x8fe5598, Processed=@0xff90bd04) at LoopStrengthReduce.cpp:448
#11 0x08b168c2 in runOnLoop (this=0x8fd5cd8, L=0x8fe5598, LPM=@0x8fd7a08)
    at LoopStrengthReduce.cpp:1881
#12 0x08b99bdf in llvm::LPPassManager::runOnFunction (this=0x8fd7a08, 
    F=@0x8fb3d78) at LoopPass.cpp:226
#13 0x08c3d109 in llvm::FPPassManager::runOnFunction (this=0x8fd5928, 
    F=@0x8fb3d78) at PassManager.cpp:1311
#14 0x08c3db7e in llvm::FunctionPassManagerImpl::run (this=0x8fd42f8, 
    F=@0x8fb3d78) at PassManager.cpp:1269
#15 0x08c3dcdf in llvm::FunctionPassManager::run (this=0x8fb30f0, F=@0x8fb3d78)
    at PassManager.cpp:1214
#16 0x085dd96b in llvm_asm_file_end () at ../../src/gcc/llvm-backend.cpp:645
#17 0x08567d4b in toplev_main ()
#18 0x00000064 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)


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