-
Notifications
You must be signed in to change notification settings - Fork 478
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
crash at ngx_http_upstream_check_handler.c:1656 #6
Comments
Thanks for your bug report. Sorry to bother you for my careless .Your patch is very correct. The global variable is evil. Maybe I should consider not to use it. |
The nginx_tcp_proxy_module also has the same problem. If you use it, you should update your source. See the commit: yaoweibin/nginx_tcp_proxy_module@d10ea36 I developed this check module first in the tcp proxy module, then ported to general HTTP module. They shared many codes. |
Patch for nginx 1.12.1+
…figurable_ssl_healthcheck_protocols OPENRESTY-111 Configurable SSL healthcheck protocols
Got crash:when reloading:
Clearly dangling pointer.
Ran program with valgrind:
Crash happens when reloading. You need also to disable check first at new config.
I dont know how to make proper test case, but I used following test as base:
And then disabled check by commenting lines (vi t/servroot/conf/nginx.conf). Config block when I run it etcproxy and valgrind so I can reload consistenlty.
Test script used:
This patch seems to fix this crash.
The text was updated successfully, but these errors were encountered: