Welcome! Log In Create A New Profile

Advanced

Re: nginx with custom modules crashes in gzip crc32()

agentzh
October 18, 2011 11:26PM
On Wed, Oct 19, 2011 at 8:20 AM, artemg <nginx-forum@nginx.us> wrote:
> 0-0-400, or even 0-0-0 chain, and data can be added in next chain. I am
> doing buffering to match some patterns. In fact of this I see in error
> log:
>
> [alert] 31974#0: *98657 zero size buf in writer t:1 r:1 f:0
> 0000000001714FE0 0000000001F8D290-0000000001F8D290 0000000000000000 0-0
> while sending to client
>
> Is that ok, to have zero size bufs, or I need to modify the chain, not
> to pass them forward to other modules?
>

Passing zero-size non-special bufs to the downstream output filters is
surely BAD. You have to fix it :)

Also, using tools like valgrind's memcheck to find memory issues in
your modules is highly recommended and can often save you huge number
of hours of debugging :)

Regards,
-agentzh

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

nginx with custom modules crashes in gzip crc32()

artemg October 17, 2011 12:27AM

Re: nginx with custom modules crashes in gzip crc32()

Igor Sysoev October 17, 2011 04:28AM

Re: nginx with custom modules crashes in gzip crc32()

artemg October 18, 2011 08:20PM

Re: nginx with custom modules crashes in gzip crc32()

agentzh October 18, 2011 11:26PM

Re: nginx with custom modules crashes in gzip crc32()

artemg October 19, 2011 04:19AM

Re: nginx with custom modules crashes in gzip crc32()

artemg October 20, 2011 07:17AM

Re: nginx with custom modules crashes in gzip crc32()

agentzh October 20, 2011 07:54AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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