nginx 1.1.15: crash

Валентин Бартенев ne на vbart.ru
Пт Фев 17 14:40:14 UTC 2012


On Friday 17 February 2012 18:33:42 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-h
> ttp-concat-c37eadc
> --add-module=/var/tmp/portage/www-servers/nginx-1.1.15/work/masterzen-ngin
> x-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}
> #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
> #4  0x00000000004479ad in ngx_http_upstream_handler (ev=0x7f10f88c47c8)
>     at src/http/ngx_http_upstream.c:935
>         c = 0x7f10f8f45d90
>         r = 0x1cbd5b0
>         ctx = <optimized out>
>         u = 0x1db4870
> #5  0x0000000000426d79 in ngx_epoll_process_events (cycle=0x1bf1440,
>     timer=<optimized out>, flags=<optimized out>)
>     at src/event/modules/ngx_epoll_module.c:679
>         events = <optimized out>
>         revents = 5
>         instance = <optimized out>
>        i = <optimized out>
>         level = <optimized out>
>         err = <optimized out>
>         rev = 0x7f10f88c47c8
>         wev = <optimized out>
>         queue = <optimized out>
>         c = 0x7f10f8f45e50
> #6  0x000000000041da56 in ngx_process_events_and_timers
> (cycle=0x1bf1440)
>     at src/event/ngx_event.c:246
>         flags = <optimized out>
>         timer = <optimized out>
>         delta = 1329485422940
> #7  0x0000000000424a35 in ngx_worker_process_cycle (cycle=0x1bf1440,
>     data=<optimized out>) at src/os/unix/ngx_process_cycle.c:802
>         i = <optimized out>
>         c = <optimized out>
> #8  0x0000000000423266 in ngx_spawn_process (cycle=0x1bf1440,
>     proc=0x424960 <ngx_worker_process_cycle>, data=0x0,
>     name=0x4704b5 "worker process", respawn=-3) at
> src/os/unix/ngx_process.c:198
>         on = 1
>         pid = 0
>         s = <optimized out>
> #9  0x0000000000424f79 in ngx_start_worker_processes (cycle=0x1bf1440,
> n=4,
>     type=-3) at src/os/unix/ngx_process_cycle.c:361
>         i = <optimized out>
>         ch = {command = 1, pid = 6123, slot = 0, fd = 3}
> #10 0x0000000000425621 in ngx_master_process_cycle (cycle=0x1bf1440)
>     at src/os/unix/ngx_process_cycle.c:137
>         title = 0x1d58490 "master process /usr/sbin/nginx -c
> /etc/nginx/nginx.conf"
>         p = <optimized out>
>         size = 56
>         i = 3
>         n = <optimized out>
>         sigio = <optimized out>
>         set = {__val = {0 <repeats 16 times>}}
>         itv = {it_interval = {tv_sec = 0, tv_usec = 29299800}, it_value
> = {
>             tv_sec = 0, tv_usec = 0}}
>         live = <optimized out>
>         delay = <optimized out>
>         ls = <optimized out>
>         ccf = 0x1bf23b0
> #11 0x000000000040751d in main (argc=<optimized out>, argv=<optimized
> out>)
>     at src/core/nginx.c:410
>         i = <optimized out>
>         pid = 0
>         s = <optimized out>
> 
> 
> У меня много виртуальных хвостов, и это
> production site.  Надеюсь, что проблема и так
> ясна и можно обойтись без debug лога, ибо я
> не знаю на каком из сайтов происходит
> крэш.
> 

Первым делом стоит собрать без сторонних модулей.

--
Валентин Бартенев



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