[LLVMbugs] [Bug 1653] New: Obj-C NSString crash in front end of LLVM-GCC 4.2/ arm-apple-darwin
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Tue Sep 11 18:04:06 PDT 2007
http://llvm.org/bugs/show_bug.cgi?id=1653
Summary: Obj-C NSString crash in front end of LLVM-GCC 4.2/arm-
apple-darwin
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: nightwatch41 at gmail.com
CC: llvmbugs at cs.uiuc.edu
The following code causes a segfault in the front-end of LLVM-GCC 4.2, target
arm-apple-darwin.
-----
#import <Foundation/Foundation.h>
@interface FooApp : NSObject
@end
@implementation FooApp
- (void)foo
{
NSLog(@"foo");
NSLog(@"bar");
}
@end
-----
The call frame traceback is as follows:
#0 emit_global_to_llvm (decl=0x1925720) at
../../llvm-gcc-iphone/gcc/llvm-backend.cpp:860
#1 0x002c5e45 in DefaultABI<(anonymous
namespace)::FunctionPrologArgumentConversion>::HandleArgument () at
../../llvm-gcc-iphone/gcc/llvm-convert.cpp:4725
#2 0x002cbbd9 in TreeToLLVM::EmitLV (this=0xbffff0c4, exp=0x1925720) at
../../llvm-gcc-iphone/gcc/llvm-convert.cpp:1001
#3 0x002cc2e8 in TreeToLLVM::EmitADDR_EXPR (this=0xbffff0c4, exp=0x14efd80) at
../../llvm-gcc-iphone/gcc/llvm-convert.cpp:2086
#4 0x002cd045 in TreeToLLVM::Emit (this=0xbffff0c4, exp=0x14efd80,
DestLoc=0x0) at ../../llvm-gcc-iphone/gcc/llvm-convert.cpp:858
#5 0x002d7e89 in TreeToLLVM::EmitNOP_EXPR (this=0xbffff0c4, exp=0x14efe10,
DestLoc=0x0) at ../../llvm-gcc-iphone/gcc/llvm-convert.cpp:2568
#6 0x002ccffb in TreeToLLVM::Emit (this=0xbffff0c4, exp=0x14efe10,
DestLoc=0x0) at ../../llvm-gcc-iphone/gcc/llvm-convert.cpp:865
#7 0x002de909 in TreeToLLVM::EmitMODIFY_EXPR (this=0xbffff0c4, exp=0x14efed0,
DestLoc=0x0) at ../../llvm-gcc-iphone/gcc/llvm-convert.cpp:2456
#8 0x002ccbb8 in TreeToLLVM::Emit (this=0xbffff0c4, exp=0x14efed0,
DestLoc=0x0) at ../../llvm-gcc-iphone/gcc/llvm-convert.cpp:860
#9 0x002df4e5 in TreeToLLVM::EmitFunction (this=0xbffff0c4) at
../../llvm-gcc-iphone/gcc/llvm-convert.cpp:791
#10 0x002bb70b in llvm_emit_code_for_current_function (fndecl=0x18c7c00) at
../../llvm-gcc-iphone/gcc/llvm-backend.cpp:574
#11 0x0008af1d in tree_rest_of_compilation (fndecl=0x18c7c00) at
../../llvm-gcc-iphone/gcc/tree-optimize.c:476
#12 0x0002a1e2 in c_expand_body (fndecl=0x18c7c00) at
../../llvm-gcc-iphone/gcc/c-decl.c:7133
#13 0x0030a732 in cgraph_expand_function (node=0x191d3f0) at
../../llvm-gcc-iphone/gcc/cgraphunit.c:1305
#14 0x0030c3b2 in cgraph_assemble_pending_functions () at
../../llvm-gcc-iphone/gcc/cgraphunit.c:376
#15 0x0030c0a3 in cgraph_finalize_function (decl=0x18c7c00, nested=0) at
../../llvm-gcc-iphone/gcc/cgraphunit.c:511
#16 0x0002a571 in finish_function () at ../../llvm-gcc-iphone/gcc/c-decl.c:7102
#17 0x00010bd0 in objc_finish_method_definition (fndecl=0x18c7c00) at
../../llvm-gcc-iphone/gcc/objc/objc-act.c:17246
#18 0x0007180a in c_parser_external_declaration (parser=0x4260d0c0) at
../../llvm-gcc-iphone/gcc/c-parser.c:6728
#19 0x0007219b in c_parse_file () at ../../llvm-gcc-iphone/gcc/c-parser.c:1217
#20 0x0005c10b in c_common_parse_file (set_yydebug=0) at
../../llvm-gcc-iphone/gcc/c-opts.c:1290
#21 0x00279e3b in do_compile () at ../../llvm-gcc-iphone/gcc/toplev.c:1134
#22 0x0027a8ec in toplev_main (argc=15, argv=0xbffff464) at
../../llvm-gcc-iphone/gcc/toplev.c:2288
#23 0x00001e72 in _start ()
#24 0x00001d99 in start ()
-Patrick
--
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