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?

pachanga
  • 495
  • 1
  • 6
  • 13

2 Answers2

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

Mark Wagner
  • 18,019
  • 2
  • 32
  • 47
  • 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 :(

pachanga
  • 495
  • 1
  • 6
  • 13