[LLVMbugs] [Bug 7487] New: [MC] Crash when passing -no-integrated-as
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Jun 24 14:53:21 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=7487
Summary: [MC] Crash when passing -no-integrated-as
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: nicolasweber at gmx.de
CC: llvmbugs at cs.uiuc.edu
My project doesn't build with the built-in as yet (I filed bugs and I fixed a
few of them). I heard that I can pass -no-integrated-as in this case. Turns out
that works even worse. Here's a reduced test case:
$ cat assert.cc
template<typename _Iterator>
class __normal_iterator {
_Iterator _M_current;
};
template<typename _Tp>
class vector {
public:
typedef __normal_iterator<const _Tp*> const_iterator;
const_iterator begin() const { return const_iterator(); }
};
void copy(vector<int>::const_iterator, vector<int>::const_iterator, int) {}
void __merge_adaptive(vector<int>::const_iterator __first,
vector<int>::const_iterator __middle,
int __len1,
int __len2,
int __buffer,
int __buffer_size,
int __comp) {
copy(__first, __middle, 0);
}
void SortStrings16(vector<int>* strings) {
__merge_adaptive(strings->begin(), strings->begin(), 0, 0, 0, 0, 0);
}
$ g++ -gdwarf-2 -no-integrated-as -c assert.cc #works
$ /Users/thakis/src/llvm/Release/bin/clang++ -gdwarf-2 -no-integrated-as -c
assert.cc
Assertion failed: (RegNo && RegNo < 151 && "Invalid register number!"),
function getRegisterName, file
/Volumes/MacintoshHD2/src/llvm/lib/Target/X86/AsmPrinter/../X86GenAsmWriter.inc,
line 3432.
0 clang 0x01531428 main + 22181768
1 clang 0x01532186 main + 22185190
2 libSystem.B.dylib 0x905132bb _sigtramp + 43
3 libSystem.B.dylib 0xffffffff _sigtramp + 1873726831
4 libSystem.B.dylib 0x9058723a raise + 26
5 libSystem.B.dylib 0x90593679 abort + 73
6 libSystem.B.dylib 0x905883db __assert_rtn + 101
7 clang 0x00bec5f6 main + 12462422
8 clang 0x00bf0d7b main + 12480731
9 clang 0x00bf957d main + 12515549
10 clang 0x00bf9d5d main + 12517565
11 clang 0x00f39b55 main + 15924917
12 clang 0x00bee125 main + 12469381
13 clang 0x00ff3033 main + 16683923
14 clang 0x0148a96b main + 21499083
15 clang 0x0148ac7a main + 21499866
16 clang 0x0148af62 main + 21500610
17 clang 0x00137949 main + 1236137
18 clang 0x00137d40 main + 1237152
19 clang 0x002842e9 main + 2598473
20 clang 0x002c9076 main + 2880470
21 clang 0x000548b4 main + 306196
22 clang 0x00282bd7 main + 2592567
23 clang 0x0002bdee main + 139598
24 clang 0x00003412 _mh_execute_header + 9234
25 clang 0x0000a95e main + 3262
26 clang 0x00001b36 _mh_execute_header + 2870
27 clang 0x0000001d _mh_execute_header + 18446744073709547549
Stack dump:
0. Program arguments: /Volumes/MacintoshHD2/src/llvm/Release/bin/clang -cc1
-triple i386-apple-darwin9.0.0 -S -disable-free -main-file-name assert.cc
-pic-level 1 -mdisable-fp-elim -masm-verbose -target-cpu yonah -g -resource-dir
/Volumes/MacintoshHD2/src/llvm/Release/lib/clang/2.0 -ferror-limit 19
-fmessage-length 281 -fexceptions -fdiagnostics-show-option -fcolor-diagnostics
-o /var/folders/++/++1Gyk++6+0++4RjPqRgNE++ojg/-Tmp-/cc-qN9CUd.s -x c++
assert.cc
1. <eof> parser at end of file
2. Code generation
3. Running pass 'X86 AT&T-Style Assembly Printer' on function
'@_Z16__merge_adaptive17__normal_iteratorIPKiES2_iiiii'
clang: error: clang frontend command failed due to signal 6 (use -v to see
invocation)
--
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