[cfe-dev] clang: error: compiler command failed due to signal 6

Robert Purves listrp at gmail.com
Fri Jul 31 03:45:44 PDT 2009


$ clang --version
clang version 1.0 (http://llvm.org/svn/llvm-project/cfe/trunk 77666)
Target: i386-apple-darwin9
Thread model: posix

$ cat test.c
#include <Carbon/Carbon.h>
void test()
{
	UnsignedWide	usw;
}

$ clang -c test.c
$ clang -c test.c -g
0   clang-cc          0x00f77718 main + 16196104
1   clang-cc          0x00f77c9a main + 16197514
2   libSystem.B.dylib 0x910722bb _sigtramp + 43
3   libSystem.B.dylib 0xffffffff _sigtramp + 1861803375
4   clang-cc          0x00b3a199 main + 11750537
5   clang-cc          0x00b36b3e main + 11736622
6   clang-cc          0x00b35b67 main + 11732567
7   clang-cc          0x00b36727 main + 11735575
8   clang-cc          0x00b36edc main + 11737548
9   clang-cc          0x00b3a09c main + 11750284
10  clang-cc          0x00b36b3e main + 11736622
11  clang-cc          0x00b3a77b main + 11752043
12  clang-cc          0x00b3adf1 main + 11753697
13  clang-cc          0x00b3af2d main + 11754013
14  clang-cc          0x00b3b225 main + 11754773
15  clang-cc          0x00b47d1c main + 11806732
16  clang-cc          0x00818bbf main + 8468143
17  clang-cc          0x00b9eef8 main + 12163560
18  clang-cc          0x00ee6295 main + 15601029
19  clang-cc          0x00ee6570 main + 15601760
20  clang-cc          0x00ee6788 main + 15602296
21  clang-cc          0x00019788 main + 82552
22  clang-cc          0x0001a4f5 main + 85989
23  clang-cc          0x0028e44f main + 2658111
24  clang-cc          0x00004bc2 _mh_execute_header + 15298
25  clang-cc          0x000071b9 main + 7337
26  clang-cc          0x00001a36 _mh_execute_header + 2614
Stack dump:
0.	Program arguments: clang-cc -triple i386-apple-darwin9 -S -disable- 
free -main-file-name test.c --relocation-model pic -pic-level=1 -- 
disable-fp-elim --unwind-tables=0 --mcpu=yonah --fmath-errno=0 - 
mmacosx-version-min=10.5.0 -g -fdiagnostics-show-option -o /var/ 
folders/88/88AKX+F62RWmd++8ZOxBkU+++TI/-Tmp-/cc-hyGotT.s -x c test.c
1.	<eof> parser at end of file
2.	Code generation
3.	Running pass 'X86 AT&T-Style Assembly Printer' on function '@test'
clang: error: compiler command failed due to signal 6 (use -v to see  
invocation)


The clang error is accompanied by a crash of ReportCrash itself:

Process:         ReportCrash [24612]
Path:            /System/Library/CoreServices/ReportCrash
...
Thread 1 Crashed:
0   com.apple.Symbolication       	0x000d027d d_print_comp + 12
1   com.apple.Symbolication       	0x000d1f66 d_print_comp + 7413
2   com.apple.Symbolication       	0x000d0dd7 d_print_comp + 2918
3   com.apple.Symbolication       	0x000d0dd7 d_print_comp + 2918
4   com.apple.Symbolication       	0x000d0dd7 d_print_comp + 2918

Robert P.





More information about the cfe-dev mailing list