SIGBUS and SIGSEGV
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.