nginx/0.8.21 exited on signal 11

Maxim Dounin mdounin at mdounin.ru
Wed Oct 28 13:18:10 MSK 2009


Hello!

On Wed, Oct 28, 2009 at 05:42:04AM -0400, Vladimir Korkodinov wrote:

> Имею проблему.
> OS: FreeBSD 7.2-STABLE #2: Thu Oct  8 07:38:01 YEKST 2009
> nginx -V
> nginx version: nginx/0.8.21
> TLS SNI support disabled
> 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-proxy-temp-path=/var/tmp/nginx/proxy_temp --http-fastcgi-temp-path=/var/tmp/nginx/fastcgi_temp --http-log-path=/var/log/nginx-access.log --with-http_addition_module --with-http_perl_module --with-http_realip_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-pcre
> 

[...]

> Как полечить?
> Какую еще информацию предоставить?
> 
> Очень активно проявляется на следующей конструкции.
> if ($country !~* "RU" ) { set $limit_rate    100k; }

Конструкция выглядит как-то так

        # nginx will SIGSEGV

        location /crash {

            set $true 1;

            if ($true) {
                # fastcgi_pass here
                fastcgi_pass  127.0.0.1:9000;
            }

            if ($true) {
                # no handler here
            }
        }

?

Эти грабли тут разложены давно, и это одна из причин по которым 
бьют по рукам за попытки использовать if().

Maxim Dounin





More information about the nginx-ru mailing list