#1276 closed defect (invalid)
Nginx segfault error that leads to server crash
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | blocker | Milestone: | |
Component: | other | Version: | |
Keywords: | Cc: | ||
uname -a: | Linux lxci_auto 4.1.17-ltsi-yocto-standard #1 SMP PREEMPT Thu May 11 12:17:14 PDT 2017 x86_64 x86_64 x86_64 GNU/Linux | ||
nginx -V: |
nginx version: nginx/1.12.0
built with OpenSSL 1.0.2j 26 Sep 2016 TLS SNI support enabled configure arguments: --crossbuild=Linux:x86_64 --with-endian=big --with-int=4 --with-long=4 --with-long-long=8 --with-ptr-size=4 --with-sig-atomic-t=4 --with-size-t=4 --with-off-t=4 --with-time-t=4 --with-sys-nerr=132 --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --pid-path=/run/nginx/nginx.pid --prefix=/usr --with-http_ssl_module --with-http_gzip_static_module |
Description
We have a web server hosting by Nginx, the version of Nginx is 1.12.0 stable version. However, after some time(one hour or several hours) with about 150+ http/https requests, Nginx server will be crashed with the follwoing error in /var/log/messages
May 21 19:44:21 lxci kernel: [191384.313252] nginx[25194]: segfault at 8 ip 000000000041d733 sp 00007fff7f4a43a8 error 4 in nginx[400000+b6000]
in /var/log/nginx/error.log, it has the error message like:
2017/05/21 19:59:21 [alert] 5583#0: worker process 25292 exited on signal 11
2017/05/21 19:59:21 [alert] 5583#0: shared memory zone "SSL" was locked by 25292
After this error happens, no web page can be accessed. Nginx server will refuse to response.
This error happens randomly. This issue also happens in Nginx version 1.11.10 and 1.11.13.(We have tested this two versions, but not sure 1.11.11 and 1.11.12 since we have not test every version. However, since 1.11.13 has the issue we think it may also happen in 1.11.11 and 1.11.12.) This issue blocks our development so we report it to seek for your solution/suggestions.
Any advice will be very appreciated and if you need other required information please kindly post your instructions here. Thanks in advance!
Attachments (1)
Change History (4)
by , 8 years ago
comment:1 by , 8 years ago
The configure arguments provided in nginx -V
output show that you use some patched version of nginx sources. The combination of --crossbuild=Linux:x86_64
and --with-endian=big
looks suspicious.
comment:2 by , 8 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Unsupported combination of modified nginx sources and meaningless options.
comment:3 by , 7 years ago
After change the compile options to --crossbuild=Linux:x86_64 and --with-endian=little , the problem solved. Thanks very much!
Attached messages, error.log and nginx.conf