在 FreeBSD 上產生 coredump 另外要注意的事項

寫這篇是要補 這篇沒提到的部份。

對於 setuid 或是 setgid 程式, 基於安全性原因是不會產生 core 的。如果有需要產生 core 需要修改 kern.sugid_coredump 的值:

# sysctl kern.sugid_coredump=1

這個在 的 mailing list 上遇過,無意間看到這個參數才發現的:

One thought on “在 FreeBSD 上產生 coredump 另外要注意的事項”

Leave a Reply

Your email address will not be published. Required fields are marked *