This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: deadlock in malloc
- From: "Carlos O'Donell" <carlos at systemhalted dot org>
- To: Jeff Law <law at redhat dot com>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Thu, 22 Mar 2012 00:19:28 -0400
- Subject: Re: deadlock in malloc
- References: <4F3BEE0F.9060608@redhat.com>
On Wed, Feb 15, 2012 at 12:40 PM, Jeff Law <law@redhat.com> wrote:
> Assume we're we're in libc_malloc and the call to _int_malloc has failed
> because we're unable to sbrk more memory.
...
> Which seems like the right way to go, so I'd like to unify the 5
> implementations to have a similar structure. ?ie, release the lock within
> the conditional just prior to calling arena_get2 and being safe WRT
> modification of ar_ptr->next.
>
>
> Thoughts or comments?
I haven't had time to look at this but I want to make time (that or
I'll get someone else to review it).
Could you please file a bugzilla issue with a dump of your thoughts so
we don't loose this?
Cheers,
Carlos.