How to enable core dumps

2009-05-14 Thread Dmitry
Hello, I need to debug mathopd process because it segfaults every 2 day. The pattern is always the same. Something like mathopd[24068]: segfault at a17b000 ip 005be8ac sp bfd6098c error 4 in libc-2.7.so[54d000+153000] I am sure it is not the problem of mathopd itself, but custom patches

Re: How to enable core dumps

2009-05-14 Thread Michiel Boland
Dmitry wrote: Hello, I need to debug mathopd process because it segfaults every 2 day. The pattern is always the same. Something like mathopd[24068]: segfault at a17b000 ip 005be8ac sp bfd6098c error 4 in libc-2.7.so[54d000+153000] I am sure it is not the problem of mathopd itself, but

Re: How to enable core dumps

2009-05-14 Thread Dmitry
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

Re: How to enable core dumps

2009-05-14 Thread Michiel Boland
Dmitry wrote: 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

Re: How to enable core dumps

2009-05-14 Thread Dmitry
Michiel Boland wrote: It could be that the OS does not allow coredumps for processes that have done a setuid. Thank you, Michiel, you were right. Linux man page for setuid(2) says: If uid is different from the old effective uid, the process will be forbidden from leaving core dumps. --