This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/214] sbrk() doesn't detect brk() failures. Malloc doesn't handle sbrk() failures
- From: "rsa at us dot ibm dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 10 Mar 2006 20:33:08 -0000
- Subject: [Bug libc/214] sbrk() doesn't detect brk() failures. Malloc doesn't handle sbrk() failures
- References: <20040610193839.214.dlstevens@us.ibm.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From rsa at us dot ibm dot com 2006-03-10 20:33 -------
Created an attachment (id=911)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=911&action=view)
test case to expose brk behavior
The attached test-case, when compiled with two different -DDATA_*00 flags
(representing the amount of global data inserted into the data segment of the
program) will result in brk() succeeding or failing for the same RLIMIT_DATA
softlimit.
setting rlimit == 1 PAGE and brk() succeeds.
gcc -o v2glibc214 v2glibc214.c -DDATA_200
setting rlimit = 1 PAGE and brk() fails.
gcc -o v2glibc214 v2glibc214.c -DDATA_200
I will following with some analysis data of the two runs, including what the
kernel thinks is happening.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=214
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.