threads/136345: Recursive read rwlocks in thread A cause deadlock with write lock in thread B

Attilio Rao attilio at
Sun Jul 5 15:10:37 UTC 2009

2009/7/5 Rink Springer <rink at>:
> 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:


Peace can only be achieved by understanding - A. Einstein

More information about the freebsd-threads mailing list