I was wondering if core dumps are disabled by default in Mac OS X, or if we have to add the following line to our .bash_profile:

ulimit -S -c 0
  • What is Your output of: sysctl -a | grep coredump ? – Mateusz Szlosek Sep 11 '14 at 8:14
  • $ sysctl -a | grep coredump kern.coredump = 1 kern.sugid_coredump = 0 kern.coredump: 1 kern.sugid_coredump: 0 – aaragon Sep 11 '14 at 8:15

By default, ulimits on OS X have a soft limit of 0 and a hard limit of unlimited.

You can verify this by opening a Terminal and running ulimit -S -c and ulimit -H -c.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .