[jcifs] Thread deadlock

Tony Thompson Tony.Thompson at stone-ware.com
Fri Oct 23 10:06:51 MDT 2009


I am using jCIFS 1.2.19 (I know, a little old but I have issues with 1.3
that I haven't had time to work out).  I have two threads that are
deadlocked in jCIFS code.  Can anyone give me a hint why these threads
are hung?

"RMI TCP Connection(10131)-10.4.8.50" - Thread t at 6308
   java.lang.Thread.State: BLOCKED on jcifs.smb.SmbTransport at 6005a6c5
owned by: RMI TCP Connection(10121)-10.4.8.50
	at jcifs.smb.SmbTree.treeConnect(SmbTree.java:128)
	- locked java.lang.Object at 3ff2cf76
	at jcifs.smb.SmbTree.send(SmbTree.java:64)
	at jcifs.smb.SmbFile.send(SmbFile.java:718)
	at jcifs.smb.SmbFile.queryPath(SmbFile.java:1297)
	at jcifs.smb.SmbFile.exists(SmbFile.java:1351)
....

"RMI TCP Connection(10121)-10.4.8.50" - Thread t at 6274
   java.lang.Thread.State: BLOCKED on java.lang.Object at 3ff2cf76 owned
by: RMI TCP Connection(10131)-10.4.8.50
	at jcifs.smb.SmbTree.treeConnect(SmbTree.java:127)
	at jcifs.smb.SmbTree.send(SmbTree.java:64)
	at jcifs.smb.SmbTree.treeDisconnect(SmbTree.java:168)
	- locked jcifs.smb.SmbTransport at 6005a6c5
	at jcifs.smb.SmbSession.logoff(SmbSession.java:312)
	- locked jcifs.smb.SmbTransport at 6005a6c5
	at jcifs.smb.SmbTransport.getSmbSession(SmbTransport.java:141)
	- locked jcifs.smb.SmbTransport at 6005a6c5
	at jcifs.smb.SmbFile.doConnect(SmbFile.java:834)
	at jcifs.smb.SmbFile.connect(SmbFile.java:890)
	at jcifs.smb.SmbFile.connect0(SmbFile.java:816)
	at jcifs.smb.SmbFile.queryPath(SmbFile.java:1269)
	at jcifs.smb.SmbFile.exists(SmbFile.java:1351)
....

Thanks
Tony
 
This message (and any associated files) is intended only for the 
use of the individual or entity to which it is addressed and may 
contain information that is confidential, subject to copyright or
constitutes a trade secret. If you are not the intended recipient 
you are hereby notified that any dissemination, copying or 
distribution of this message, or files associated with this message, 
is strictly prohibited. If you have received this message in error, 
please notify us immediately by replying to the message and deleting 
it from your computer. Messages sent to and from Stoneware, Inc.
may be monitored.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/jcifs/attachments/20091023/b3e929d7/attachment.html>


More information about the jCIFS mailing list