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.
Build: NetBeans IDE 8.1 (Build 201510222201) VM: Java HotSpot(TM) 64-Bit Server VM, 25.60-b23, Java(TM) SE Runtime Environment, 1.8.0_60-b27 OS: Windows 7 User Comments: GUEST: I had just reconnected to my workstation remotely via Remote Desktop, and was trying to debug a C++ core file by connectiong to a previously disconnected Remote Host. Stacktrace: org.netbeans.modules.deadlock.detector.Detector$DeadlockDetectedException: FSSDispatcher at org.netbeans.modules.nativeexecution.api.util.HostInfoUtils.getHostInfo(HostInfoUtils.java:271) at org.netbeans.modules.nativeexecution.api.util.HostInfoUtils.getHostInfo(HostInfoUtils.java:255) at org.netbeans.modules.nativeexecution.api.util.MacroExpanderFactory.getExpander(MacroExpanderFactory.java:102) at org.netbeans.modules.nativeexecution.api.util.MacroExpanderFactory.getExpander(MacroExpanderFactory.java:70) at org.netbeans.modules.remote.impl.fs.server.FSSDispatcher.getOriginalFSServerPath(FSSDispatcher.java:528) at org.netbeans.modules.remote.impl.fs.server.FSSDispatcher.checkServerSetup(FSSDispatcher.java:561)
Created attachment 161511 [details] stacktrace
Investigation: There are two problems with this issue. First, we call a heavy operationfrom SubversionVCS.connected:234. Maybe it should be moved to a different thread. Second, MacroExpanderFactory class caches found expanders. It uses a static synchronized method getExpander and tries to lock HostInfoUtils. This leads to a deadlock if HostInfoUtils is already taken. Solution: Make macro expander cache synchronized more "softly", with concurrent map.
Integrated into 'main-silver', will be available in build *201611110001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/d0ef9090621d User: Ilia Gromov <ilia@netbeans.org> Log: fixing #267378 - org.netbeans.modules.deadlock.detector.Detector$DeadlockDetectedException: FSSDispatcher (transplanted from e2aa85c5a0628d20ebda276f4b7a7783bb0041ae)
Integrated into 'main-silver', will be available in build *201611160001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/03c6734db3fa User: Ilia Gromov <ilia@netbeans.org> Log: Additional fix for #267378 - org.netbeans.modules.deadlock.detector.Detector$DeadlockDetectedException: FSSDispatcher (transplanted from 4d9d01c80a2b72416b2170d3db539992065de36f)
I can't reproduce this random exception in internal NetBeans 8,2 patch 1 build.