Opened 11 years ago

Closed 11 years ago

#252 closed defect (fixed)

nginx child exited on signal 11 when aio enabled

Reported by: openid.yandex.ru/olevole Owned by: somebody
Priority: minor Milestone:
Component: nginx-core Version: 1.3.x
Keywords: aio Cc:
uname -a: FreeBSD s39.my.domain 9.1-RC3 FreeBSD 9.1-RC3 #0 r243333: Tue Nov 20 20:05:45 MSK 2012
nginx -V: nginx version: nginx/1.3.8
TLS SNI support enabled
configure arguments: --prefix=/usr/local/etc/nginx --with-cc-opt='-I /usr/local/include' --with-ld-opt='-L /usr/local/lib' --conf-path=/usr/local/etc/nginx/nginx.conf --sbin-path=/usr/local/sbin/nginx --pid-path=/var/run/nginx.pid --error-log-path=/var/log/nginx-error.log --user=www --group=www --with-debug --with-file-aio --with-ipv6 --http-client-body-temp-path=/var/tmp/nginx/client_body_temp --http-fastcgi-temp-path=/var/tmp/nginx/fastcgi_temp --http-proxy-temp-path=/var/tmp/nginx/proxy_temp --http-scgi-temp-path=/var/tmp/nginx/scgi_temp --http-uwsgi-temp-path=/var/tmp/nginx/uwsgi_temp --http-log-path=/var/log/nginx-access.log --with-http_geoip_module --with-http_gzip_static_module --with-http_realip_module --with-http_stub_status_module --with-pcre --with-http_ssl_module

Description

on one of servers of an identical configuration nginx child exited on signal 11 when AIO enabled and got request via httpS scheme (SSL only)

The problem on this equipment was also on FreeBSD-9.1-RC1/amd64

Ive found similar PR for Linux: http://mailman.nginx.org/pipermail/nginx-ru/2011-November/044626.html but disabling directio 512 doesn't help

gdb -c ./nginx.core /usr/local/sbin/nginx
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...
Core was generated by `nginx'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libcrypt.so.5...done.
Loaded symbols for /lib/libcrypt.so.5
Reading symbols from /usr/local/lib/libpcre.so.1...done.
Loaded symbols for /usr/local/lib/libpcre.so.1
Reading symbols from /usr/local/lib/libssl.so.8...done.
Loaded symbols for /usr/local/lib/libssl.so.8
Reading symbols from /usr/local/lib/libcrypto.so.8...done.
Loaded symbols for /usr/local/lib/libcrypto.so.8
Reading symbols from /lib/libz.so.6...done.
Loaded symbols for /lib/libz.so.6
Reading symbols from /usr/local/lib/libGeoIP.so.5...done.
Loaded symbols for /usr/local/lib/libGeoIP.so.5
Reading symbols from /lib/libc.so.7...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /lib/libthr.so.3...done.
Loaded symbols for /lib/libthr.so.3
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0 0x0000000000000000 in ?? ()
[New Thread 802007400 (LWP 100645/<unknown>)]
[New LWP 100623]
(gdb) bt
#0 0x0000000000000000 in ?? ()
#1 0x000000000046351f in ngx_http_copy_aio_event_handler (ev=0x80209ab68)

at src/http/ngx_http_copy_filter_module.c:239

#2 0x000000000043e65d in ngx_file_aio_event_handler (ev=0x80209ab68) at src/os/unix/ngx_file_aio_read.c:206
#3 0x000000000043dbf0 in ngx_kqueue_process_events (cycle=0x802102050, timer=500, flags=1)

at src/event/modules/ngx_kqueue_module.c:684

#4 0x000000000042cc4c in ngx_process_events_and_timers (cycle=0x802102050) at src/event/ngx_event.c:247
#5 0x000000000043a284 in ngx_worker_process_cycle (cycle=0x802102050, data=0x0)

at src/os/unix/ngx_process_cycle.c:810

#6 0x0000000000437281 in ngx_spawn_process (cycle=0x802102050, proc=0x43a090 <ngx_worker_process_cycle>, data=0x0,

name=0x4cd6f1 "worker process", respawn=12) at src/os/unix/ngx_process.c:198

#7 0x0000000000439cb2 in ngx_reap_children (cycle=0x802102050) at src/os/unix/ngx_process_cycle.c:624
#8 0x0000000000438a06 in ngx_master_process_cycle (cycle=0x802102050) at src/os/unix/ngx_process_cycle.c:181
#9 0x0000000000407143 in main (argc=1, argv=0x7fffffffdd60) at src/core/nginx.c:412
(gdb) l
412 ngx_master_process_cycle(cycle);
413 }
414
415 return 0;
416 }
417
418
419 static ngx_int_t
420 ngx_add_inherited_sockets(ngx_cycle_t *cycle)
421 {
(gdb) quit

Change History (5)

comment:1 by openid.yandex.ru/olevole, 11 years ago

comment:2 by Sergey Budnevitch, 11 years ago

Do you build nginx with SPDY support/patch?

comment:3 by openid.yandex.ru/olevole, 11 years ago

Yes, SPDY is enabled. Without SPDY module all fine.

comment:4 by openid.yandex.ru/olevole, 11 years ago

update: not reproduce for nginx 1.3.14, SPDY_revision 67, FreeBSD 9.1-RELEASE/amd64. Please close ticket.

comment:5 by Sergey Kandaurov, 11 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.