Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: nginx & core dump 2
Hello!
On Fri, Oct 05, 2012 at 02:55:11PM -0400, ak84 wrote:
> Добрый вечер.
> В продолжение темы http://forum.nginx.org/read.php?21,230962
> Перевёл nginx на обновлённую ОС: FreeBSD 8.2-RELEASE-p3, обновил nginx ( из
> портов):
> nginx version: nginx/1.2.4
> 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 --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
> --add-module=/usr/ports/www/nginx/work/agentzh-headers-more-nginx-module-6586984
> --with-http_image_filter_module
> --add-module=/usr/ports/www/nginx/work/yaoweibin-ngx_http_substitutions_filter_module-27a01b3
> --with-http_stub_status_module --with-pcre --with-http_ssl_module
>
> В dmesg вижу:
> pid 31627 (nginx), uid 80: exited on signal 11 (core dumped)
> Смотрю core-файл:
[...]
> #0 0x00000000004690ce in ngx_http_upstream_init_request (r=0x801f7f600) at
> src/http/ngx_http_upstream.c:639
> 639 if (uscf->peer.init(r, uscf) != NGX_OK) {
[...]
> uscf = (ngx_http_upstream_srv_conf_t *) 0x0
[...]
Найти в конфиге конструкцию вида
location /crash {
set $true 1;
if ($true) {
# fastcgi_pass here
fastcgi_pass 127.0.0.1:9000;
}
if ($true) {
# no handler here
}
}
и изжить. Подробнее см. http://wiki.nginx.org/IfIsEvil, это
четвёртый по счёту пример.
--
Maxim Dounin
http://nginx.com/support.html
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru
|