Re: HowTo: catch a signal and get a CrashLog too (Leopard)
Re: HowTo: catch a signal and get a CrashLog too (Leopard)
- Subject: Re: HowTo: catch a signal and get a CrashLog too (Leopard)
- From: Steve Checkoway <email@hidden>
- Date: Wed, 19 Dec 2007 16:38:26 -0800
On Dec 19, 2007, at 3:02 PM, Andre-John Mas wrote:
Is there any way for a developer to find out crashes related to their
software via Apple? It would be ideal if there was service that I
could
sign up to as a developer or if MacOS X could send the log to the
the application developer, though I realise the latter might be
considered a 'security risk'.
I sort of doubt it. It's probably easiest to write your own crash
handler (or modify a free one, such as the one I helped write) and
handle user crashes with backtracing yourself. That way you can also
include other information that is useful for tracking down bugs.
Easiest way we found was to catch the signal, open a pipe, fork a new
process, reexec with a special argument so it knows to run the crash
handler code, and write(2) the data to the child process. Then the
child process can do things like look up symbols, make up a nice crash
report and then inform the user who then has the choice to send it to
you or not.
--
Steve Checkoway
"Anyone who says that the solution is to educate the users
hasn't ever met an actual user." -- Bruce Schneier
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden