How do I get a coredump file from an application?
odhiambo at gmail.com
Mon Oct 4 07:45:16 UTC 2021
root at gw:/var/log/exim # freebsd-version -kru
I have my MTA (Exim) crushing, with the following message in its panic.log:
2021-10-01 04:10:58 SIGSEGV (maybe attempt to write to immutable memory)
2021-10-01 04:11:26 SIGSEGV (maybe attempt to write to immutable memory)
2021-10-01 04:11:30 SIGSEGV (maybe attempt to write to immutable memory)
2021-10-01 04:11:35 SIGSEGV (maybe attempt to write to immutable memory)
I need to obtain a coredump file from the crashing process for debugging
I have manually compiled the application with the following option:
With the hopes that the binary will then come with debugging symbols.
Additionally, I have done the following:
mkdir -p /var/coredumps
chmod 1777 /var/coredumps
Added the following to /etc/sysctl.conf:
sysctl -w kern.coredump=1
sysctl -w kern.corefile=/var/coredumps/%U/%N.core
sysctl -w kern.sugid_coredump=1 (this actually seems to be the default)
Is this all that I need to do or am I missing something crucial in this
Thanks in advance.
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", egrep -v '^$|^.*#' :-)
More information about the freebsd-questions