Welcome! Log In Create A New Profile

Advanced

Re: nginx 0.8.45-0.8.49 segfault bug

September 06, 2010 07:00AM
On Wed, Sep 01, 2010 at 10:18:26PM +0400, Maxim Dounin wrote:

> Hello!
>
> On Wed, Sep 01, 2010 at 12:19:55PM -0400, zhijianpeng wrote:
>
> > Sorry,I forgot about that my friend patch 0.8.47 for me.
> >
> > Let's forget about it, and [b]0.8.49 is clean[/b]
>
> [...]
>
> > [b]proxy_ignore_client_abort on;[/b]
>
> [...]
>
> > 2010/09/02 00:14:53 [debug] 15807#0: *3 connect to 81.19.68.137:80, fd:9
> > #4
> > 2010/09/02 00:14:53 [debug] 15807#0: *3 http upstream connect: -2
> > 2010/09/02 00:14:53 [debug] 15807#0: *3 event timer add: 9:
> > 60000:1283357753347
> > 2010/09/02 00:14:53 [debug] 15807#0: timer delta: 991
> > 2010/09/02 00:14:53 [debug] 15807#0: posted events 0000000000000000
> > 2010/09/02 00:14:53 [debug] 15807#0: worker cycle
> > 2010/09/02 00:14:53 [debug] 15807#0: epoll timer: 60000
> > 2010/09/02 00:14:53 [debug] 15807#0: epoll: fd:3 ev:0005
> > d:00002B77E3EDC160
> > 2010/09/02 00:14:53 [debug] 15807#0: *3 http run request: "/aa/bb?"
> > 2010/09/02 00:14:53 [debug] 15807#0: *3 http read client request body
> > 2010/09/02 00:14:53 [debug] 15807#0: *3 add cleanup: 0000000010258CE0
> > 2010/09/02 00:14:53 [debug] 15807#0: *3 hashed path:
> > /opt/itc/vmsnginx/client_body_temp/0000000002
> > 2010/09/02 00:14:53 [debug] 15807#0: *3 temp fd:10
> > 2010/09/02 00:14:53 [warn] 15807#0: *3 a client request body is buffered
> > to a temporary file /opt/itc/vmsnginx/client_body_temp/0000000002 while
> > connecting to upstream, client: 127.0.0.1, server: localhost, request:
> > "POST /aa/bb HTTP/1.1", upstream: "http://81.19.68.137:80/aa/bb", host:
> > "www.nginx.net"
> > 2010/09/02 00:14:53 [debug] 15807#0: *3 write: 10, 000000001025E6B0, 5,
> > 0
> > 2010/09/02 00:14:53 [debug] 15807#0: *3 recv: fd:3 0 of 0
> > 2010/09/02 00:14:53 [debug] 15807#0: *3 http client request body recv 0
> > 2010/09/02 00:14:53 [info] 15807#0: *3 client closed prematurely
> > connection while connecting to upstream, client: 127.0.0.1, server:
> > localhost, request: "POST /aa/bb HTTP/1.1", upstream:
> > "http://81.19.68.137:80/aa/bb", host: "www.nginx.net"
> > 2010/09/02 00:14:53 [debug] 15807#0: *3 http finalize request: 400,
> > "/aa/bb?" a:1, c:1
>
> [...]
>
> This seems to be (somewhat known) issue with
> "proxy_ignore_client_abort on;" and requests with body. It
> doesn't modify request handlers correctly (don't clear request
> body read handler if one was set) and this may cause unexpected
> behaviour.
>
> I'll take a look at this more closely later. Thanks for your
> debugging.

I my test nginx run

2010/09/06 14:48:22 [debug] 25462#0: *1 http run request: "/aa/bb?"
2010/09/06 14:48:22 [debug] 25462#0: *1 http request empty handler

instead of

2010/09/02 00:14:53 [debug] 15807#0: *3 http run request: "/aa/bb?"
2010/09/02 00:14:53 [debug] 15807#0: *3 http read client request body

I believe here is some patch or something else.


--
Igor Sysoev
http://sysoev.ru/en/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx 0.8.45-0.8.49 segfault bug

zhijianpeng September 01, 2010 07:59AM

Re: nginx 0.8.45-0.8.49 segfault bug

zhijianpeng September 01, 2010 09:10AM

Re: nginx 0.8.45-0.8.49 segfault bug

Maxim Dounin September 01, 2010 09:20AM

Re: nginx 0.8.45-0.8.49 segfault bug

zhijianpeng September 01, 2010 10:11AM

Re: nginx 0.8.45-0.8.49 segfault bug

Maxim Dounin September 01, 2010 10:50AM

Re: nginx 0.8.45-0.8.49 segfault bug

zhijianpeng September 01, 2010 12:19PM

Re: nginx 0.8.45-0.8.49 segfault bug

Maxim Dounin September 01, 2010 02:26PM

Re: nginx 0.8.45-0.8.49 segfault bug

Igor Sysoev September 06, 2010 07:00AM

Re: nginx 0.8.45-0.8.49 segfault bug

Maxim Dounin September 06, 2010 08:02AM

Re: nginx 0.8.45-0.8.49 segfault bug

Maxim Dounin September 01, 2010 09:42AM

Re: nginx 0.8.45-0.8.49 segfault bug

aqjh September 02, 2010 02:49AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 296
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