Bad default setting example: on #FreeBSD, core files are written in the working directory.
-
Bad default setting example: on #FreeBSD, core files are written in the working directory. Many daemons use "/nonexistent", so they cannot generate core files. So if they segfault, you won't have any idea why.
Add kern.corefile=/var/coredumps/%U/%N.core to /etc/sysctl.conf.
-
Bad default setting example: on #FreeBSD, core files are written in the working directory. Many daemons use "/nonexistent", so they cannot generate core files. So if they segfault, you won't have any idea why.
Add kern.corefile=/var/coredumps/%U/%N.core to /etc/sysctl.conf.
@galdor this should be done with care. It will cause the kernel to write potentially sensitive information to disk. So: hopefully those dumps go in a spot that only root can access. You consider only turning this on for reproducible problems. If you decide.to turn it on generally, consider tripping an alert if the crash dump directory isn't empty.
-