This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 258359 - Deadlock in IDE while adding a remote host
Summary: Deadlock in IDE while adding a remote host
Status: RESOLVED DUPLICATE of bug 257800
Alias: None
Product: cnd
Classification: Unclassified
Component: Remote (show other bugs)
Version: 8.1
Hardware: PC Linux
: P2 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-14 16:15 UTC by Alexander Pepin
Modified: 2016-04-12 19:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Thread dump (46.37 KB, text/plain)
2016-03-14 16:15 UTC, Alexander Pepin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Pepin 2016-03-14 16:15:44 UTC
Created attachment 158851 [details]
Thread dump

This has happened while test running. IDE got stuck when it was adding a remote host. See attached tread dump.
Comment 1 Vladimir Kvashin 2016-03-14 16:32:55 UTC
It seems to be a duplicate of issue 257800,
which describes a classical deadlock within jsch.

The jsch code takes locks 0x00000000df6782c0 and 0x00000000df6782a0 
in different order.

"AWT-EventQueue-0":
	at java.util.Vector.removeAllElements(Vector.java:656)
	- waiting to lock <0x00000000df6782c0> (a java.util.Vector)
	at com.jcraft.jsch.KnownHosts.setKnownHosts(KnownHosts.java:61)
	at com.jcraft.jsch.KnownHosts.setKnownHosts(KnownHosts.java:54)
	at com.jcraft.jsch.JSch.setKnownHosts(JSch.java:317)
	- locked <0x00000000df6782a0> (a com.jcraft.jsch.KnownHosts)

"Initializing path map at hudson@spb-ladoga.ru.oracle.com":
	at com.jcraft.jsch.KnownHosts.getHMACSHA1(KnownHosts.java:486)
	- waiting to lock <0x00000000df6782a0> (a com.jcraft.jsch.KnownHosts)
	at com.jcraft.jsch.KnownHosts.access$000(KnownHosts.java:35)
	at com.jcraft.jsch.KnownHosts$HashedHostKey.isMatched(KnownHosts.java:540)
	at com.jcraft.jsch.KnownHosts.getHostKey(KnownHosts.java:361)
	- locked <0x00000000df6782c0> (a java.util.Vector)
	at com.jcraft.jsch.Session.checkHost(Session.java:809)
	at com.jcraft.jsch.Session.connect(Session.java:342)

Frankly, I don't know what to do with that. I wrote to jsch alias and the only reply was from the other user, who faced the same problem and proposed a patch.. and silence.
Comment 2 Vladimir Kvashin 2016-04-07 11:46:49 UTC

*** This bug has been marked as a duplicate of bug 257800 ***