| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On Nov 27, 2007, at 5:42 PM, Terry Lambert wrote:The following will work, but it's not ideal:
======= #include <signal.h> #include <stdio.h>
void sig_abort(int sig) { printf("Application has been abort\n"); abort(); }
...
It's not ideal because you can't really rethrow the abort with the same stack, you will always show as being in the trap handler (the stack for a crash report looks something like this (on a PPC):
It's also not ideal because printf() is not signal-handler-safe. ;-)
Very true.
-- Terry _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/email@hidden
| References: | |
| >Why no crash reporter if I install some signal handler on Leopard (From: zhanglin <email@hidden>) | |
| >Re: Why no crash reporter if I install some signal handler on Leopard (From: Terry Lambert <email@hidden>) | |
| >Re: Why no crash reporter if I install some signal handler on Leopard (From: Steve Sisak <email@hidden>) | |
| >Re: Why no crash reporter if I install some signal handler on Leopard (From: Terry Lambert <email@hidden>) | |
| >Re: Why no crash reporter if I install some signal handler on Leopard (From: Jim Magee <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.