Re: Force crash a cocoa app for Crash Reporter testing
Re: Force crash a cocoa app for Crash Reporter testing
- Subject: Re: Force crash a cocoa app for Crash Reporter testing
- From: "email@hidden" <email@hidden>
- Date: Fri, 21 Aug 2009 11:36:57 +0100
On 20 Aug 2009, at 19:03, Kyle Sluder wrote:
On Thu, Aug 20, 2009 at 10:04 AM, aaron
smith<email@hidden> wrote:
Anyone have any code I can use to do this?
abort()
which calls
raise(SIGABRT); // SIGFPE and SIGSEGV also may be tried
abort() is defined to optionally flush streams and delete temporary
files.
Or, rather than trying to trigger the crash from inside our app, we
can send it the abort signal from the terminal.
kill -s ABRT pid
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
Jonathan Mitchell
Developer
http://www.mugginsoft.com
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
Jonathan Mitchell
Developer
http://www.mugginsoft.com
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden