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 185900 - Deadlock while refreshing filesystems
Summary: Deadlock while refreshing filesystems
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 6.x
Hardware: PC Linux
: P1 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
: 185969 186014 186028 186045 186105 186217 186273 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-05-11 12:30 UTC by Jan Lahoda
Modified: 2011-01-31 21:34 UTC (History)
9 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Two full thread dumps. (73.78 KB, text/plain)
2010-05-11 12:30 UTC, Jan Lahoda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Lahoda 2010-05-11 12:30:44 UTC
Created attachment 98758 [details]
Two full thread dumps.

After:
http://hg.netbeans.org/main-silver?cmd=changeset;node=894fe07157c0
the IDE deadlocks for me a lot. Two full thread dumps attached, one happened during initial scan, second during refactoring. The problem (IMO) is this:
-priority I/O locks the (background) refresh
-but the (background) refresh is already running, and has write lock on mutex ChildrenCache.getPriorityMutex() - taken in FolderObj.refreshImpl, and waits until the priority I/O finishes.
-the callable inside the priority I/O tries to do something with fileobjects, which requires read lock mutex, but this cannot be acquired.
Comment 1 Jaroslav Tulach 2010-05-12 10:43:22 UTC
core-main#a293f7ce43ff
Comment 2 Quality Engineering 2010-05-13 05:05:02 UTC
Integrated into 'main-golden', will be available in build *201005122200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/
User: 
Log:
Comment 3 Jaroslav Tulach 2010-05-13 13:42:10 UTC
*** Bug 186014 has been marked as a duplicate of this bug. ***
Comment 4 Jaroslav Tulach 2010-05-13 13:48:19 UTC
*** Bug 186028 has been marked as a duplicate of this bug. ***
Comment 5 Tomas Zezula 2010-05-14 07:09:25 UTC
*** Bug 186105 has been marked as a duplicate of this bug. ***
Comment 6 laurin1 2010-05-14 17:11:13 UTC
*** Bug 186045 has been marked as a duplicate of this bug. ***
Comment 7 Jaroslav Tulach 2010-05-18 05:25:14 UTC
*** Bug 186217 has been marked as a duplicate of this bug. ***
Comment 8 Tomas Zezula 2010-05-18 07:57:45 UTC
*** Bug 186273 has been marked as a duplicate of this bug. ***
Comment 9 Martin Entlicher 2010-05-25 10:06:36 UTC
*** Bug 186646 has been marked as a duplicate of this bug. ***
Comment 10 Jaroslav Tulach 2011-01-31 21:34:59 UTC
*** Bug 185969 has been marked as a duplicate of this bug. ***