[LLVMdev] TableGen Crash
Kal Conley
kcconley at gmail.com
Fri Jan 20 06:50:43 PST 2012
Hi LLVMers,
I found a bug in TGParser that is causing llvm-tblgen to crash on bad
input. The reduced testcase is attached. The output follows:
$ ./llvm-tblgen --version
Low Level Virtual Machine (http://llvm.org/):
LLVM version 3.1svn
DEBUG build with assertions.
Built Jan 20 2012 (15:46:08).
Default target: x86_64-apple-darwin11.2.0
Host CPU: penryn
$ ./llvm-tblgen bug.td
0 llvm-tblgen 0x0000000108964de5 _ZL15PrintStackTracePv + 53
1 llvm-tblgen 0x0000000108965459 _ZL13SignalHandleri + 361
2 libsystem_c.dylib 0x00007fff8fe73cfa _sigtramp + 26
3 libsystem_c.dylib 0x00007fff8fe713c8 malloc_zone_malloc + 77
4 llvm-tblgen 0x0000000108913f83
llvm::TGParser::ParseSubClassReference(llvm::Record*, bool) + 515
5 llvm-tblgen 0x000000010891b269
llvm::TGParser::ParseObjectBody(llvm::Record*) + 121
6 llvm-tblgen 0x000000010891bab1
llvm::TGParser::ParseDef(llvm::MultiClass*) + 1201
7 llvm-tblgen 0x000000010891cab9
llvm::TGParser::ParseObject(llvm::MultiClass*) + 153
8 llvm-tblgen 0x000000010891cb82
llvm::TGParser::ParseObjectList(llvm::MultiClass*) + 66
9 llvm-tblgen 0x000000010891f9d7 llvm::TGParser::ParseFile() + 55
10 llvm-tblgen 0x00000001088e3e63 llvm::TableGenMain(char*,
llvm::TableGenAction&) + 931
11 llvm-tblgen 0x00000001088d05c6 main + 102
12 llvm-tblgen 0x0000000108738934 start + 52
13 llvm-tblgen 0x0000000000000002 start + 18446744069272794882
Stack dump:
0. Program arguments: ./llvm-tblgen /Users/kal/Desktop/bug.td
Segmentation fault: 11
Thanks,
Kal
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: bug.td
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120120/0258ab39/attachment.ksh>
More information about the llvm-dev
mailing list