Keep Alive piles up

Maxim Dounin mdounin at
Fri Jun 26 03:47:31 MSD 2009


On Thu, Jun 25, 2009 at 06:25:17PM -0400, meto wrote:

> So i've checked and 0.7.61 seems to have similar behaviour (
> In logs the only suspicious thing was:
> 2009/06/25 23:38:09  19083#0: worker process 19088 exited on signal 11
> and some others similar, always signal 11.

Yep, it's died on SIGSEGV.

> So how to make coredump? I've got --with-debug package :)

It depends on your OS.  Under FreeBSD it should be enough to do:

sysctl kern.sugid_coredump=1
sysctl kern.corefile="/var/coredumps/%N.%P.core"

(and create writeable /var/coredumps directory of course, more 
details may be found in core(5) manual page).

I don't know exact steps to enable coredumps under Linux, but suggests you 
should use

echo 1 > /proc/sys/fs/suid_dumpable


echo 1 > /proc/sys/kernel/suid_dumpable

depending on Linux version, and add to nginx config something 

worker_rlimit_core   100m;
working_directory    /path/to/core/files;

Once you have corefile please do

gdb /path/to/nginx /path/to/core

and post backtrace here.

Maxim Dounin

More information about the nginx mailing list