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 197002

Summary: Remote automatic tests hangs time to time
Product: cnd Reporter: soldatov <soldatov>
Component: RemoteAssignee: Vladimir Kvashin <vkvashin>
Status: VERIFIED FIXED    
Severity: normal CC: apepin, mmirilovic
Priority: P1    
Version: 7.0   
Hardware: PC   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:
Attachments: dump
other dump
dump
Full thread dump

Description soldatov 2011-03-23 11:33:26 UTC
Created attachment 107210 [details]
dump

On MacOSX NetBeans hangs after some automatic remote tests
Comment 1 soldatov 2011-03-23 11:38:52 UTC
Created attachment 107211 [details]
other dump
Comment 2 Vladimir Kvashin 2011-03-23 11:42:01 UTC
I see deadlock in thread dump:

Thread "DLightScheduledTask No. 8"
tries to connect and asks user for password

Thread "AWT-EventQueue-2"
calls ConnectionManager.isConnectedTo,
which tries to obtain the same lock (7e7ee76c8)
that is obtained by "DLightScheduledTask No. 8"

Valera, thanks for finding this!
Will be fixed shortly.
Comment 4 Quality Engineering 2011-03-24 09:47:26 UTC
Integrated into 'main-golden', will be available in build *201103240400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/50b1a061ff36
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: Use a separate lock object (fixing #197002 - Remote automatic tests hangs time to time)
Comment 5 soldatov 2011-03-28 14:02:50 UTC
Created attachment 107336 [details]
dump

This fix doesn't resolve my problem. New dump is attached
Comment 6 Vladimir Kvashin 2011-03-28 14:49:38 UTC
Created attachment 107339 [details]
Full thread dump
Comment 7 Vladimir Kvashin 2011-03-28 14:50:54 UTC
We removed locking in ConnectionManager, 
but AWT thread is now locked in JSchChannelsSupport.isConnected
Comment 8 Vladimir Kvashin 2011-03-29 06:47:43 UTC
Fixed in cnd-main:
http://hg.netbeans.org/cnd-main/rev/bc33b86d522a
Comment 9 soldatov 2011-03-29 11:57:02 UTC
Verified in trunk.
I launched automatic tests 6 times and fix works nicely.
Comment 10 Quality Engineering 2011-03-30 08:41:03 UTC
Integrated into 'main-golden', will be available in build *201103300400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/bc33b86d522a
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: fixed #197002 - Remote automatic tests hangs time to time
Comment 11 Alexander Pepin 2011-03-31 13:42:28 UTC
Verified in RC2 build 20110331.