nginx 1.1.15: crash

Maxim Dounin mdounin на mdounin.ru
Пт Фев 17 18:17:00 UTC 2012


Hello!

On Fri, Feb 17, 2012 at 09:33:42AM -0500, locojohn wrote:

> nginx version: nginx/1.1.15
> TLS SNI support enabled
> configure arguments: --prefix=/usr --sbin-path=/usr/sbin/nginx
> --conf-path=/etc/nginx/nginx.conf
> --error-log-path=/var/log/nginx/error_log --pid-path=/var/run/nginx.pid
> --lock-path=/var/lock/nginx.lock --user=nginx --group=nginx
> --with-cc-opt=-I/usr/include --with-ld-opt=-L/usr/lib
> --http-log-path=/var/log/nginx/access_log
> --http-client-body-temp-path=/var/tmp/nginx/client
> --http-proxy-temp-path=/var/tmp/nginx/proxy
> --http-fastcgi-temp-path=/var/tmp/nginx/fastcgi
> --http-scgi-temp-path=/var/tmp/nginx/scgi
> --http-uwsgi-temp-path=/var/tmp/nginx/uwsgi --with-file-aio
> --with-aio_module --with-debug --with-pcre
> --without-http_auth_basic_module --without-http_geo_module
> --without-http_limit_req_module --without-http_memcached_module
> --without-http_referer_module --without-http_scgi_module
> --without-http_ssi_module --without-http_split_clients_module
> --without-http_userid_module --without-http_uwsgi_module
> --with-http_flv_module --with-http_geoip_module
> --with-http_stub_status_module --with-http_realip_module
> --add-module=/var/tmp/portage/www-servers/nginx-1.1.15/work/perusio-nginx-http-concat-c37eadc
> --add-module=/var/tmp/portage/www-servers/nginx-1.1.15/work/masterzen-nginx-upload-progress-module-c7c663f
> --with-http_ssl_module --without-mail_imap_module
> --without-mail_pop3_module --without-mail_smtp_module
> 
> 
> gdb:
> 
> Program terminated with signal 11, Segmentation fault.
> #0  ngx_event_pipe_write_chain_to_temp_file (p=0x1cc9038)
>     at src/event/ngx_event_pipe.c:709
> 709	src/event/ngx_event_pipe.c: No such file or directory.
> 
> backtrace:
> 
> #0  ngx_event_pipe_write_chain_to_temp_file (p=0x1cc9038)
>     at src/event/ngx_event_pipe.c:709
>         size = 0
>         bsize = <optimized out>
>         n = <optimized out>
>         b = <optimized out>
>         prev_last_shadow = 1
>         cl = 0x0
>         tl = <optimized out>
>         next = <optimized out>
>         out = 0x0
>         ll = 0x0
>         last_out = <optimized out>
>         last_free = <optimized out>
>         fl = {buf = 0x7fff7cb3cba0, next = 0x7fff7cbffa0c}

Что показывает

fr 0
p *p

?

> #1  0x00000000004203fb in ngx_event_pipe_read_upstream (p=0x1cc9038)
>     at src/event/ngx_event_pipe.c:227
>         chain = <optimized out>
>         ln = <optimized out>
>         n = <optimized out>
>         size = <optimized out>
>         rc = <optimized out>
>         b = <optimized out>
>         cl = <optimized out>
> #2  ngx_event_pipe (p=0x1cc9038, do_write=<optimized out>)
>     at src/event/ngx_event_pipe.c:49
>         rc = 0
>         rev = <optimized out>
>         wev = <optimized out>
> #3  0x000000000044786e in ngx_http_upstream_process_upstream
> (r=0x1cbd5b0, 
>     u=0x1db4870) at src/http/ngx_http_upstream.c:2641
>         c = 0x7f10f8f45e50

И здесь:

fr 3
p *r
p *u

Из "p *r" будет видно, в каком именно хосте случилась проблема.  
Нужен его конфиг (и общие настройки, в него наслудующиеся, if any).

Maxim Dounin



Подробная информация о списке рассылки nginx-ru