• 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 and SIGSEGV
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SIGBUS and SIGSEGV


  • Subject: SIGBUS and SIGSEGV
  • From: Nick <email@hidden>
  • Date: Thu, 7 Feb 2002 20:02:21 +0700

My apologies for bothering the list with another fairly simple question, but it's been bothering me for a while and doesn't seem to be documented very well.

Recently, my application has been crashing (after closing a sheet, although I'm not sure that 's the real cause of the problem) during runtime because of signal 10 (SIGBUS) and signal 11 (SIGSEGV) errors. I have looked through the man signal documentation in Terminal but it just gives me vague descriptions of bus and segmentation errors. I have read on this list that SIGBUS errors come from trying to access data that does not exist, i.e. that which has been released already or was never correctly allocated, but I have not seen a good description of SIGSEGV. Also, I seem to get one of the two at the same point in my program, although it seems almost random which one is shown by PB after the crash.

Any explanation of these errors would be most welcome, as would be any advice for finding common problems that cause these devils.

By the way, I'm the same newbie that posted to the list about a week ago about problems adding custom objects to an array. It was in fact the obvious mistake on my part that although the array had been declared, it had not yet been allocated. Thanks to all those who pointed it out to me. Why is it that the simplest mistakes are always the hardest to find?

Thanks in advance,
Nick
email@hidden
_______________________________________________
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.

  • Follow-Ups:
    • Re: SIGBUS and SIGSEGV
      • From: Isaac Sherman <email@hidden>
  • Prev by Date: Re: Resetting "Factory" Prefs
  • Next by Date: Re: Speed of Quartz (was: optimizing compilers)
  • Previous by thread: Still Offscreen Drawing Problems ...
  • Next by thread: Re: SIGBUS and SIGSEGV
  • Index(es):
    • Date
    • Thread