1

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?

2

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

  • 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
0

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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