[concurrency-interest] LinkedBlockingDeque deadlock? (Test case)

Ryan Betts rbetts at gmail.com
Fri Jul 17 16:48:16 UTC 2009


Hello all,

I've been working with Ariel on the j.u.c.LinkedBlockingDeque deadlock  
we observe. The attached test case reproduces the deadlock  
intermittently, usually requiring several minutes. The test simply  
prints periods until it deadlocks. Attempts to produce a simpler test  
case using only ReentrantLock or without an ExecutorService were  
unsuccessful.

I've attached jstack reports showing the deadlocked case and the dmesg  
output from one of the servers that reproduces the defect. To date,  
this deadlock only occurs on our 2 socket i7s.

We have not filed a defect with Sun for this issue. If that would be  
helpful (or necessary), we would of course happily oblige.

$ java -version
java version "1.6.0"
OpenJDK  Runtime Environment (build 1.6.0-b09)
OpenJDK 64-Bit Server VM (build 1.6.0-b09, mixed mode)

$ uname -a
Linux host3e 2.6.18-128.1.16.el5 #1 SMP Tue Jun 30 06:07:26 EDT 2009  
x86_64 x86_64 x86_64 GNU/Linux

$ javac LBDLockPatternTest.java
$ java LBDLockPatternTest


Thank you,
*--Ryan.


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dmesg.txt
URL: <http://mail.openjdk.java.net/pipermail/core-libs-dev/attachments/20090717/e80bd33c/dmesg.txt>
-------------- next part --------------


-------------- next part --------------
A non-text attachment was scrubbed...
Name: LBDLockPatternTest.java
Type: application/octet-stream
Size: 1703 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/core-libs-dev/attachments/20090717/e80bd33c/LBDLockPatternTest.java>
-------------- next part --------------



-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: jstack-24297.txt
URL: <http://mail.openjdk.java.net/pipermail/core-libs-dev/attachments/20090717/e80bd33c/jstack-24297.txt>
-------------- next part --------------



-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: jstack-25168.txt
URL: <http://mail.openjdk.java.net/pipermail/core-libs-dev/attachments/20090717/e80bd33c/jstack-25168.txt>
-------------- next part --------------








More information about the core-libs-dev mailing list