Re: Force an Application to crash : possible ?
Re: Force an Application to crash : possible ?
- Subject: Re: Force an Application to crash : possible ?
- From: Marcel Weiher <email@hidden>
- Date: Sun, 12 Feb 2006 22:47:18 +0000
On 12 Jan 2006, at 04:17, Scott Ribe wrote:
For debugging purposes, I've found the following to be pretty good:
asm { trap }
((char *)0) = 0;
Will generally take down an app pretty quickly on OS X, thank
goodness ;-)
Just for completeness's sake, there is a canonical answer to the
question the OP asked (not the one he should have asked):
man 3 abort
abort -- cause abnormal program termination
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <stdlib.h>
void
abort(void);
DESCRIPTION
The abort() function causes abnormal program termination to
occur, unless
the signal SIGABRT is being caught and the signal handler does not
return.
...
Marcel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden