Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Folks, my server written in C++ periodically crashes but produces no core dump at all.

Core dumps are produced for sure: "ulimit -c" and "/proc/sys/kernel/core_pattern" are set properly.

The weird thing is that I tried to kill the server manually for several times using "kill -s SIGSEGV $pid" and the cores were produced all times.

Is there any explanation and solution for such a strange behavior?

share|improve this question
add comment

2 Answers

It may be receiving a signal that doesn't dump core by default. See http://www.kernel.org/doc/man-pages/online/pages/man7/signal.7.html

share|improve this answer
    
Well, in my signal handler I only allow USR1 and USR2 not to produce the core file, all other signals produce the core for sure. Furthermore all signals are logged - there are no signals at all when the server crashes... –  pachanga Aug 26 '10 at 20:05
add comment
up vote 0 down vote accepted

It looks like my application is killed by oom-killer...now I have to investigate why this happens :(

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.