Opened 7 years ago

Closed 7 years ago

#1205 closed defect (duplicate)

rare crash fix

Reported by: sss123next@… Owned by:
Priority: minor Milestone:
Component: nginx-core Version: 1.11.x
Keywords: Cc:
uname -a: all
nginx -V: nginx -V
nginx version: nginx/1.11.9
built with OpenSSL 1.0.2k 26 Jan 2017
TLS SNI support enabled
configure arguments: --prefix=/usr --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error_log --pid-path=/run/nginx.pid --lock-path=/run/lock/nginx.lock --with-cc-opt=-I/usr/include --with-ld-opt=-L/usr/lib64 --http-log-path=/var/log/nginx/access_log --http-client-body-temp-path=/var/lib/nginx/tmp/client --http-proxy-temp-path=/var/lib/nginx/tmp/proxy --http-fastcgi-temp-path=/var/lib/nginx/tmp/fastcgi --http-scgi-temp-path=/var/lib/nginx/tmp/scgi --http-uwsgi-temp-path=/var/lib/nginx/tmp/uwsgi --with-compat --with-file-aio --with-http_v2_module --with-pcre --with-pcre-jit --with-threads --without-http_geo_module --without-http_scgi_module --without-http_uwsgi_module --with-http_realip_module --add-module=external_module/modsecurity-2.9.1/nginx/modsecurity --with-http_ssl_module --without-stream_access_module --without-stream_geo_module --without-stream_limit_conn_module --without-stream_map_module --without-stream_return_module --without-stream_split_clients_module --without-stream_upstream_hash_module --without-stream_upstream_least_conn_module --without-stream_upstream_zone_module --without-mail_imap_module --without-mail_pop3_module --without-mail_smtp_module --user=nginx --group=nginx

Description

diff -Naur nginx-1.11.9_orig/src/http/ngx_http_upstream.c nginx-1.11.9/src/http/ngx_http_upstream.c
--- nginx-1.11.9_orig/src/http/ngx_http_upstream.c 2017-02-17 08:20:38.554021487 +0300
+++ nginx-1.11.9/src/http/ngx_http_upstream.c 2017-02-17 08:24:13.168034819 +0300
@@ -5037,7 +5037,7 @@

{

ngx_table_elt_t *ho;


  • if (r->upstream->conf->force_ranges) {

+ if (r->upstream->conf && r->upstream->conf->force_ranges) {

return NGX_OK;

}

Change History (2)

comment:1 by Maxim Dounin, 7 years ago

This seems to be duplicate of #690 (a bug in modsecurity). Are you able to reproduce the crash without modsecurity?

comment:2 by Maxim Dounin, 7 years ago

Resolution: duplicate
Status: newclosed

Feedback timeout.

Note: See TracTickets for help on using tickets.