site_archiver@lists.apple.com Delivered-To: Darwin-dev@lists.apple.com static void AbortHandler( int /* inSignal */ ) { long* badAddr = 0; *badAddr = 7; } _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com On Apr 13, 2009, at 3:14 PM, James Walker wrote: When my app receives SIGABRT, I want to force some kind of crash that will generate a crash report. I tried installing a SIGABRT signal handler like this: On Tiger, it partly works: There is a crash log, but the app keeps running in a hung state. On Leopard, there's just a hang, no crash report. It's possible that ReportCrash on Leopard and Tiger could not handle double-faults, meaning that it would not send an exception reply to the kernel indicating that the faulting process could exit once per fault. So the kernel would keep a thread parked in ipc_mqueue_receive () waiting for a reply before allowing the process to exit. -- Damien Sorresso BSD Engineering Apple Inc. smime.p7s
participants (1)
-
Damien Sorresso