Just a note.
You can enable core dump by:
[bash] edit /etc/profile
ulimit -c unlimited
[csh/tcsh] edit /etc/csh.cshrc
limit coredumpsize unlimited
You can disable core dump by:
[bash] edit /etc/profile
ulimit -c 0
[csh/tcsh] edit /etc/csh.cshrc
limit coredumpsize 0
On FreeBSD, you also need to check the setting of kern.coredump:
# sysctl -a |grep kern.coredump kern.coredump: 0 # sysctl kern.coredump=1 kern.coredump: 0 -> 1 # sysctl -a | grep kern.coredump kern.coredump: 1
You can enforce this setting in /etc/sysctl.conf
[2008/01/01] Thanks for the complement from gslin, kern.sugid_coredump controls the core dump for setuid/setgid process in FreeBSD.
自動引用通知: Dada's Blog » Change the core dump file name in Linux and FreeBSD