-
-
Save apjanke/756bdae743e6a220b49d910bd4baf4f0 to your computer and use it in GitHub Desktop.
demo of how core dumps don't appear on macOS 10.13 for me
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[~] | |
$ sw_vers | |
ProductName: Mac OS X | |
ProductVersion: 10.13.6 | |
BuildVersion: 17G4015 | |
[~] | |
$ ulimit -a | |
-t: cpu time (seconds) unlimited | |
-f: file size (blocks) unlimited | |
-d: data seg size (kbytes) unlimited | |
-s: stack size (kbytes) 8192 | |
-c: core file size (blocks) unlimited | |
-v: address space (kbytes) unlimited | |
-l: locked-in-memory size (kbytes) unlimited | |
-u: processes 2837 | |
-n: file descriptors 7168 | |
[~] | |
$ ls -ld /cores | |
drwxrwxr-t@ 2 root admin 64 Jan 20 19:02 /cores | |
[~] | |
$ touch /cores/test | |
[~] | |
$ ls -l /cores/test | |
-rw-r--r-- 1 janke admin 0 Jan 20 19:02 /cores/test | |
[~] | |
$ sleep 100 & | |
[1] 28515 | |
[~] | |
$ killall -SIGSEGV sleep | |
[1] + 28515 segmentation fault sleep 100 | |
[~] | |
$ ls -a /cores | |
. .. test | |
[~] | |
$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment