Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 Feb 2009 13:45:00 +0200
From:      Mikolaj Golub <to.my.trociny@gmail.com>
To:        Sergey S <ad.sergey@gmail.com>
Cc:        remko@freebsd.org, freebsd-bugs@freebsd.org
Subject:   Re: misc/131290: How to completely freeze FreeBSD 7.1 under a non-privileged user
Message-ID:  <817i47oibn.fsf@zhuzha.ua1>
In-Reply-To: <ab09a9970902021213h6e58a1b4o56bcfabb2e5da3e6@mail.gmail.com> (Sergey S.'s message of "Mon\, 2 Feb 2009 12\:13\:18 -0800")
References:  <200902021314.n12DEwd3098744@freefall.freebsd.org> <ab09a9970902021213h6e58a1b4o56bcfabb2e5da3e6@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 2 Feb 2009 12:13:18 -0800 Sergey S wrote:

> Hello.
>
>> Limits can be configured in login.conf for example, else the system will slowly die out of resource exhaustion.
>
> It sounds like you haven't tried to reproduce the bug. Actually it has
> *nothing* to do with resource exhaustion and "slowly dying". Your
> system will die before you can say "knife". Most probably it will
> happen during the first call to escript.erl, but there is a chance
> you'll need to run it a few times (2-3). So to automate it, I've
> written loop.sh.
>
> It isn't necessary to use loop.sh. Just run escript.erl (which doesn't
> contain any memory/CPU consuming calls).
>
>> This is not a PR nor a bug.
>
> Just try it.

Sergey,

I have tried your scripts and have not managed to reproduce the hang, even
running the loop script without sleep.

If you want to draw developer's' attention to your problem, you need to
do some investigation and provide more info. If the system deadlocks you can
try to get useful information following the steps described in FreeBSD
Developers' Handbook.

http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/kerneldebug-deadlocks.html

But I would recommend you to start from simpler techniques, e.g. running in
parallel top and other system utilities and writing the output to the file for
further investigation. Something like this:

top -b -s1 -S -d1000 1000 > top.output &
./gistfile1.sh

-- 
Mikolaj Golub



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?817i47oibn.fsf>