• 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: Catching system signals and exception handling
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Catching system signals and exception handling


  • Subject: Re: Catching system signals and exception handling
  • From: j o a r <email@hidden>
  • Date: Thu, 21 Jul 2005 17:16:22 +0200


On 21 jul 2005, at 17.03, Aaron Burghardt wrote:

I'm trying to learn how handle system signals so I can catch SIGBUS & SIGSEGV signals, report them, and possibly recover from them. I've tried using the NSExceptionHandler from the ExceptionHandling framework, but I can't get it to catch signals and convert to exceptions, so I've moved on to installing my own signal handler.

I would like to have my signal handler create and raise an NSException. My test app will do it once, but subsequent signals get caught in an infinite loop. Is there a way to do this? Do I need to use setjmp/longjmp?

You're not allowed to use Cocoa from a signal handler. You're basically not allowed to do anything in a signal handler. Read the documentation, and the discussions on this topic that you can find in the list archives.


j o a r



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Catching system signals and exception handling
      • From: Laurent Michel <email@hidden>
References: 
 >Catching system signals and exception handling (From: Aaron Burghardt <email@hidden>)

  • Prev by Date: Re: Odd Doc Type Issue
  • Next by Date: cc1obj: warning: -Wuninitialized is not supported without -O <--- huh?
  • Previous by thread: Catching system signals and exception handling
  • Next by thread: Re: Catching system signals and exception handling
  • Index(es):
    • Date
    • Thread