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 53268 - Deadlock in filebasedfs
Summary: Deadlock in filebasedfs
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 4.x
Hardware: PC All
: P2 blocker (vote)
Assignee: rmatous
URL:
Keywords: THREAD
Depends on:
Blocks:
 
Reported: 2005-01-12 06:44 UTC by Jan Chalupa
Modified: 2008-12-22 18:50 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Thread dump (28.29 KB, text/plain)
2005-01-12 06:45 UTC, Jan Chalupa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Chalupa 2005-01-12 06:44:00 UTC
Reported by a user with a custom build of 20050111
sources:

"I checked out the netbeans trunk this afternoon,
installed some extra  modules, ran it and ran into
the below deadlock (which looks like  they're in
standard code)."

Found one Java-level deadlock:
=============================
"Refresh-After-WindowActivated":
  waiting to lock monitor 0x180d36c (object
0x7492ca0, a 
org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObjectFactory),
  which is held by "AWT-EventQueue-1"
"AWT-EventQueue-1":
  waiting to lock monitor 0x180d2dc (object
0x74989d0, a  java.util.Collections$SynchronizedMap),
  which is held by "Refresh-After-WindowActivated"

Java stack information for the threads listed above:
===================================================
"Refresh-After-WindowActivated":
        at 
org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObjectFactory.get(FileObjectFactory.java:121)
        - waiting to lock <0x7492ca0> (a 
org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObjectFactory)
        at 
org.netbeans.modules.masterfs.filebasedfs.fileobjects.BaseFileObj.getExistingParent(BaseFileObj.java:302)
        at 
org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObjectFactory.refreshAll(FileObjectFactory.java:60)
        - locked <0x74989d0> (a
java.util.Collections$SynchronizedMap)
...

Full stack trace attached.
Comment 1 Jan Chalupa 2005-01-12 06:45:55 UTC
Created attachment 19631 [details]
Thread dump
Comment 2 rmatous 2005-01-12 08:18:29 UTC
Fixed in trunk.

/cvs/openide/masterfs/src/org/netbeans/modules/masterfs/filebasedfs/fileobjects/FileObjectFactory.java
new revision: 1.4; previous revision: 1.3

Comment 3 Jan Chalupa 2005-05-12 10:26:41 UTC
Verified.