Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Mar 2002 12:14:38 -0500 (EST)
From:      Ramkumar Chinchani <rc27@cse.Buffalo.EDU>
To:        freebsd-hackers@freebsd.org
Subject:   Memory management bug in FreeBSD 4.5 RELEASE
Message-ID:  <200203161714.g2GHEcE11298@tarantula.cse.Buffalo.EDU>

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

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




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