Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Jul 2009 15:20:02 GMT
From:      Attilio Rao <attilio@freebsd.org>
To:        freebsd-threads@FreeBSD.org
Subject:   Re: threads/136345: Recursive read rwlocks in thread A cause deadlock with write lock in thread B
Message-ID:  <200907051520.n65FK2AM035520@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR threads/136345; it has been noted by GNATS.

From: Attilio Rao <attilio@freebsd.org>
To: Rink Springer <rink@freebsd.org>
Cc: FreeBSD-gnats-submit@freebsd.org, freebsd-threads@freebsd.org
Subject: Re: threads/136345: Recursive read rwlocks in thread A cause deadlock 
	with write lock in thread B
Date: Sun, 5 Jul 2009 16:48:27 +0200

 2009/7/5 Rink Springer <rink@freebsd.org>:
 > Did some more testing; it works fine on Solaris 9 and 10. Also, the
 > deadlock doesn't appear on FreeBSD 6.1-STABLE (Sep 2006). Perhaps this
 > is a libthr issue?
 
 I think that rdlock_count in libthr is not updated properly.
 Can you test the following patch:
 http://www.freebsd.org/~attilio/libthr.diff
 
 Thanks,
 Attilio
 
 
 -- 
 Peace can only be achieved by understanding - A. Einstein



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907051520.n65FK2AM035520>