[LLVMbugs] [Bug 5640] New: possible resource hog bug

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun Nov 29 21:11:39 PST 2009


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

           Summary: possible resource hog bug
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: regehr at cs.utah.edu
                CC: llvmbugs at cs.uiuc.edu


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

The attached program seems innocuous (30 KB before preprocessing) but causes
clang -O1 to use all my RAM and then crash.

regehr at john-home:~/volatile/bugs/tmp245$ clang -O1 small_pp.c
In file included from small.c:1:
In file included from small.c:1:
small.c:551:146: warning: self-comparison always results in a constant value
  ...l_95, (p_46), l_96, l_92) != ((p_46) >= (l_97))) != (l_98 == l_98)))),
(p_46));
                                                               ^
small.c:842:168: warning: self-comparison always results in a constant value
  ...l_70) < ((l_71) > (safe_add_func_int32_t_s_s ((l_71), (g_55 >=
g_55))))))), l_69));
                                                                 ^
0  clang-cc 0x0905b918
Stack dump:
0.      Program arguments:
/home/regehr/z/tmp/llvm-gcc-r90089-install/bin/../libexec/clang-cc -triple
i386-pc-linux-gnu -S -disable-free -main-file-name small_pp.c
-mrelocation-model static -mdisable-fp-elim -mcpu pentium4 -O1 -fmessage-length
93 -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o
/tmp/cc-xKcN4y.s -x c small_pp.c 
1.      <eof> parser at end of file
2.      Per-module optimization passes
3.      Running pass 'CallGraph Pass Manager' on module 'small_pp.c'.
4.      Running pass 'Jump Threading' on function '@func_30'
clang: error: compiler command failed due to signal 11 (use -v to see
invocation)

regehr at john-home:~/volatile/bugs/tmp245$ clang -v

clang version 1.1 (trunk 90089)
Target: i386-pc-linux-gnu
Thread model: posix


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