Welcome! Log In Create A New Profile

Advanced

Re: Test the OOM situation

Peter Leonov
May 19, 2010 05:26PM
Hi,

On 19.05.2010, at 17:31, Maxim Dounin <mdounin@mdounin.ru> wrote:

> Hello!
>
> On Wed, May 19, 2010 at 04:01:07PM +0400, Peter Leonov wrote:
>
>> On 18.05.2010, at 23:26, Maxim Dounin wrote:
>>
> [...]
>>> Injecting random errors into allocation routines proven to be much
>>> more usable. Just for completeness: attached trivial patch which
>>> I used while searching for allocation error handling bugs in nginx
>>> itself.
>>
>> That is near what I was looking for :)
>>
>> But it gives a very interesting results. For example a crash within
>> the core:
>>
>> 40740 Bus error (core dumped)
>>
> [...]
> This may happen due to bugs in a module as well.
And it is so. The module may forget to finalize with NGX_ERROR the
request on OOM situation.

> If you are able
> to reproduce the problem without non-official modules/patches -
> this probably worth further investigation.
It is impossible because the test case is written in JavaScript in
this module.

> You may want to try to
> reproduce the problem without optimization and/or share a way to
> reproduce it.
Reproducing with ngx_random() was a pain. Now it counts the calls to
the alloc funcs and fails at a specific moment.

IMHO, such a functionality (manageable allocation fails) is good to
have it built into nginx. With a candy configuration and command line
options, debug points and so on ;)

>
> Note well: last time I've tested nginx with these patches heavily
> was before 0.8.0. But I don't see any immediate segfaults/bus
> errors while running test suite against 0.8.37 with these patches.

Thank you Maxim for your time and help, again :)

Best regards,
Peter._______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Test the OOM situation

Peter Leonov 2224 May 18, 2010 12:26PM

Re: Test the OOM situation

Brian Pane 767 May 18, 2010 01:16PM

Re: Test the OOM situation

Peter Leonov 838 May 19, 2010 07:48AM

Re: Test the OOM situation

Maxim Dounin 778 May 18, 2010 03:28PM

Re: Test the OOM situation

Peter Leonov 777 May 19, 2010 08:02AM

Re: Test the OOM situation

Maxim Dounin 822 May 19, 2010 09:32AM

Re: Test the OOM situation

Peter Leonov 1062 May 19, 2010 05:26PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 61
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready