Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Oct 2002 02:40:36 -0800 (PST)
From:      "&#321;ukasz Gryglicki" <morgothdbma@o2.pl>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   i386/44745: Program written in C++ can hang system (started by normal non-root user!)
Message-ID:  <200210301040.g9UAealj071656@www.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:     &#321;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




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