• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
SIGBUS on declarations
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SIGBUS on declarations


  • Subject: SIGBUS on declarations
  • From: Jason Whittle <email@hidden>
  • Date: Fri, 24 Aug 2007 13:32:29 -0400

I was implementing a Foundation Tool project that started throwing segfaults, so I stripped it down to see what was doing it; I got it down the the following, but now it's throwing a SIGBUS.

#import <Foundation/Foundation.h>
int main (int argc, const char * argv[])
{
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
NSArray* x = [[NSArray alloc] initWithObjects: [NSNumber numberWithInt: 1]];
[x release];
[pool release];
return 0;
}


Is there something about NSArray that I'm not understanding?

Cheers,
Jason Whittle
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: SIGBUS on declarations
      • From: David Duncan <email@hidden>
  • Prev by Date: Re: Multithreaded Cocoa Document Application?
  • Next by Date: Re: SIGBUS on declarations
  • Previous by thread: Re: Calling a setter from setObjectValue causes crash in NSCell subclass
  • Next by thread: Re: SIGBUS on declarations
  • Index(es):
    • Date
    • Thread