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: "dlstevens at us dot ibm dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 21 Mar 2006 23:56:46 -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 dlstevens at us dot ibm dot com 2006-03-21 23:56 -------
OK, I did some new testing and I agree there is no bug. I was able to
reproduce some segmentation violations, which I think were coming from
the fact that I was mixing brk()'s with the sbrk()'s, to set the end of
data segment back after growing. I expect doing debugging printf's after
an sbrk() resulted in internal glibc allocations which a later brk() was
then making invalid pointers. :-) I haven't seen any SEGV's when the sbrk()
and brk() don't have anything in between them.
I don't have the original malloc() test, but I was likely doing something
similarly silly there.
Sorry for the confusion, and thanks for all your efforts! I agree this one can
be closed.
--
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.