Re: How to enable core dumps
Dmitry <[email protected]> Thu, 14 May 2009 22:46:42 +0400
| Newsgroups | gmane.network.mathopd |
|---|---|
| Message-ID | <[email protected]> |
Michiel Boland wrote: > Hi. Core dumps are only enabled if you specify a directory in the config > file to dump core in. You can do this using the CoreDirectory directive. > Make sure the user you specify in the config file can create files in > this directory. Michiel, I forgot to say that CoreDirectory was enabled in the config: ================== CoreDirectory /tmp ================== /tmp is world writable with sticky bit. It doesn't help. Core is not dumped under user "www". Maximum size of core files is set to "unlimited". What I do: # `ulimit -c unlimited; mathopd -f /etc/mathopd.cfg` # `kill -SIGABRT <mathopd_pid> There is no core dump in /tmp. The process was running under user "www". # `ulimit -c unlimited; mathopd` # `kill -SIGABRT <mathopd_pid> Without config it dumps core in /tmp. The process was running under user "root". -- Dmitry