[LLVMbugs] [Bug 8102] New: LICM crashes by dereferencing an invalid pointer

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Sep 7 10:17:49 PDT 2010


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

           Summary: LICM crashes by dereferencing an invalid pointer
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: Loop Optimizer
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: benny.kra at gmail.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=5464)
 --> (http://llvm.org/bugs/attachment.cgi?id=5464)
reduced c++ testcase

This one is a bit hard to reproduce and blocks i386 selfhost on FreeBSD (which
has some malloc debugging enabled by default)

The bugpoint-reduced file can be tested on darwin with MallocScribble or guard
malloc:
$ MallocScribble=1 opt -inline -licm -disable-output
bugpoint-reduced-simplified.ll
[1]    11068 segmentation fault  MallocScribble=1 opt -inline -licm
-disable-output

The c++ test (which was reduced from llvm's DAGDeltaAlgorithm.cpp):
$ MallocScribble=1 clang++ -m32 -O2 -c x.cpp
Stack dump:
0.    Program arguments: /Users/d0k/build/llvm/Debug+Asserts/bin/clang -cc1
-triple i386-apple-darwin10.0.0 -emit-obj -disable-free -main-file-name x.cpp
-pic-level 1 -mdisable-fp-elim -masm-verbose -target-cpu yonah
-target-linker-version 97.14 -resource-dir
/Users/d0k/build/llvm/Debug+Asserts/lib/clang/2.9 -O2 -ferror-limit 19
-fmessage-length 110 -stack-protector 1 -fblocks -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -o x.o -x c++ x.cpp 
1.    <eof> parser at end of file
2.    Per-module optimization passes
3.    Running pass 'CallGraph Pass Manager' on module 'x.cpp'.
4.    Running pass 'Loop Pass Manager' on function
'@_ZNSt8_Rb_treeIjjSt9_IdentityIjESt4lessIjESaIjEE16_M_insert_uniqueISt23_Rb_tree_const_iteratorIjEEEvT_S9_'
5.    Running pass 'Loop Invariant Code Motion' on basic block '%for.body'
clang: error: clang frontend command failed due to signal 11 (use -v to see
invocation)

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