[LLVMbugs] [Bug 4848] New: [2.6] instcombine runs out of memory (infinite loop?) when compiling kernel/hrtimer.c

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Sep 1 01:05:23 PDT 2009


           Summary: [2.6] instcombine runs out of memory (infinite loop?)
                    when compiling kernel/hrtimer.c
           Product: new-bugs
           Version: 2.6
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: edwintorok at gmail.com
                CC: llvmbugs at cs.uiuc.edu
            Blocks: 4068

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

clang runs out of memory when compiling hrtimer.c, bugpoint reduced  a 
testcase for instcombine. The testcase contains only 3 instructions.

terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
0   clang-cc        0x000000000128595f
1   clang-cc        0x0000000001287629
2   libpthread.so.0 0x0000003672e0e720
3   libc.so.6       0x0000003672231d25 gsignal + 53
4   libc.so.6       0x0000003672234de1 abort + 385
5   libstdc++.so.6  0x00000034cfcc6dc5 __gnu_cxx::__verbose_terminate_handler()
+ 277
6   libstdc++.so.6  0x00000034cfcc51f6
7   libstdc++.so.6  0x00000034cfcc5223
8   libstdc++.so.6  0x00000034cfcc531e
9   libstdc++.so.6  0x00000034cfcc57ad operator new(unsigned long) + 125
10  clang-cc        0x000000000113f1dd
11  clang-cc        0x000000000113f729
12  clang-cc        0x000000000113fc45
13  clang-cc        0x000000000105e3ba
14  clang-cc        0x0000000001095229
15  clang-cc        0x000000000109667e
16  clang-cc        0x000000000121336b
17  clang-cc        0x0000000001213d36
18  clang-cc        0x0000000001213fa0
19  clang-cc        0x0000000000427558
20  clang-cc        0x0000000000427ee7
21  clang-cc        0x000000000061f19b
22  clang-cc        0x000000000040dce9
23  clang-cc        0x00000000004167da main + 5066
24  libc.so.6       0x000000367221e5c6 __libc_start_main + 230
25  clang-cc        0x000000000040b869
Stack dump:
0.      Program arguments: /usr/local/bin/../libexec/clang-cc -triple
x86_64-unknown-linux-gnu -S -disable-free -main-file-name hrtimer.c
--relocation-model static --disable-fp-elim --unwind-tables=1
--disable-red-zone -mcpu core2 -code-model kernel -target-feature -sse
-target-feature -mmx -target-feature -sse2 -target-feature -3dnow
--fmath-errno=1 -nostdinc -dependency-file kernel/.hrtimer.o.d -MT
kernel/.tmp_hrtimer.o -sys-header-deps -isystem
/usr/local/bin/../lib/clang/1.0/include -include include/linux/autoconf.h
-I/home/edwin/builds/linux-2.6/arch/x86/include -O2 -Wall -Wundef
-Wstrict-prototypes -Wno-trigraphs -Werror-implicit-function-declaration
-Wno-format-security -Wno-unused-value -Wno-sign-compare
-Wframe-larger-than=2048 -Wdeclaration-after-statement -Wno-pointer-sign
--stack-protector=0 -fno-common -fdiagnostics-show-option -o /tmp/cc-Rz1pJ9.s
-x c kernel/hrtimer.c 
1.      <eof> parser at end of file
2.      Per-function optimization
3.      Running pass 'Combine redundant instructions' on function
clang: error: compiler command failed due to signal 6 (use -v to see
make[1]: *** [kernel/hrtimer.o] Error 250

opt bugpoint-reduced-simplified.bc -instcombine      
WARNING: You're attempting to print out a bitcode file.                         
This is inadvisable as it may cause display problems. If
you REALLY want to taste LLVM bitcode first-hand, you
can force output with the `-f' option.

opt: Unexpected unknown exception occurred.

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