[LLVMbugs] [Bug 7453] New: Clang crash in loop strength reduction with C++ input

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jun 22 15:04:12 PDT 2010


           Summary: Clang crash in loop strength reduction with C++ input
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: collinwinter at google.com
                CC: chandlerc at gmail.com, llvmbugs at cs.uiuc.edu

Created an attachment (id=5088)
 --> (http://llvm.org/bugs/attachment.cgi?id=5088)
Reduced input file

The attached trivial C++ file causes Clang to crash (compiles fine with gcc).
This was reduced from one of our production applications. I've tested this
against Clang/LLVM built from trunk at 106580 on Linux.

$ /usr/local/google/collinwinter/llvm/obj/Debug/bin/clang  -c -O2 status.cpp
Max doesn't match expected pattern!
UNREACHABLE executed at
0  clang           0x00000000014638a2
1  clang           0x0000000001463dbe
2  libpthread.so.0 0x00007f20a01077d0
3  libc.so.6       0x00007f209f42b095 gsignal + 53
4  libc.so.6       0x00007f209f42caf0 abort + 272
5  clang           0x0000000001437e7a
6  clang           0x00000000011a4687
7  clang           0x00000000011a6eca
8  clang           0x00000000011a8350
9  clang           0x00000000011a868c
10 clang           0x00000000012ac8c0
11 clang           0x00000000013d6ef2
12 clang           0x00000000013d8425
13 clang           0x00000000013d85e4
14 clang           0x0000000000567880
15 clang           0x000000000056795f
16 clang           0x000000000056384f
17 clang           0x0000000000689ba2
18 clang           0x00000000004740f8
19 clang           0x0000000000563ee0
20 clang           0x00000000004741f5
21 clang           0x0000000000460aa4
22 clang           0x0000000000430b96
23 clang           0x0000000000439522 main + 334
24 libc.so.6       0x00007f209f4171c4 __libc_start_main + 244
25 clang           0x000000000042faa9
Stack dump:
0.    Program arguments:
/usr/local/google/collinwinter/llvm/obj/Debug/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -S -disable-free -main-file-name status.cpp
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -resource-dir
/usr/local/google/collinwinter/llvm/obj/Debug/lib/clang/2.0 -O2 -ferror-limit
19 -fmessage-length 134 -fexceptions -fgnu-runtime -fdiagnostics-show-option
-fcolor-diagnostics -o /tmp/cc-MnXGSr.s -x c++ status.cpp 
1.    <eof> parser at end of file
2.    Code generation
3.    Running pass 'Loop Pass Manager' on function '@_Z18GenerateStatusPagei'
4.    Running pass 'Loop Strength Reduction' on basic block '%for.body'
clang: error: clang frontend command failed due to signal 6 (use -v to see

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