Bug 253710

Summary: www/nginx exited on signal 11 after update
Product: Ports & Packages Reporter: Dmytro Lavryk <root>
Component: Individual Port(s)Assignee: Jochen Neumeister <joneum>
Status: New ---    
Severity: Affects Only Me CC: joneum
Priority: --- Flags: bugzilla: maintainer-feedback? (joneum)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Screen of connection state
none
Screen of connection state
none
In 06:43 i`m install 1.18.0_50,2 and in 07:00 reinstall 1.18.0_46,2 none

Description Dmytro Lavryk 2021-02-20 04:31:16 UTC
Created attachment 222655 [details]
Screen of connection state

After last update nginx-1.18.0_46,2 to nginx-1.18.0_47,2 daemon crush with message in /var/log/messages:

Feb 20 05:45:57 XXX kernel: pid 52006 (nginx), jid 0, uid 80: exited on signal 11
Feb 20 05:45:58 XXX kernel: pid 34355 (nginx), jid 0, uid 80: exited on signal 11
Feb 20 05:45:58 XXX kernel: pid 52064 (nginx), jid 0, uid 80: exited on signal 11

in /var/log/nginx/error.log:

2021/02/20 05:45:57 [alert] 2788#100781: worker process 52006 exited on signal 11
2021/02/20 05:45:58 [alert] 2788#100781: worker process 34355 exited on signal 11
2021/02/20 05:45:58 [alert] 2788#100781: worker process 52064 exited on signal 11

Strange connection behavior (see attachment).

Downgrade port solved a problem.

# nginx -V
nginx version: nginx/1.18.0
built with OpenSSL 1.1.1j  16 Feb 2021
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-compat --add-module=/usr/home/dl/nginx/work/ngx_cache_purge-23dc16a --modules-path=/usr/local/libexec/nginx --with-file-aio --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 --with-http_v2_module --with-http_addition_module --with-http_auth_request_module --with-http_flv_module --with-http_gzip_static_module --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-pcre --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --without-mail_imap_module --without-mail_pop3_module --without-mail_smtp_module --with-stream_ssl_module --with-stream_ssl_preread_module --with-threads --with-stream=dynamic --add-dynamic-module=/usr/home/dl/nginx/work/ngx_devel_kit-0.3.1 --add-dynamic-module=/usr/home/dl/nginx/work/ngx_brotli-7fab041 --add-dynamic-module=/usr/home/dl/nginx/work/nchan-1.2.7 --add-dynamic-module=/usr/home/dl/nginx/work/nginx-push-stream-module-0.5.4 --add-dynamic-module=/usr/home/dl/nginx/work/iconv-nginx-module-0.14
Comment 1 Jochen Neumeister freebsd_committer 2021-02-20 09:06:44 UTC
3 modules were updated during the last update. 
Are you using one of them?

https://svnweb.freebsd.org/ports/head/www/nginx/Makefile.extmod?r1=565157&r2=565156&pathrev=565157
Comment 2 Dmytro Lavryk 2021-02-20 09:11:03 UTC
yes. I`m use ngx_brotli
Comment 3 Jochen Neumeister freebsd_committer 2021-02-20 09:15:11 UTC
From the commit: eustas/ngx_brotli was Archived. So switch to google/ngx_brotli

So you check your config with google/ngx_brotli?
Comment 4 Dmytro Lavryk 2021-02-20 09:46:31 UTC
Yes. When I make nginx from ports (with BROTLI_GH_TUPLE=	google:ngx_brotli:9aec15e:brotli in Makefile.extmod) I have a problems.
Comment 5 Dmytro Lavryk 2021-02-21 02:31:15 UTC
Created attachment 222692 [details]
Screen of connection state
Comment 6 Dmytro Lavryk 2021-02-21 02:32:16 UTC
In another server same problem.

Problem nginx:

# nginx -V
nginx version: nginx/1.18.0
built with OpenSSL 1.1.1j  16 Feb 2021
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-compat --add-module=/usr/ports/www/nginx/work/ngx_cache_purge-23dc16a --modules-path=/usr/local/libexec/nginx --with-file-aio --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 --with-http_v2_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_realip_module --with-pcre --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --without-mail_imap_module --without-mail_pop3_module --without-mail_smtp_module --with-stream_ssl_module --with-stream_ssl_preread_module --with-threads --with-http_image_filter_module=dynamic --with-stream=dynamic --add-dynamic-module=/usr/ports/www/nginx/work/ngx_devel_kit-0.3.1 --add-dynamic-module=/usr/ports/www/nginx/work/ngx_brotli-9aec15e --add-dynamic-module=/usr/ports/www/nginx/work/nchan-1.2.7 --add-dynamic-module=/usr/ports/www/nginx/work/nginx-push-stream-module-0.5.4 --add-dynamic-module=/usr/ports/www/nginx/work/iconv-nginx-module-0.14
Comment 7 Dmytro Lavryk 2021-04-15 04:16:22 UTC
Created attachment 224123 [details]
In 06:43 i`m install 1.18.0_50,2 and in 07:00 reinstall 1.18.0_46,2

The situation continues with all versions after 1.18.0_46.2. Today I tried to upgrade to 1.18.0_50.2 and got the same result. In the logs entries:

Apr 15 06:47:31 003 kernel: pid 36572 (nginx), jid 0, uid 80: exited on signal 11
Apr 15 06:47:31 003 kernel: pid 36574 (nginx), jid 0, uid 80: exited on signal 11
Apr 15 06:47:32 003 kernel: pid 36577 (nginx), jid 0, uid 80: exited on signal 11
Apr 15 06:50:44 003 kernel: pid 36576 (nginx), jid 0, uid 80: exited on signal 11
Apr 15 06:50:45 003 kernel: pid 36575 (nginx), jid 0, uid 80: exited on signal 11
Apr 15 06:56:11 003 kernel: pid 38228 (nginx), jid 0, uid 80: exited on signal 11
Apr 15 06:56:12 003 kernel: pid 38035 (nginx), jid 0, uid 80: exited on signal 11
Apr 15 06:56:12 003 kernel: pid 38036 (nginx), jid 0, uid 80: exited on signal 11


As far as I can tell, nginx does not close connections and their number is constantly growing (see attachment).
Comment 8 Jochen Neumeister freebsd_committer 2021-08-26 21:27:30 UTC
does the problem still exist?
Comment 9 Dmytro Lavryk 2021-08-27 04:25:24 UTC
Yes. Problem still exists. Today i'm try to update to actual version. In /var/log/messages:

Aug 27 06:01:46 003 pkg[35313]: nginx-1.18.0_46,2 deinstalled
Aug 27 06:01:51 003 pkg-static[35522]: nginx-1.20.1_2,2 installed
Aug 27 06:30:44 003 kernel: pid 36709 (nginx), jid 0, uid 80: exited on signal 11
Aug 27 06:37:36 003 kernel: pid 36710 (nginx), jid 0, uid 80: exited on signal 11
Aug 27 07:22:12 003 kernel: pid 36714 (nginx), jid 0, uid 80: exited on signal 11
Aug 27 07:22:13 003 kernel: pid 36713 (nginx), jid 0, uid 80: exited on signal 11