﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	uname	nginx_version
791	Segfault in sub_filter after updating to 1.9.4	serguei.ivantsov@…		"nginx process crashes on every request after updating to 1.9.4
Reverting to 1.9.3 or earlier version fixes the issue.

After little debugging with gdb and core dumps I've found crash occurs in
src/http/modules/ngx_http_sub_filter_module.c:251
> ctx->saved.data = ngx_pnalloc(r->pool, ctx->tables->max_match_len - 1);
because ctx->tables is NULL"	defect	closed	critical		nginx-module	1.9.x	fixed	1.9.4 sub_filter segfault		Linux cedartrail 4.2.0-Atom #1 SMP Sat Sep 19 22:06:41 EEST 2015 x86_64 Intel(R) Atom(TM) CPU D2700 @ 2.13GHz GenuineIntel GNU/Linux	"nginx version: nginx/1.9.4
built by gcc 4.9.3 (Gentoo 4.9.3 p1.1, pie-0.6.2)
built with OpenSSL 1.0.2d 9 Jul 2015
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/libx32 --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-file-aio --with-debug --with-pcre --with-threads --without-http_memcached_module --without-http_scgi_module --without-http_ssi_module --without-http_split_clients_module --without-http_upstream_ip_hash_module --without-http_userid_module --without-http_uwsgi_module --with-http_geoip_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_spdy_module --with-http_stub_status_module --with-http_sub_module --with-http_realip_module --with-http_ssl_module --without-mail_imap_module --without-mail_pop3_module --without-mail_smtp_module --user='nginx --group=nginx' --with-debug"
