• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Force an Application to crash : possible ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Prev by Date: Re: highlightling custom table header cell on mouse clicks
  • Next by Date: Re: Who's launching me?
  • Previous by thread: Re: Who's launching me?
  • Next by thread: Re: Core Data, transient ivars and undo
  • Index(es):
    • Date
    • Thread