Nginx crash - possibly keepalives

Matthieu Tourne matthieu.tourne at
Wed Oct 12 02:53:36 UTC 2011

Hi all,

After turning on keepalives, we've been seeing one crash pretty
We're running nginx 1.1.5 and here is the backtrace :

(gdb) bt
#0  ngx_write_chain_to_file (file=0x173dbd0, cl=0x0, offset=26779,
pool=0x162b850) at src/os/unix/ngx_files.c:162
#1  0x000000000040ea3e in ngx_write_chain_to_temp_file (tf=0x173dbd0,
chain=0x0) at src/core/ngx_file.c:35
#2  0x000000000041c534 in ngx_event_pipe_write_chain_to_temp_file
(p=0x173d048) at src/event/ngx_event_pipe.c:771
#3  0x000000000041cd3d in ngx_event_pipe_read_upstream (p=0x173d048,
do_write=0) at src/event/ngx_event_pipe.c:234
#4  ngx_event_pipe (p=0x173d048, do_write=0) at
#5  0x000000000043e1b6 in ngx_http_upstream_process_upstream (r=0x1ae4bb0,
u=0x1afb4f8) at src/http/ngx_http_upstream.c:2704
#6  0x000000000043e612 in ngx_http_upstream_handler (ev=0x689b) at
#7  0x000000000041b1f6 in ngx_event_process_posted (cycle=<value optimized
out>, posted=0x0) at src/event/ngx_event_posted.c:39
#8  0x000000000041b0c6 in ngx_process_events_and_timers (cycle=0x151bbf0) at
#9  0x0000000000420bc3 in ngx_worker_process_cycle (cycle=0x151bbf0,
data=<value optimized out>) at src/os/unix/ngx_process_cycle.c:801
#10 0x000000000041f4cc in ngx_spawn_process (cycle=0x151bbf0, proc=0x420aeb
<ngx_worker_process_cycle>, data=<value optimized out>, name=0x470dc9
"worker process", respawn=5) at src/os/unix/ngx_process.c:196
#11 0x0000000000421359 in ngx_reap_children (cycle=0x151bbf0) at
#12 ngx_master_process_cycle (cycle=0x151bbf0) at
#13 0x000000000040700a in main (argc=<value optimized out>, argv=<value
optimized out>) at src/core/nginx.c:405

It seems that p->in is NULL in ngx_event_pipe_write_chain_to_temp_file() but
I can't figure out why.
It's using the proxy module as an upstream.

Let me know I could provide more info to help!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list