How to generate core dumps in Mac OS X?
It seems like I can not generate core dumps in Mac OS X 10.6.8. $ ulimit -c unlimited $ ./a.out Hello world! Segmentation fault $ find ~/ -type f -name core # ls -la /cores/ total 0 drwxrwxr-t@ 2 root admin 68 24 jui 2010 . drwxrwxr-t 31 root admin 1122 17 oct 15:52 .. My current directory, my HOME and /cores/ remain empty… TOC You can generate core dump files on Mac Os X like this: Create the file : /etc/launchd.conf , then : echo "limit core unlimited" | sudo tee -a /etc/launchd.conf Restart your Mac. And that's it, the core dump files are generated in the /cores directory. Be careful the