Force a crash on SIGABRT?
Force a crash on SIGABRT?
- Subject: Force a crash on SIGABRT?
- From: James Walker <email@hidden>
- Date: Mon, 13 Apr 2009 13:44:16 -0700
When my app gets SIGABRT, I'd like to get an access violation or
something that produces a crash log with a stack crawl. I tried saying
signal( SIGABRT, AbortHandler ), where AbortHandler is defined as
static void AbortHandler( int /* inSignal */ )
{
long* badAddr = 0;
*badAddr = 7;
}
On Tiger, it sort of works... the crash report window comes up, though
the app remains running in a hung state. On Leopard, it just hangs.
--
James W. Walker, Innoventive Software LLC
<http://www.frameforge3d.com/>
_______________________________________________
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