From owner-freebsd-hackers Sat Mar 16 9:14:45 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from tarantula.cse.Buffalo.EDU (tarantula.cse.Buffalo.EDU [128.205.39.16]) by hub.freebsd.org (Postfix) with ESMTP id 3F77F37B404 for ; Sat, 16 Mar 2002 09:14:43 -0800 (PST) Received: (from rc27@localhost) by tarantula.cse.Buffalo.EDU (8.11.6+Sun/8.10.1) id g2GHEcE11298 for freebsd-hackers@freebsd.org; Sat, 16 Mar 2002 12:14:38 -0500 (EST) Date: Sat, 16 Mar 2002 12:14:38 -0500 (EST) From: Ramkumar Chinchani Message-Id: <200203161714.g2GHEcE11298@tarantula.cse.Buffalo.EDU> To: freebsd-hackers@freebsd.org Subject: Memory management bug in FreeBSD 4.5 RELEASE Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I wrote a small program as follows int i = 32; int main(){ while (1) malloc(i); } As long as i is in between 1 and 32, all memory is used up and all swap is used up, and then the process is killed. Again, when i > 32, all seems well. What could be the problem? -Ram To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message