[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #28552] NSClassFromString changes to +initialize in NSMapTable caus
From: |
Tim Kack |
Subject: |
[bug #28552] NSClassFromString changes to +initialize in NSMapTable causes SIGSEGV |
Date: |
Mon, 11 Jan 2010 11:35:08 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.7) Gecko/20100106 Ubuntu/9.10 (karmic) Firefox/3.5.7 |
URL:
<http://savannah.gnu.org/bugs/?28552>
Summary: NSClassFromString changes to +initialize in
NSMapTable causes SIGSEGV
Project: GNUstep
Submitted by: tkack
Submitted on: Mon 11 Jan 2010 12:35:02 PM CET
Category: Base/Foundation
Severity: 3 - Normal
Item Group: Bug
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
I updated to r29256 and nothing runs since NSAutoReleasePool creates a
maptable and hence causes this problem.
Reverting back and instead use:
@class NSConcreteMapTable;
....
concreteClass = [NSConcreteMapTable class];
in NSMapTable.m works.
I am not using clang.
GDB Backtrace:
Program received signal SIGSEGV, Segmentation fault.
NSCreateMapTableWithZone (k=..., v=..., capacity=0, zone=0xb7fc3300) at
NSConcreteMapTable.m:464
(gdb) bt
#0 NSCreateMapTableWithZone (k=..., v=..., capacity=0, zone=0xb7fc3300) at
NSConcreteMapTable.m:464
#1 0xb7db5525 in NSCreateMapTable (keyCallBacks=..., valueCallBacks=...,
capacity=0) at NSConcreteMapTable.m:418
#2 0xb7e9aa5a in +[NSString initialize] (self=0xb7fab820, _cmd=0xb7fc36a8)
at NSString.m:590
#3 0xb7c8d722 in ?? () from /usr/lib/libobjc.so.2
#4 0xb7c8d6a4 in ?? () from /usr/lib/libobjc.so.2
#5 0xb7c8d8ac in objc_msg_lookup () from /usr/lib/libobjc.so.2
#6 0xb7e3fbd4 in NSClassFromString (aClassName=0xb7f8ebe0) at
NSObjCRuntime.m:108
#7 0xb7e2ee27 in +[NSMapTable initialize] (self=0xb7f8ea60, _cmd=0xb7fc36a8)
at NSMapTable.m:58
#8 0xb7c8d722 in ?? () from /usr/lib/libobjc.so.2
#9 0xb7c8d6a4 in ?? () from /usr/lib/libobjc.so.2
#10 0xb7c8d8cc in objc_msg_lookup () from /usr/lib/libobjc.so.2
#11 0xb7db54a7 in NSCreateMapTableWithZone (k=..., v=..., capacity=0,
zone=0xb7fc3300) at NSConcreteMapTable.m:442
#12 0xb7db5525 in NSCreateMapTable (keyCallBacks=..., valueCallBacks=...,
capacity=0) at NSConcreteMapTable.m:418
#13 0xb7e424fc in +[NSObject initialize] (self=0xb7f946e0, _cmd=0xb7fc36a8)
at NSObject.m:1004
#14 0xb7c8d722 in ?? () from /usr/lib/libobjc.so.2
#15 0xb7c8d6a4 in ?? () from /usr/lib/libobjc.so.2
#16 0xb7c8d8cc in objc_msg_lookup () from /usr/lib/libobjc.so.2
#17 0x080487d2 in main (argc=1, argv=0xbfffeee4) at simpletest.m:4
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?28552>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #28552] NSClassFromString changes to +initialize in NSMapTable causes SIGSEGV,
Tim Kack <=