tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Possible pthreads memory leak



mm_lists%pulsar-zone.net@localhost (Matthew Mondor) writes:

>On Sun, 17 Jan 2010 08:22:15 +0000 (UTC)
>mlelstv%serpens.de@localhost (Michael van Elst) wrote:

>> I have seen this bug before, maybe the fix wasn't pulled up.
>> 
>> Does it help to follow the join with usleep(1) ?

>It seems to remain stable at 7084K/844K SIZE/RES for me with the
>addition of another syscall.


I think the fix is in version 1.113 of lib/libpthread/pthread.c.

2009-10-04 01:49  christos

        * pthread.c (1.113): Don't just look only at the first element in
          the deadqueue to find lwp's to reuse, because if we lose the race
          with the kernel we are never going to reuse any elements. Look in
          the whole list instead.  XXX: should be pulled up to 5.x

-- 
-- 
                                Michael van Elst
Internet: mlelstv%serpens.de@localhost
                                "A potential Snark may lurk in every tree."


Home | Main Index | Thread Index | Old Index