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 133073 - deadlock in source.usages.ClassPathRootsListener
Summary: deadlock in source.usages.ClassPathRootsListener
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jan Lahoda
URL:
Keywords:
: 136001 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-04-17 08:13 UTC by David Konecny
Modified: 2008-06-19 13:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
thread dump (74.10 KB, text/plain)
2008-04-17 08:14 UTC, David Konecny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Konecny 2008-04-17 08:13:32 UTC
I've seen it once; I do not know how to reproduce it; after IDE startup I expanded project node.

The problem seems to be that  "Java Source Worker Thread" holds source.usages.ClassPathRootsListener lock and waits for
project.readAccess and "Load Open Projects" holds project.writeAccess and waits on source.usages.ClassPathRootsListener.
A solution could be (although I'm not sure it logically make sense because I have no idea what java.source module does)
for RepositoryUpdater.registerClassPath to request project.readAccess first.
Comment 1 David Konecny 2008-04-17 08:14:08 UTC
Created attachment 60319 [details]
thread dump
Comment 2 dyegoleal 2008-06-02 14:53:14 UTC
I want do see the progress of this thread
Comment 3 Jan Lahoda 2008-06-05 08:15:38 UTC
*** Issue 136001 has been marked as a duplicate of this issue. ***
Comment 4 Quality Engineering 2008-06-19 04:30:35 UTC
Integrated into 'main-golden', available in NB_Trunk_Production #268 build
Changeset: http://hg.netbeans.org/main/rev/22a47ce74ef8
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #133073(fixed): preventing deadlock.
Comment 5 Jan Lahoda 2008-06-19 13:58:33 UTC
See above.