[LLVMbugs] [Bug 9871] New: clang crashes in register allocator on PPC

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun May 8 06:08:37 PDT 2011


           Summary: clang crashes in register allocator on PPC
           Product: clang
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: js-llvm-bugzilla at webkeks.org
                CC: llvmbugs at cs.uiuc.edu

Assertion failed: (Stage < RS_Spill && "Cannot allocate after spilling"),
function selectOrSplit, file RegAllocGreedy.cpp, line 1379.
0  clang             0x01918c8c llvm::SmallVectorTemplateBase<llvm_regmatch_t,
false>::grow(unsigned long) + 908
1  clang             0x01919e30 llvm::SmallVectorTemplateBase<llvm_regmatch_t,
false>::grow(unsigned long) + 5424
2  libSystem.B.dylib 0x973e79fc _sigtramp + 68
Stack dump:
0.      Program arguments: /usr/local/bin/clang -cc1 -triple
powerpc-apple-darwin9.8.0 -S -disable-free -main-file-name OFHTTPRequest.m
-pic-level 2 -mdisable-fp-elim -target-linker-version 85.2.1 -coverage-file
/var/folders/r6/r6-A-X9iFjCgOaLQUX8VME+++TI/-Tmp-/cc-duk43Z.s -resource-dir
/usr/local/bin/../lib/clang/3.0 -D PIC -I . -I .. -I exceptions -O2 -Wall
-Wwrite-strings -Wcast-align -Wpointer-arith -Werror -std=gnu99 -fconst-strings
-fno-dwarf2-cfi-asm -fconstant-string-class OFConstantString -ferror-limit 19
-fmessage-length 146 -fblocks -fobjc-exceptions -fexceptions
-fno-constant-cfstrings -fno-common -fdiagnostics-show-option
-fcolor-diagnostics -o
/var/folders/r6/r6-A-X9iFjCgOaLQUX8VME+++TI/-Tmp-/cc-duk43Z.s -x objective-c
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module 'OFHTTPRequest.m'.
4.      Running pass 'Greedy Register Allocator' on function
'@"\01-[OFHTTPRequest performWithRedirects:]"'
clang: error: unable to execute command: Trace/BPT trap
clang: error: clang frontend command failed due to signal 1 (use -v to see

This happens in countless files. I tried compiling the failing files with gcc
and the rest with clang until I had to give up because 30% of all files failed
with this assertion.

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