Summary: | www/nginx: nginx worker crashes with HTTPS request using TLS => 1.0 | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | marek | ||||
Component: | Individual Port(s) | Assignee: | Sergey A. Osokin <osa> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Only Me | CC: | trasz | ||||
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(osa) |
||||
Version: | Latest | ||||||
Hardware: | amd64 | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
marek
2014-12-17 11:05:34 UTC
Auto-assigned to maintainer osa@FreeBSD.org Hi, could you please show the nginx.conf file. Also, recently www/nginx has been upgraded to latest stable version 1.8.0, could you please try to reproduce the issue with new version. Created attachment 156430 [details]
nginx.conf
(In reply to Sergey A. Osokin from comment #2) Hi, I updated the system to latest version. Currently I have: OS: FreeBSD 10.1-RELEASE-p9 Packages: curl-7.42.1 nginx-1.8.0,2 php56-5.6.8 The problem still exists. The results are the same as above. Please check my nginx.conf Thanks for report. Two questions here: 1) are you using third-party modules? Could you please provide nginx -V output? 2) is there any chance to compile nginx with debugging log and try to reproduce the issue? Few days ago I've spent some time on debugging this (note to myself: use "master_process off" to get an usable core file), and it seems to be related to SSL session cache; it crashes somewhere in ssl_update_cache(). Basically, uncommenting this line in the server section of the default nginx.conf: ssl_session_cache shared:SSL:1m; ... uncommenting this seems to trigger the problem; when running without ssl_session_cache the crash doesn't seem to occur. This thread - http://comments.gmane.org/gmane.comp.web.haproxy/16402 - mentions a bug that looks similar, although for haproxy, not nginx. Might be a good idea to consult FreeBSD OpenSSL maintainer? Hi Sergey, I updated packages and the problem disappeared (?). Currently I have: curl-7.43.0_2 nginx-1.8.0_3,2 php56-5.6.11 I tried to reproduce this problem on clean install on VM, but currently everything works correctly. Probably the problem was solved somewhere between nginx-1.8.0,2 and nginx-1.8.0_3,2 Answering to your questions: 1) This is standard instalation with default port options: # nginx -V nginx version: nginx/1.8.0 built with OpenSSL 1.0.1l-freebsd 15 Jan 2015 (running with OpenSSL 1.0.1j-freebsd 15 Oct 2014) 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-ipv6 --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_stub_status_module --with-pcre --with-http_ ssl_module 2) I did not do that, due to the problem was solved after package upgrade. Thank you for your support. Due to the fact that the problem has disappeared and cannot be reproduced, this bug can be closed. Closed by originator request. Thanks for report! |