Hello, tested for 2 days, the segmentation failure frequence is decreased, but sometime still will dead.
Here is the coredump information. It seems appear too at official without patch version.
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 14510]
warning: Can't read pathname for load map: 输入/输出错误.
Reading symbols from /lib/x86_64-linux-gnu/libpthread.so.0...(no debugging symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/libpthread.so.0
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 0x000000000045bd99 in ngx_http_upstream_handler (ev=0x7f99438901e8) at src/http/ngx_http_upstream.c:921
921 u->write_event_handler(r, u);
(gdb) bt
#0 0x000000000045bd99 in ngx_http_upstream_handler (ev=0x7f99438901e8) at src/http/ngx_http_upstream.c:921
#1 0x0000000000427839 in ngx_event_expire_timers () at src/event/ngx_event_timer.c:149
#2 0x0000000000425a04 in ngx_process_events_and_timers (cycle=0x12ba140) at src/event/ngx_event.c:261
#3 0x000000000043068c in ngx_worker_process_cycle (cycle=0x12ba140, data=0x0) at src/os/unix/ngx_process_cycle.c:800
#4 0x000000000042d993 in ngx_spawn_process (cycle=0x12ba140, proc=0x430509 <ngx_worker_process_cycle>, data=0x0, name=0x49c6a0 "worker process", respawn=8) at src/os/unix/ngx_process.c:196
#5 0x0000000000430132 in ngx_reap_children (cycle=0x12ba140) at src/os/unix/ngx_process_cycle.c:617
#6 0x000000000042f1da in ngx_master_process_cycle (cycle=0x12ba140) at src/os/unix/ngx_process_cycle.c:180
#7 0x00000000004054b9 in main (argc=1, argv=0x7fff33e74ef8) at src/core/nginx.c:405
(gdb) backtrace full
#0 0x000000000045bd99 in ngx_http_upstream_handler (ev=0x7f99438901e8) at src/http/ngx_http_upstream.c:921
c = 0x7f9943a4f010
r = 0x11aee20
ctx = 0x11b01e0
u = 0x0
#1 0x0000000000427839 in ngx_event_expire_timers () at src/event/ngx_event_timer.c:149
ev = 0x7f99438901e8
node = 0x7f9943890210
root = 0x7f99e91baf08
sentinel = 0x6c2f60
#2 0x0000000000425a04 in ngx_process_events_and_timers (cycle=0x12ba140) at src/event/ngx_event.c:261
flags = 1
timer = 5
delta = 5
#3 0x000000000043068c in ngx_worker_process_cycle (cycle=0x12ba140, data=0x0) at src/os/unix/ngx_process_cycle.c:800
i = 0
c = 0x7fff33e74ef0
#4 0x000000000042d993 in ngx_spawn_process (cycle=0x12ba140, proc=0x430509 <ngx_worker_process_cycle>, data=0x0, name=0x49c6a0 "worker process", respawn=8) at src/os/unix/ngx_process.c:196
on = 1
pid = 0
s = 8
#5 0x0000000000430132 in ngx_reap_children (cycle=0x12ba140) at src/os/unix/ngx_process_cycle.c:617
i = 8
n = 13
live = 1
ch = {command = 2, pid = 1944, slot = 8, fd = -1}
ccf = 0x6c26be
#6 0x000000000042f1da in ngx_master_process_cycle (cycle=0x12ba140) at src/os/unix/ngx_process_cycle.c:180
title = 0x1282de6 ""
p = 0x1282dfa ""
size = 21
i = 1
n = 11215018668083
sigio = 0
set = {__val = {0 <repeats 16 times>}}
itv = {it_interval = {tv_sec = 0, tv_usec = 0}, it_value = {tv_sec = 0, tv_usec = 6}}
live = 1
delay = 0
ls = 0x0
ccf = 0x12ba8a0
#7 0x00000000004054b9 in main (argc=1, argv=0x7fff33e74ef8) at src/core/nginx.c:405
i = 47
log = 0x6c0d60
cycle = 0x11a1d90
init_cycle = {conf_ctx = 0x0, pool = 0x11a1240, log = 0x6c0d60, new_log = {log_level = 0, file = 0x0, connection = 0, handler = 0, data = 0x0, action = 0x0}, files = 0x0, free_connections = 0x0, free_connection_n = 0,
---Type <return> to continue, or q <return> to quit---
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 = 0x49977e "/etc/nginx/nginx.conf"}, conf_param = {len = 0, data = 0x0},
conf_prefix = {len = 11, data = 0x49977e "/etc/nginx/nginx.conf"}, prefix = {len = 17, data = 0x49976c "/usr/local/nginx/"}, lock_file = {len = 0, data = 0x0}, hostname = {len = 0, data = 0x0}}
ccf = 0x11a2c90