bugGNUstep - Bugs: bug #28552, NSClassFromString changes to...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #28552: NSClassFromString changes to +initialize in NSMapTable causes SIGSEGV

Submitted by:  Tim Käck <tkack>
Submitted on:  Mon 11 Jan 2010 11:35:02 AM UTC  
 
Category: Base/FoundationSeverity: 3 - Normal
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: Fred Kiefer <FredKiefer>
Open/Closed: Closed

Mon 11 Jan 2010 12:17:41 PM UTC, comment #1:

this can be closed. Fred fixed in NSConcreteMapTable with rev 29259

Tim Käck <tkack>
Mon 11 Jan 2010 11:35:02 AM UTC, original submission:

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

Tim Käck <tkack>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by FredKiefer (Updated the item)
  • -unavailable- added by tkack (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 11 Jan 2010 12:35:56 PM UTCFredKieferStatusNone=>Fixed
      Assigned toNone=>FredKiefer
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1