From owner-freebsd-bugs@FreeBSD.ORG Tue Feb 3 12:13:20 2009 Return-Path: Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 149C11065670 for ; Tue, 3 Feb 2009 12:13:20 +0000 (UTC) (envelope-from to.my.trociny@gmail.com) Received: from mail-fx0-f16.google.com (mail-fx0-f16.google.com [209.85.220.16]) by mx1.freebsd.org (Postfix) with ESMTP id 8FED18FC17 for ; Tue, 3 Feb 2009 12:13:19 +0000 (UTC) (envelope-from to.my.trociny@gmail.com) Received: by fxm9 with SMTP id 9so57453fxm.19 for ; Tue, 03 Feb 2009 04:13:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:to:cc:subject:references :organization:from:date:in-reply-to:message-id:user-agent :mime-version:content-type; bh=0J2+KyyhGy9BvJttUGudrpHXz0I5yxxAZqTQjO6DLaQ=; b=gmuVBk+TTPaTPDlkx/JbXtVyopZiCZr0ILA8s86MG1CBF/81XZC3VAzgZ2f1DUK309 /Er161fr6eR1QyvoAS1GONut5JXQsu/3WerJ2sciafWt++eoKEpyivbH7uXS6JWtgvDE PEqNE+EpM7tWAmEXBbhlG9P5BPRNyYuLdWU9g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=to:cc:subject:references:organization:from:date:in-reply-to :message-id:user-agent:mime-version:content-type; b=VRYg//XCb0ZD7eexgTvisEYYaiQniNVcn63SCQFL1n1IRj+W+J8rR/57GSLazYGEo6 x8gUJqIFe/9H2aHH2ovNgmmycSfDw8qJa3aPf0CbvaNv085qKpRGzS8ZKjZveSx0XnbQ +u3obHH/gIaPMjiHvijhyCYzQjcEKCeHaNB90= Received: by 10.223.112.130 with SMTP id w2mr2106181fap.65.1233661503427; Tue, 03 Feb 2009 03:45:03 -0800 (PST) Received: from localhost (ms.singlescrowd.net [80.85.90.67]) by mx.google.com with ESMTPS id e20sm7433658fga.46.2009.02.03.03.45.01 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 03 Feb 2009 03:45:02 -0800 (PST) To: Sergey S References: <200902021314.n12DEwd3098744@freefall.freebsd.org> Organization: TOA Ukraine From: Mikolaj Golub Date: Tue, 03 Feb 2009 13:45:00 +0200 In-Reply-To: (Sergey S.'s message of "Mon\, 2 Feb 2009 12\:13\:18 -0800") Message-ID: <817i47oibn.fsf@zhuzha.ua1> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: remko@freebsd.org, freebsd-bugs@freebsd.org Subject: Re: misc/131290: How to completely freeze FreeBSD 7.1 under a non-privileged user X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Feb 2009 12:13:20 -0000 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