From owner-freebsd-bugs Wed Oct 30 2:50: 5 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 DBD5F37B401 for ; Wed, 30 Oct 2002 02:50:02 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 40E5143E77 for ; Wed, 30 Oct 2002 02:50:01 -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 g9UAo1x3048251 for ; Wed, 30 Oct 2002 02:50:01 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g9UAo1i8048250; Wed, 30 Oct 2002 02:50:01 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0628D37B401 for ; Wed, 30 Oct 2002 02:40:37 -0800 (PST) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id B848043E42 for ; Wed, 30 Oct 2002 02:40:36 -0800 (PST) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.6/8.12.6) with ESMTP id g9UAea7R071657 for ; Wed, 30 Oct 2002 02:40:36 -0800 (PST) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.6/8.12.6/Submit) id g9UAealj071656; Wed, 30 Oct 2002 02:40:36 -0800 (PST) Message-Id: <200210301040.g9UAealj071656@www.freebsd.org> Date: Wed, 30 Oct 2002 02:40:36 -0800 (PST) From: "Łukasz Gryglicki" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: i386/44745: Program written in C++ can hang system (started by normal non-root user!) 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 >Number: 44745 >Category: i386 >Synopsis: Program written in C++ can hang system (started by normal non-root user!) >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Oct 30 02:50:00 PST 2002 >Closed-Date: >Last-Modified: >Originator: Łukasz Gryglicki >Release: FreeBSD Release v4.5 >Organization: student >Environment: FreeBSD RELEASE 4.5 i386 /usr/src/sys/compile/MORGOTH etc.. (gcc 2.95) Sorry but I'm using NT-Shit (2000) by now! >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 >How-To-Repeat: SOURCE_CODE alloc_bsd.c >Fix: Fix kernel memory management (this program does not allocate all 1200MB at a time, because kernel kill it, but allocates 1MB and again, again, again) I got message: swap_pagger get_free_block failed or something like this and system hanged up) :-( >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message