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
Priority:  5 - Normal Item Group:  Bug
Status:  Wont Fix Privacy:  Public
Assigned to:  fedor Open/Closed:  Declined
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

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. ... 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

 

Attached Files

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

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

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

 

Votes

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.

 

History

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.16-ed84.
Corresponding source code