Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Jul 2009 16:48:27 +0200
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
Message-ID:  <3bbf2fe10907050748x64bb2c7dmc0787fe6bda5d701@mail.gmail.com>
In-Reply-To: <20090705140332.GA8739@rink.nu>
References:  <20090705134016.CB1286D41E@mx1.rink.nu> <200907051400.n65E0AWQ074917@freefall.freebsd.org> <20090705140332.GA8739@rink.nu>

next in thread | previous in thread | raw e-mail | index | archive | help
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?3bbf2fe10907050748x64bb2c7dmc0787fe6bda5d701>