upstream keepalive - call for testing

magicbear nginx-forum at nginx.us
Sun Sep 4 17:33:59 UTC 2011


Hello , when run for 5 days, today have 2 segment failure.

2011/09/04 12:00:47 [alert] 32147#0: worker process 8496 exited on
signal 11 (core dumped)
2011/09/04 12:17:32 [alert] 8497#0: ignore long locked inactive cache
entry 57c7c6c612a651727b880a1c9a2c7d2d, count:1
2011/09/04 12:21:31 [alert] 32147#0: worker process 19185 exited on
signal 11 (core dumped)




Core was generated by `nginx:'.
Program terminated with signal 11, Segmentation fault.
#0  ngx_http_upstream_handler (ev=0x7fc45735f8a8) at
src/http/ngx_http_upstream.c:915
915	    ctx->current_request = r;
(gdb) bt
#0  ngx_http_upstream_handler (ev=0x7fc45735f8a8) at
src/http/ngx_http_upstream.c:915
#1  0x0000000000419e95 in ngx_event_expire_timers () at
src/event/ngx_event_timer.c:149
#2  0x0000000000419ac7 in ngx_process_events_and_timers
(cycle=0x21f1990) at src/event/ngx_event.c:261
#3  0x000000000041f76e in ngx_worker_process_cycle (cycle=0x21f1990,
data=<value optimized out>) at src/os/unix/ngx_process_cycle.c:800
#4  0x000000000041e16b in ngx_spawn_process (cycle=0x21f1990,
proc=0x41f69d <ngx_worker_process_cycle>, data=0x0, name=0x463f3d
"worker process", respawn=7) at src/os/unix/ngx_process.c:196
#5  0x000000000042008d in ngx_reap_children (cycle=0x21f1990) at
src/os/unix/ngx_process_cycle.c:617
#6  ngx_master_process_cycle (cycle=0x21f1990) at
src/os/unix/ngx_process_cycle.c:180
#7  0x0000000000406061 in main (argc=<value optimized out>, argv=<value
optimized out>) at src/core/nginx.c:405





(gdb) bt full
#0  ngx_http_upstream_handler (ev=0x7fc45735f8a8) at
src/http/ngx_http_upstream.c:915
        c = 0x23b4160
        r = 0x22a2780
        ctx = <error reading variable ctx (Cannot access memory at
address 0x20)>
        u = 0x0
#1  0x0000000000419e95 in ngx_event_expire_timers () at
src/event/ngx_event_timer.c:149
        ev = 0x7fc45735f8a8
        root = 0x7fc4574ffa30
        sentinel = 0x689560
#2  0x0000000000419ac7 in ngx_process_events_and_timers
(cycle=0x21f1990) at src/event/ngx_event.c:261
        flags = 1
        timer = <value optimized out>
        delta = 21
#3  0x000000000041f76e in ngx_worker_process_cycle (cycle=0x21f1990,
data=<value optimized out>) at src/os/unix/ngx_process_cycle.c:800
        i = <value optimized out>
        c = <value optimized out>
#4  0x000000000041e16b in ngx_spawn_process (cycle=0x21f1990,
proc=0x41f69d <ngx_worker_process_cycle>, data=0x0, name=0x463f3d
"worker process", respawn=7) at src/os/unix/ngx_process.c:196
        on = 1
        pid = 0
        s = 7
#5  0x000000000042008d in ngx_reap_children (cycle=0x21f1990) at
src/os/unix/ngx_process_cycle.c:617
        i = <value optimized out>
        live = <value optimized out>
        n = <value optimized out>
        ch = {command = 2, pid = 8496, slot = 7, fd = -1}
        ccf = <value optimized out>
#6  ngx_master_process_cycle (cycle=0x21f1990) at
src/os/unix/ngx_process_cycle.c:180
        title = <value optimized out>
        p = <value optimized out>
        size = <value optimized out>
        i = <value optimized out>
        n = <value optimized out>
        sigio = 0
        set = {__val = {0 <repeats 16 times>}}
        itv = {it_interval = {tv_sec = 0, tv_usec = 35114632}, it_value
= {tv_sec = 0, tv_usec = 32146}}
        live = <value optimized out>
        delay = 0
        ls = <value optimized out>
        ccf = 0x21f2188
#7  0x0000000000406061 in main (argc=<value optimized out>, argv=<value
optimized out>) at src/core/nginx.c:405
        i = <value optimized out>
        log = 0x687380
        cycle = 0x217ce70
        init_cycle = {conf_ctx = 0x0, pool = 0x217c240, log = 0x687380,
new_log = {log_level = 0, file = 0x0, connection = 0, handler = 0, data
= 0x0, action = 0x0}, files = 0x0, 
          free_connections = 0x0, free_connection_n = 0,
reusable_connections_queue = {prev = 0x0, next = 0x0}, listening = {elts
= 0x0, nelts = 0, size = 0, nalloc = 0, pool = 0x0}, 
          pathes = {elts = 0x0, nelts = 0, size = 0, nalloc = 0, pool =
0x0}, open_files = {last = 0x0, part = {elts = 0x0, nelts = 0, next =
0x0}, size = 0, nalloc = 0, pool = 0x0}, 
          shared_memory = {last = 0x0, part = {elts = 0x0, nelts = 0,
next = 0x0}, size = 0, nalloc = 0, pool = 0x0}, connection_n = 0,
files_n = 0, connections = 0x0, read_events = 0x0, 
          write_events = 0x0, old_cycle = 0x0, conf_file = {len = 21,
data = 0x4606b6 "/etc/nginx/nginx.conf"}, conf_param = {len = 0, data =
0x0}, conf_prefix = {len = 11, 
            data = 0x4606b6 "/etc/nginx/nginx.conf"}, prefix = {len =
17, data = 0x4606a4 "/usr/local/nginx/"}, lock_file = {len = 0, data =
0x0}, hostname = {len = 0, data = 0x0}}
---Type <return> to continue, or q <return> to quit---
        ccf = <value optimized out>

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,213207,214739#msg-214739



More information about the nginx mailing list