This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/214] sbrk() doesn't detect brk() failures. Malloc doesn't handle sbrk() failures


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]