• 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: Core dumps on MacOS X
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core dumps on MacOS X


  • Subject: Re: Core dumps on MacOS X
  • From: Mark Dalrymple <email@hidden>
  • Date: Fri, 13 Jun 2003 10:20:16 -0400

Hi Bill,

> I am trying to get a core dump on MacOS X for debugging. By default, OS X
> 10.2x just seems to make crash log entries, but no core dump.

working for me. The limit syntax can be tricky across shells.

bash-2.05a$ ./a.out
Segmentation fault

bash-2.05a$ ulimit -c unlimited
bash-2.05a$ ./a.out
Segmentation fault (core dumped)


Or if you're in the C shell:

% ./a.out
Segmentation fault

% limit coredumpsize unlimited
% ./a.out
Segmentation fault (core dumped)

The core files get deposited in /cores.

You can also change the resource limits in code in case you don't want your user to grovel around in the shell if you want to get a core dump. See the tail end of my gdb overview at http://macedition.com/bolts/bolts_20030210.php for the code (which may also have been posted on one of the cooca lists before)

Cheers,
++Mark Dalrymple, email@hidden
http://borkware.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: "-exec ..." in NSTask ?
  • Next by Date: RE: "-exec ..." in NSTask ?
  • Previous by thread: Core dumps on MacOS X
  • Next by thread: Re: Core dumps on MacOS X
  • Index(es):
    • Date
    • Thread