/var/log/messages里报错
May 6 14:51:56 nginx kernel: nginx[17969]: segfault at 0000000000000000 rip 00000000004615fc rsp 00007fff46e93420 error 4
May 6 14:53:32 nginx kernel: nginx[16060]: segfault at 0000000000000000 rip 00000000004615fc rsp 00007fff46e93420 error 4
May 6 14:56:46 nginx kernel: nginx[17970]: segfault at 0000000000000000 rip 00000000004615fc rsp 00007fff46e93490 error 4
error里的日志,过一阵就出现
2013/05/06 14:59:17 [notice] 23223#0: signal 17 (SIGCHLD) received
2013/05/06 14:59:17 [alert] 23223#0: worker process 18206 exited on signal 11 (core dumped)
2013/05/06 14:59:17 [notice] 23223#0: start worker process 20741
2013/05/06 14:59:17 [notice] 23223#0: signal 29 (SIGIO) received
2013/05/06 14:59:21 [alert] 18963#0: *147874 http request count is zero while closing request, client: 118.195.65.91, server:
0.0.0.0:802013/05/06 14:59:21 [alert] 18963#0: *147864 http request count is zero while closing request, client: 118.195.65.91, server:
0.0.0.0:80GDB信息
warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7fffe4bfd000
Core was generated by `nginx: worker process '.
Program terminated with signal 11, Segmentation fault.
#0 0x0000000000462a2e in ngx_http_finalize_request (r=0xb299470, rc=-4) at src/http/ngx_http_request.c:1945
1945 ngx_log_debug5(NGX_LOG_DEBUG_HTTP, c->log, 0,
(gdb) bt
#0 0x0000000000462a2e in ngx_http_finalize_request (r=0xb299470, rc=-4) at src/http/ngx_http_request.c:1945
#1 0x0000000000455066 in ngx_http_core_content_phase (r=0xb299470, ph=0xb2e2060) at src/http/ngx_http_core_module.c:1408
#2 0x0000000000453b99 in ngx_http_core_run_phases (r=0xb299470) at src/http/ngx_http_core_module.c:888
#3 0x0000000000462963 in ngx_http_run_posted_requests (c=0x2b9136a3cd90) at src/http/ngx_http_request.c:1908
#4 0x0000000000479320 in ngx_http_upstream_handler (ev=0x2b9137cfd898) at src/http/ngx_http_upstream.c:953
#5 0x00000000004491f6 in ngx_epoll_process_events (cycle=0xb291360, timer=500, flags=1) at src/event/modules/ngx_epoll_module.c:683
#6 0x00000000004398f4 in ngx_process_events_and_timers (cycle=0xb291360) at src/event/ngx_event.c:247
#7 0x0000000000446c74 in ngx_worker_process_cycle (cycle=0xb291360, data=0x7) at src/os/unix/ngx_process_cycle.c:813
#8 0x00000000004437cd in ngx_spawn_process (cycle=0xb291360, proc=0x446ac1 <ngx_worker_process_cycle>, data=0x7, name=0x5343ae "worker process", respawn=-3)
at src/os/unix/ngx_process.c:198
#9 0x0000000000445b0a in ngx_start_worker_processes (cycle=0xb291360, n=8, type=-3) at src/os/unix/ngx_process_cycle.c:364
#10 0x00000000004451b2 in ngx_master_process_cycle (cycle=0xb291360) at src/os/unix/ngx_process_cycle.c:136
#11 0x0000000000415319 in main (argc=3, argv=0x7fffe4bb5a68) at src/core/nginx.c:412
(gdb) p c->log
$1 = (ngx_log_t *) 0x0
nginx信息
[root@nginx cores]# nginx -V
nginx version: ngx_openresty/
1.2.7.6built by gcc 4.1.2 20080704 (Red Hat 4.1.2-54)
TLS SNI support disabled
configure arguments: --prefix=/etc/nginx/nginx --with-debug --with-cc-opt=-O0 --add-module=../ngx_devel_kit-0.2.18 --add-module=../echo-nginx-module-0.45 --add-module=../xss-nginx-module-0.03rc9 --add-module=../ngx_coolkit-0.2rc1 --add-module=../set-misc-nginx-module-0.22rc8 --add-module=../form-input-nginx-module-0.07 --add-module=../encrypted-session-nginx-module-0.03 --add-module=../srcache-nginx-module-0.19 --add-module=../ngx_lua-0.7.21 --add-module=../headers-more-nginx-module-0.19 --add-module=../array-var-nginx-module-0.03rc1 --add-module=../memc-nginx-module-0.13rc3 --add-module=../redis2-nginx-module-0.10 --add-module=../redis-nginx-module-0.3.6 --add-module=../auth-request-nginx-module-0.2 --add-module=../rds-json-nginx-module-0.12rc10 --add-module=../rds-csv-nginx-module-0.05rc2 --with-ld-opt=-Wl,-rpath,/etc/nginx/luajit/lib --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/opt/log/nginx/error.log --http-log-path=/opt/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/dev/shm/client_temp --http-proxy-temp-path=/dev/shm/proxy_temp --http-fastcgi-temp-path=/dev/shm/fastcgi_temp --user=nginx --group=nginx --with-http_ssl_module
不知道为什么会出现这个现象