Opened 9 months ago

Last modified 9 months ago

#2172 closed defect

it will be core when ngx_event_connect_peer connect fail — at Initial Version

Reported by: June-Snow@… Owned by:
Priority: minor Milestone:
Component: documentation Version: 1.19.x
Keywords: Cc:
uname -a: 3.10.0-327 centos
nginx -V: nginx version: nginx/1.14.2


the call chain is ngx_stream_proxy_handler -> ngx_stream_proxy_connect->

ngx_event_connect_peer->ngx_log_error_core(level=3, log=0x39e7b2b0, err=99, fmt=fmt@entry=0x7b900e "connect() to %V failed") at src/core/ngx_log.c:149 -> ngx_stream_log_error -> ngx_stream_proxy_log_error -> ngx_connection_local_sockaddr -> ngx_palloc (pool=0x0, size=16) at src/core/ngx_palloc.c:126

pool is null lead to coredump, the reason is the pool not inited when ngx_event_connect_peer fail with connect err 99

Change History (0)

Note: See TracTickets for help on using tickets.