Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Aug 2000 16:44:49 -0400 (EDT)
From:      Daniel Eischen <eischen@vigrid.com>
To:        Alfred Perlstein <bright@wintelcom.net>
Cc:        "Bradley T. Hughes" <bhughes@trolltech.com>, stable@FreeBSD.ORG, jasone@FreeBSD.ORG
Subject:   Re: (recursive lock problem) Re: bug in pthread implementation
Message-ID:  <Pine.SUN.3.91.1000812164135.13339B@pcnet1.pcnet.com>
In-Reply-To: <20000812103306.G4854@fw.wintelcom.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 12 Aug 2000, Alfred Perlstein wrote:
> * Bradley T. Hughes <bhughes@trolltech.com> [000812 09:16] wrote:
> > It seems that the mutex implementation for recursive mutexes has a bug.
> > 
> > a single lock/unlock pair works as expected, but locking 3 times only
> > requires 2 unlocks before the mutex is released.  i've read through
> > src/lib/libc_r/uthread/uthread_mutex.c but can't quite follow the logic...
> > 
> > i plan on debugging this more and hope to generate a patch... but i
> > figured i'd send off an email about it to see if anyone else can find the
> > solution quicker than i can :)
> 
> It looks like an off-by-one-error in libc_r, let me know if this works:

[ Patch elided ]

> Attached so Jason and Daniel can have a look:

This looks good to me :-).  Consider it reviewed and commit it if
you'd like.

-- 
Dan Eischen



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SUN.3.91.1000812164135.13339B>