<div>(gdb) fr 0</div><div>#0 ngx_http_upstream_handler (ev=0x7fc45735f8a8)</div><div> at src/http/ngx_http_upstream.c:915</div><div>915<span class="Apple-tab-span" style="white-space:pre"> </span> ctx->current_request = r;</div>
<div>(gdb) p *ev</div><div>$1 = {data = 0x7fc4576aa750, write = 1, accept = 0, instance = 1, active = 1, </div><div> disabled = 0, ready = 1, oneshot = 0, complete = 0, eof = 0, error = 0, </div><div> timedout = 1, timer_set = 0, delayed = 0, read_discarded = 0, </div>
<div> unexpected_eof = 0, deferred_accept = 0, pending_eof = 0, posted_ready = 0, </div><div> available = 0, handler = 0x43bf9c <ngx_http_upstream_handler>, </div><div> index = 3503345872, log = 0x21f1770, timer = {key = 0, left = 0x0, </div>
<div> right = 0x0, parent = 0x0, color = 0 '\000', data = 0 '\000'}, </div><div> closed = 0, channel = 0, resolver = 0, next = 0x0, prev = 0x0}</div><div>(gdb) p *((ngx_connection_t *) ev->data)</div>
<div>$2 = {data = 0x22a2780, read = 0x7fc4575008a8, write = 0x7fc45735f8a8, </div><div> fd = 66, recv = 0x41cc50 <ngx_unix_recv>, send = 0x41cf08 <ngx_unix_send>, </div><div> recv_chain = 0x41cd00 <ngx_readv_chain>, </div>
<div> send_chain = 0x421050 <ngx_linux_sendfile_chain>, listening = 0x0, </div><div> sent = 0, log = 0x21f1770, pool = 0x237ff70, sockaddr = 0x0, socklen = 0, </div><div> addr_text = {len = 0, data = 0x0}, ssl = 0x0, local_sockaddr = 0x0, </div>
<div> buffer = 0x0, queue = {prev = 0x0, next = 0x0}, number = 63713716, </div><div> requests = 0, buffered = 0, log_error = 1, single_connection = 0, </div><div> unexpected_eof = 0, timedout = 0, error = 0, destroyed = 0, idle = 0, </div>
<div> reusable = 0, close = 0, sendfile = 1, sndlowat = 0, tcp_nodelay = 0, </div><div> tcp_nopush = 0}</div><div><br></div><br><div class="gmail_quote">2011/9/5 Maxim Dounin <span dir="ltr"><<a href="mailto:mdounin@mdounin.ru">mdounin@mdounin.ru</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello!<br>
<div class="im"><br>
On Sun, Sep 04, 2011 at 01:33:59PM -0400, magicbear wrote:<br>
<br>
> Hello , when run for 5 days, today have 2 segment failure.<br>
><br>
> 2011/09/04 12:00:47 [alert] 32147#0: worker process 8496 exited on<br>
> signal 11 (core dumped)<br>
> 2011/09/04 12:17:32 [alert] 8497#0: ignore long locked inactive cache<br>
> entry 57c7c6c612a651727b880a1c9a2c7d2d, count:1<br>
> 2011/09/04 12:21:31 [alert] 32147#0: worker process 19185 exited on<br>
> signal 11 (core dumped)<br>
><br>
><br>
><br>
><br>
> Core was generated by `nginx:'.<br>
> Program terminated with signal 11, Segmentation fault.<br>
> #0 ngx_http_upstream_handler (ev=0x7fc45735f8a8) at<br>
> src/http/ngx_http_upstream.c:915<br>
> 915 ctx->current_request = r;<br>
> (gdb) bt<br>
> #0 ngx_http_upstream_handler (ev=0x7fc45735f8a8) at<br>
> src/http/ngx_http_upstream.c:915<br>
> #1 0x0000000000419e95 in ngx_event_expire_timers () at<br>
> src/event/ngx_event_timer.c:149<br>
> #2 0x0000000000419ac7 in ngx_process_events_and_timers<br>
> (cycle=0x21f1990) at src/event/ngx_event.c:261<br>
<br>
</div>Hm, this looks identical to one you've reported previously. Do<br>
you have patch from<br>
<br>
<a href="http://mailman.nginx.org/pipermail/nginx/2011-August/028809.html" target="_blank">http://mailman.nginx.org/pipermail/nginx/2011-August/028809.html</a><br>
<br>
applied?<br>
<div class="im"><br>
> #3 0x000000000041f76e in ngx_worker_process_cycle (cycle=0x21f1990,<br>
> data=<value optimized out>) at src/os/unix/ngx_process_cycle.c:800<br>
> #4 0x000000000041e16b in ngx_spawn_process (cycle=0x21f1990,<br>
> proc=0x41f69d <ngx_worker_process_cycle>, data=0x0, name=0x463f3d<br>
> "worker process", respawn=7) at src/os/unix/ngx_process.c:196<br>
> #5 0x000000000042008d in ngx_reap_children (cycle=0x21f1990) at<br>
> src/os/unix/ngx_process_cycle.c:617<br>
> #6 ngx_master_process_cycle (cycle=0x21f1990) at<br>
> src/os/unix/ngx_process_cycle.c:180<br>
> #7 0x0000000000406061 in main (argc=<value optimized out>, argv=<value<br>
> optimized out>) at src/core/nginx.c:405<br>
><br>
><br>
> (gdb) bt full<br>
> #0 ngx_http_upstream_handler (ev=0x7fc45735f8a8) at<br>
> src/http/ngx_http_upstream.c:915<br>
> c = 0x23b4160<br>
> r = 0x22a2780<br>
> ctx = <error reading variable ctx (Cannot access memory at<br>
> address 0x20)><br>
> u = 0x0<br>
<br>
</div>Could you please show results of the following gdb commands:<br>
<br>
fr 0<br>
p *ev<br>
p *((ngx_connection_t *) ev->data)<br>
<font color="#888888"><br>
<br>
Maxim Dounin<br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</div></div></blockquote></div><br>