ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

nginx reload -> segfault


  • To: nginx-ru@xxxxxxxxx
  • Subject: nginx reload -> segfault
  • From: "Craken" <nginx-forum@xxxxxxxx>
  • Date: Wed, 02 Jan 2013 08:05:35 -0500
  • Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tigger.jlkhosting.com; s=x; h=Date:Sender:From:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To; bh=lH61r8cLT9zzzHIIyzafLVTEiouJ74qrGgkHAyoBUOI=; b=YOuvsASgJC2T/GT/5tiHHyWst2NAA/LgBwdiq89+ob4PWO5PArHtKvElw0VZaqgHaBgW3Rf3uZd5iVAVzgNweMF+rv3Fd/0EUUtbXi1BEoBm6NkswzYzbe7Od7SIDp2e;

Приветствую.
Сегодня нужно было добавить еще один 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:......................".

Posted at Nginx Forum: 
http://forum.nginx.org/read.php?21,234628,234628#msg-234628

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.