Welcome! Log In Create A New Profile

Advanced

nginx reload -> segfault

January 02, 2013 08:05AM
Приветствую.
Сегодня нужно было добавить еще один server {...}, и по привычке выполнил не перезапуск а переконфигурирование (ч-з reload), в ответ получил "ОК", но сайты "отвалились".

Вот что в dmesg:
nginx[20921]: segfault at 7f3a1c25f5e8 ip 00007f3a1c25f5e8 sp 00007fff2cd87c28 error 15
nginx[20920] trap stack segment ip:7f3a1bf491cd sp:7fff2cd87a50 error:0
nginx[21033] general protection ip:7f3a1bf48d43 sp:7fff2cd87b80 error:0 in libc-2.12.so[7f3a1bed0000+189000]
nginx[20940] trap stack segment ip:7f3a1bf491cd sp:7fff2cd87a30 error:0
nginx[20997] general protection ip:7f3a1bf48d43 sp:7fff2cd87630 error:0 in libc-2.12.so[7f3a1bed0000+189000]
nginx[21052] general protection ip:7f3a1bf47e71 sp:7fff2cd86ba0 error:0 in libc-2.12.so[7f3a1bed0000+189000]
nginx[21006] general protection ip:7f3a1bf48d43 sp:7fff2cd87b80 error:0 in libc-2.12.so[7f3a1bed0000+189000]
nginx[21035] general protection ip:7f3a1bf47e71 sp:7fff2cd86ba0 error:0 in libc-2.12.so[7f3a1bed0000+189000]
nginx[20988] general protection ip:7f3a1bf47e71 sp:7fff2cd86ba0 error:0 in libc-2.12.so[7f3a1bed0000+189000]
nginx[21064] general protection ip:7f3a1bf47e71 sp:7fff2cd86b30 error:0 in libc-2.12.so[7f3a1bed0000+189000]
nginx[21066] general protection ip:7f3a1bf59061 sp:7fff2cd86b28 error:0 in libc-2.12.so[7f3a1bed0000+189000]
nginx[20953] general protection ip:7f3a1bf47e71 sp:7fff2cd86ba0 error:0 in libc-2.12.so[7f3a1bed0000+189000]
nginx[20923] general protection ip:7f3a1bf47e71 sp:7fff2cd86b50 error:0 in libc-2.12.so[7f3a1bed0000+189000]
nginx[20971] general protection ip:7f3a1bf47e71 sp:7fff2cd86ba0 error:0 in libc-2.12.so[7f3a1bed0000+189000]
__ratelimit: 1 callbacks suppressed
nginx[21232]: segfault at 19 ip 0000000000449deb sp 00007fff5982d660 error 4 in nginx[400000+e1000]
nginx[23181]: segfault at 0 ip 00007f52d5dfbf3c sp 00007fff5982e388 error 4 in libc-2.12.so[7f52d5d81000+189000]


В логах самого nginx'a следующие записи:
2013/01/02 10:36:02 [alert] 20121#0: worker process 21042 exited on signal 11
*** glibc detected *** nginx: worker process: free(): corrupted unsorted chunks: 0x000000000210b200 ***
*** glibc detected *** nginx: worker process: malloc(): memory corruption: 0x000000000207c200 ***


Nginx установлен из репозиториев:
root#beryllium[2]/var/log/nginx>nginx -V
nginx version: nginx/1.3.10
built by gcc 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC)
TLS SNI support enabled
configure arguments: --user=nginx --group=nginx --prefix=/usr/share/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/lib/nginx/tmp/client_body --http-proxy-temp-path=/var/lib/nginx/tmp/proxy --http-fastcgi-temp-path=/var/lib/nginx/tmp/fastcgi --http-uwsgi-temp-path=/var/lib/nginx/tmp/uwsgi --http-scgi-temp-path=/var/lib/nginx/tmp/scgi --pid-path=/var/run/nginx.pid --lock-path=/var/lock/subsys/nginx --with-http_secure_link_module --with-http_random_index_module --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gzip_static_module --with-http_degradation_module --with-http_stub_status_module --with-http_perl_module --with-http_geoip_module --with-mail --with-mail_ssl_module --with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' --with-ipv6 --with-file-aio --add-module=/builddir/build/BUILD/nginx-1.3.10/nginx-upstream-fair --add-module=/builddir/build/BUILD/nginx-1.3.10/nginx-upload-progress-module --add-module=/builddir/build/BUILD/nginx-1.3.10/mod_zip-1.1.6 --add-module=/builddir/build/BUILD/nginx-1.3.10/ngx_http_auth_pam_module-1.2 --add-module=/builddir/build/BUILD/nginx-1.3.10/nginx-upload-module-2.2 --add-module=/builddir/build/BUILD/nginx-1.3.10/nginx-rtmp-module-master



ОС: Scientific Linux release 6.3 (Carbon)

После "сбоя" пришлось немедленно убить nginx (ч-з killall -9) и запустить заново, потому что при попытке выполнить restart скрипт тупо висел на этапе "Stopping nginx:......................".
Subject Author Posted

nginx reload -> segfault

Craken January 02, 2013 08:05AM

Re: nginx reload -> segfault

Craken January 02, 2013 08:20AM

Re: nginx reload -> segfault

Валентин Бартенев January 02, 2013 09:02AM

Re: nginx reload -> segfault

Alexander Moskalenko January 02, 2013 09:38AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 112
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready