Welcome! Log In Create A New Profile

Advanced

Re: nginx & core dump 2

Maxim Dounin
October 08, 2012 04:14AM
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@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

nginx & core dump 2

ak84 October 05, 2012 12:40PM

Re: nginx & core dump 2

ak84 October 06, 2012 09:49AM

Re: nginx & core dump 2

Maxim Dounin October 08, 2012 04:14AM

Re: nginx & core dump 2

ak84 October 08, 2012 04:44AM

Re: nginx & core dump 2

VBart October 08, 2012 05:10AM

Re: nginx & core dump 2

Maxim Dounin October 08, 2012 06:22AM

Re: nginx & core dump 2

ak84 October 12, 2012 03:07AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 247
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready