upstream keepalive - call for testing

magicbear nginx-forum at nginx.us
Fri Aug 26 17:00:57 UTC 2011


I think is not your plugins problem. That is nginx core problem.
I using the original nginx/1.0.0 will continue to coredump.

but the dump position is not same.


gdb `which nginx` /var/www/ngx_coredump/core
GNU gdb (Ubuntu/Linaro 7.2-1ubuntu11) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show
copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/sbin/nginx...done.
[New Thread 22042]

warning: Can't read pathname for load map: 输入/输出错误.
Reading symbols from /lib/x86_64-linux-gnu/libpcre.so.3...(no debugging
symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/libpcre.so.3
Reading symbols from /lib/libssl.so.0.9.8...(no debugging symbols
found)...done.
Loaded symbols for /lib/libssl.so.0.9.8
Reading symbols from /lib/libcrypto.so.0.9.8...(no debugging symbols
found)...done.
Loaded symbols for /lib/libcrypto.so.0.9.8
Reading symbols from /lib/x86_64-linux-gnu/libdl.so.2...(no debugging
symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/libdl.so.2
Reading symbols from /lib/x86_64-linux-gnu/libz.so.1...(no debugging
symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/libz.so.1
Reading symbols from /usr/local/lib/libprofiler.so.0...done.
Loaded symbols for /usr/local/lib/libprofiler.so.0
Reading symbols from /lib/x86_64-linux-gnu/libc.so.6...(no debugging
symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/libc.so.6
Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols
found)...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Reading symbols from /usr/local/lib/libunwind.so.7...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/libunwind.so.7
Reading symbols from /usr/lib/x86_64-linux-gnu/libstdc++.so.6...(no
debugging symbols found)...done.
Loaded symbols for /usr/lib/x86_64-linux-gnu/libstdc++.so.6
Reading symbols from /lib/x86_64-linux-gnu/libm.so.6...(no debugging
symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/libm.so.6
Reading symbols from /lib/x86_64-linux-gnu/libgcc_s.so.1...(no debugging
symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/libgcc_s.so.1
Reading symbols from /lib/x86_64-linux-gnu/libnss_compat.so.2...(no
debugging symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/libnss_compat.so.2
Reading symbols from /lib/x86_64-linux-gnu/libnsl.so.1...(no debugging
symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/libnsl.so.1
Reading symbols from /lib/x86_64-linux-gnu/libnss_nis.so.2...(no
debugging symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/libnss_nis.so.2
Reading symbols from /lib/x86_64-linux-gnu/libnss_files.so.2...(no
debugging symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/libnss_files.so.2
Reading symbols from /lib/x86_64-linux-gnu/libnss_dns.so.2...(no
debugging symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/libnss_dns.so.2
Reading symbols from /lib/x86_64-linux-gnu/libresolv.so.2...(no
debugging symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/libresolv.so.2
Core was generated by `nginx:'.
Program terminated with signal 11, Segmentation fault.
#0  ngx_http_upstream_handler (ev=<value optimized out>) at
src/http/ngx_http_upstream.c:893
893         ctx = c->log->data;
(gdb) bt
#0  ngx_http_upstream_handler (ev=<value optimized out>) at
src/http/ngx_http_upstream.c:893
#1  0x0000000000419979 in ngx_event_expire_timers () at
src/event/ngx_event_timer.c:149
#2  0x00000000004195ab in ngx_process_events_and_timers (cycle=0x855b40)
at src/event/ngx_event.c:261
#3  0x000000000041f1de in ngx_worker_process_cycle (cycle=0x855b40,
data=<value optimized out>) at src/os/unix/ngx_process_cycle.c:800
#4  0x000000000041dbdb in ngx_spawn_process (cycle=0x855b40,
proc=0x41f10d <ngx_worker_process_cycle>, data=0x0, name=0x46275d
"worker process", respawn=-4) at src/os/unix/ngx_process.c:196
#5  0x000000000041e876 in ngx_start_worker_processes (cycle=0x855b40,
n=4, type=-4) at src/os/unix/ngx_process_cycle.c:360
#6  0x000000000041fe86 in ngx_master_process_cycle (cycle=0x855b40) at
src/os/unix/ngx_process_cycle.c:249
#7  0x0000000000405e91 in main (argc=<value optimized out>, argv=<value
optimized out>) at src/core/nginx.c:405
(gdb) backtrace full
#0  ngx_http_upstream_handler (ev=<value optimized out>) at
src/http/ngx_http_upstream.c:893
        c = 0x0
        r = 0x1505440
        ctx = <value optimized out>
        u = 0x0
#1  0x0000000000419979 in ngx_event_expire_timers () at
src/event/ngx_event_timer.c:149
        ev = 0x7f6549bcd5a8
        root = 0x7f65ef2ca4e0
        sentinel = 0x687500
#2  0x00000000004195ab in ngx_process_events_and_timers (cycle=0x855b40)
at src/event/ngx_event.c:261
        flags = 1
        timer = <value optimized out>
        delta = 10
#3  0x000000000041f1de in ngx_worker_process_cycle (cycle=0x855b40,
data=<value optimized out>) at src/os/unix/ngx_process_cycle.c:800
        i = <value optimized out>
        c = <value optimized out>
#4  0x000000000041dbdb in ngx_spawn_process (cycle=0x855b40,
proc=0x41f10d <ngx_worker_process_cycle>, data=0x0, name=0x46275d
"worker process", respawn=-4) at src/os/unix/ngx_process.c:196
        on = 1
        pid = 0
        s = 6
#5  0x000000000041e876 in ngx_start_worker_processes (cycle=0x855b40,
n=4, type=-4) at src/os/unix/ngx_process_cycle.c:360
        i = <value optimized out>
        ch = {command = 1, pid = 22041, slot = 5, fd = 5}
#6  0x000000000041fe86 in ngx_master_process_cycle (cycle=0x855b40) at
src/os/unix/ngx_process_cycle.c:249
        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 = 8170904}, it_value =
{tv_sec = 0, tv_usec = 0}}
        live = 1
        delay = 0
        ls = <value optimized out>
---Type <return> to continue, or q <return> to quit---
        ccf = 0x8562a0
#7  0x0000000000405e91 in main (argc=<value optimized out>, argv=<value
optimized out>) at src/core/nginx.c:405
        i = <value optimized out>
        log = 0x685320
        cycle = 0x7cad80
        init_cycle = {conf_ctx = 0x0, pool = 0x7ca240, log = 0x685320,
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 = 0x45ef76
"/etc/nginx/nginx.conf"}, conf_param = {len = 0, data = 0x0},
conf_prefix = {len = 11, data = 0x45ef76 "/etc/nginx/nginx.conf"},
          prefix = {len = 17, data = 0x45ef64 "/usr/local/nginx/"},
lock_file = {len = 0, data = 0x0}, hostname = {len = 0, data = 0x0}}
        ccf = <value optimized out>

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



More information about the nginx mailing list