Welcome! Log In Create A New Profile

Advanced

nginx + my module crashes only when ignore client abort = on

March 14, 2013 11:36AM
i use nginx ver 1.2.5 (also tried 1.2.7) with my module that sends subrequest to an upstream, waits untill response get back, then goes to backend upstream and fetch the regular web page from it.
when i add to nginx conf "proxy_ignore_client_abort on;", nginx crash with signal 11 (seg fault) when i do "ab" test and stop it in the middle of the (log: "client prematurely closed..." etc.).
when i cancel my subrequest - no crash
or: when i remove the proxy_ignore_client_abort (default off) - no crash, even with the subrequest.

here's the core dump:
==================================
Program terminated with signal 11, Segmentation fault.
#0 0x000000000045926b in ngx_http_terminate_request (r=0x1964360, rc=0) at src/http/ngx_http_request.c:2147
2147 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
(gdb) bt
#0 0x000000000045926b in ngx_http_terminate_request (r=0x1964360, rc=0) at src/http/ngx_http_request.c:2147
#1 0x0000000000458b98 in ngx_http_finalize_request (r=0x1964360, rc=0) at src/http/ngx_http_request.c:1977
#2 0x0000000000459d80 in ngx_http_test_reading (r=0x1964360) at src/http/ngx_http_request.c:2443
#3 0x00000000004587fc in ngx_http_request_handler (ev=0x192b428) at src/http/ngx_http_request.c:1866
#4 0x000000000043f1e0 in ngx_epoll_process_events (cycle=0x18f0470, timer=59782, flags=1) at src/event/modules/ngx_epoll_module.c:683
#5 0x000000000042eea4 in ngx_process_events_and_timers (cycle=0x18f0470) at src/event/ngx_event.c:247
#6 0x000000000043ba36 in ngx_single_process_cycle (cycle=0x18f0470) at src/os/unix/ngx_process_cycle.c:315
#7 0x000000000040a33a in main (argc=3, argv=0x7fff9e8fec18) at src/core/nginx.c:409
=================================================
the cause of the crash: it appears thet "r->connection->log" is null or garbaged - its being freed before by nginx core !

please help
TNX,
Gad
Subject Author Posted

nginx + my module crashes only when ignore client abort = on

gadh March 14, 2013 11:36AM

Re: nginx + my module crashes only when ignore client abort = on

gadh March 14, 2013 11:58AM

Re: nginx + my module crashes only when ignore client abort = on

Maxim Dounin March 14, 2013 12:34PM

Re: nginx + my module crashes only when ignore client abort = on

gadh March 14, 2013 12:46PM

Re: nginx + my module crashes only when ignore client abort = on

Maxim Dounin March 14, 2013 01:06PM

Re: nginx + my module crashes only when ignore client abort = on

gadh March 17, 2013 05:47AM

Re: nginx + my module crashes only when ignore client abort = on

gadh March 17, 2013 03:00PM

Re: nginx + my module crashes only when ignore client abort = on

Maxim Dounin March 17, 2013 07:54PM

Re: nginx + my module crashes only when ignore client abort = on

gadh March 18, 2013 01:40AM

Re: nginx + my module crashes only when ignore client abort = on

Maxim Dounin March 18, 2013 07:18AM

Re: nginx + my module crashes only when ignore client abort = on

gadh March 18, 2013 07:24AM

Re: nginx + my module crashes only when ignore client abort = on

gadh March 18, 2013 09:45AM

Re: nginx + my module crashes only when ignore client abort = on

gadh April 09, 2013 08:59AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 191
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready