• 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
Re: What's most common cause of SIGSEGV and SIGBUS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What's most common cause of SIGSEGV and SIGBUS


  • Subject: Re: What's most common cause of SIGSEGV and SIGBUS
  • From: Julien Dufour <email@hidden>
  • Date: Sun, 14 Mar 2004 04:37:45 +0100

On Mar 14, 2004, at 2:26, Ken Tozier wrote:

Hello

I wrote a WebView policy delegate which always runs once then crashes the app with either SIGSEGV or SIGBUS. Best I can figure is that somehow the class the delegate calls is dealloc'd more than once, but the only dealloc I explicitly define is in the document window dealloc method, so I'm not doing it.

Any insights?

Simple question: are you sure your object is correctly retained? (the first time it works because it has been autoreleased, the next time the object has been deallocated and the code crashes).

If you can't figure out from the code, you can place break points in the retain, release, autorelease and dealloc methods of the class whose instances are incorrectly dealloced. Override temporarily the methods in order to set the break points (don't forget to call super). You can then use the debugger to know what is happening and who is doing it.

"but the only dealloc I explicitly define", I guess you mean "release".

Ken

Best regards.

Julien Dufour
Inferiis - http://www.inferiis.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >What's most common cause of SIGSEGV and SIGBUS (From: Ken Tozier <email@hidden>)

  • Prev by Date: Re: NSString really Unicode?
  • Next by Date: Re: What's most common cause of SIGSEGV and SIGBUS
  • Previous by thread: What's most common cause of SIGSEGV and SIGBUS
  • Next by thread: Re: What's most common cause of SIGSEGV and SIGBUS
  • Index(es):
    • Date
    • Thread