This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/5553] If mmap fails malloc may assert.
- From: "drow at sources dot redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 9 Jan 2008 20:49:06 -0000
- Subject: [Bug libc/5553] If mmap fails malloc may assert.
- References: <20080108165412.5553.drow@sources.redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From drow at sources dot redhat dot com 2008-01-09 20:49 -------
Thanks. Is your change to memalign correct?
ar_ptr = arena_get2(ar_ptr->next ? ar_ptr : 0, bytes);
+ (void)mutex_unlock(&ar_ptr->mutex);
if(ar_ptr) {
p = _int_memalign(ar_ptr, alignment, bytes);
(void)mutex_unlock(&ar_ptr->mutex);
if (!ar_ptr), segfault, else double unlock.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=5553
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.