From owner-freebsd-bugs Wed Oct 30 3:10: 6 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A0F4937B401 for ; Wed, 30 Oct 2002 03:10:04 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5A62743E77 for ; Wed, 30 Oct 2002 03:10:04 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g9UBA4x3060110 for ; Wed, 30 Oct 2002 03:10:04 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g9UBA3Pu060108; Wed, 30 Oct 2002 03:10:03 -0800 (PST) Date: Wed, 30 Oct 2002 03:10:03 -0800 (PST) Message-Id: <200210301110.g9UBA3Pu060108@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Peter Pentchev Subject: Re: i386/44745: Program written in C++ can hang system (started by normal non-root user!) Reply-To: Peter Pentchev Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR i386/44745; it has been noted by GNATS. From: Peter Pentchev To: "Łukasz Gryglicki" Cc: bug-followup@FreeBSD.org Subject: Re: i386/44745: Program written in C++ can hang system (started by normal non-root user!) Date: Wed, 30 Oct 2002 13:02:51 +0200 On Wed, Oct 30, 2002 at 02:40:36AM -0800, Łukasz Gryglicki wrote: > > >Number: 44745 > >Category: i386 > >Synopsis: Program written in C++ can hang system (started by normal non-root user!) > >Originator: Łukasz Gryglicki > >Release: FreeBSD Release v4.5 > >Environment: > FreeBSD RELEASE 4.5 i386 /usr/src/sys/compile/MORGOTH etc.. (gcc 2.95) > >Description: > My program (memory allocator) can hang system when tries to allocate > more than RAM + SWAP memory. I think kernel should kill it! For > example I've go 192MB ram & 700MB swap when I call alloc_bsd 1200MB, > it hungs my system even I'm doing it as normal user UID=500. If You > are intrested of this problem I can sent full source_code Isn't this something that should be easily solved by setting appropriate limits for the users in, say, the /etc/login.conf file? G'luck, Peter -- Peter Pentchev roam@ringlet.net roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 If I had finished this sentence, To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message