bugGNUstep - Bugs: bug #13240, Internal Error when using...

Group
 
 

bug #13240: Internal Error when using +[NSString stringWithFormat:] in a load method

Submitter:  None
Submitted:  Tue 31 May 2005 05:14:31 PM UTC
   
 
Category:  Base/Foundation Severity:  3 - Normal
Item Group:  Bug Status:  Wont Fix
Privacy:  Public Assigned to:  fedor
Open/Closed:  Declined
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 31 May 2005 09:29:27 PM UTC, comment #1: 

You should try to avoid using ObjC methods in the +load (particularly NSString methods), since classes are not necessarily initialized when the load method is sent. See for instance:

http://developer.apple.com/documentation/Cocoa/Reference/Foundation/ObjC_classic/Classes/NSObject.html#//apple_ref/doc/uid/20000050-load

Adam Fedor <fedor>
Group administrator
Tue 31 May 2005 05:14:31 PM UTC, original submission:  

I stumbled accross a NSInternalInconsistencyException when attempting to get a program working under a solaris 8 machine.

I reproduced this error with the attached program (be gentle, it's actually the first objective-c program I've written).

It appears that calling +[NSString stringWithFormat] in a +load method causes the error. I think it may be have something to do with NSZone and NSBundle being used before NSProcessInfo is set up.

I have produced this error on solaris 8 with gcc 3.4.2 / gnustep-base 1.10.3 and on solaris 9 with gcc 3.3.2 / gnustep-base 1.7.1

Let me know if you require any more information

Thanks,
-Matthew Jimenez

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #3022:  test.tar added by None (14KiB - application/x-tar)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 5 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-05-31 fedor CategoryNone Base/Foundation
    StatusNone Wont Fix
    Assigned toNone fedor
    Open/ClosedOpen Declined
2005-05-31 None Attached File- Added test.tar, #2554

Back to the top

Powered by Savane 3.13-caa5.
Corresponding source code