top | item 41170648

(no title)

Zacru | 1 year ago

The running user may not have a home directory.

discuss

order

inferiorhuman|1 year ago

The default on macOS is to chuck them in /cores (which seems quite reasonable to me).

Security-wise I wouldn't worry too much about the Solaris/Illumos defaults. There, dumps can be created in up to three contexts: system-wide "global", zone-wide "global", and local. All are created with mode 600 and global dumps are created with owner of uid 0. Local core dumps are owned by user that owns the process unless its uid/gid has changed (e.g. setuid/setgid), then the owner is the superuser like the global dumps.

Otherwise yeah I'm not a huge fan of leaving core dumps in the current directory. What if you're doing something on a read-only filesystem?