Please use the Apache issue tracking system for new NetBeans issues (https://issues.apache.org/jira/projects/NETBEANS0/issues) !!

Bug 31552

Summary: Deadlock when running projects/compilation tests
Product: projects Reporter: Vitezslav Stejskal <vstejskal>
Component: Generic InfrastructureAssignee: issues <issues.netbeans.org>
Status: CLOSED DUPLICATE QA Contact: issues <issues.netbeans.org>
Priority: P2 CC: dkonecny
Version: 3.xKeywords: THREAD
Target Milestone: 3.x   
Hardware: PC   
OS: All   
Whiteboard:
Issue Type: DEFECT Exception Report:
Attachments: full thread dump

Description Vitezslav Stejskal 2003-02-27 22:17:31 UTC
There is a deadlock when running tests for
projects/compilation module, it seems to occure
under both jdk 1.3.1_02 and 1.4.1. It seems it is
caused by synchronization in
ProjectMember$Evnironment class.

The threads in deadlock are the 'FolderRecognizer'
(as usually) and 'ContainersList-Updater'. The
'FolderRcognizer' thread creates BTDataObject
which creates the ProjectMember for itself in its
ctor, but the 'ContainersList-Updater' tries to
access Lookup of another PM which keeps the lock
and indirectly asks some DataFolder for its children.

Several bad things happend at the same time:
1. BTDataObject does something in its ctor, this
should be avouded (especially calls to another
'higher' layer; the projects in this case)

2. ProjectMember$Environment performs wrong
synchronization in beforeLookup method, this is
probably the root cause.

3. The core/naming (DOEnum) uses DataSystems
(DataFolder.getChildren) to get the list of
bidings in the Context. It's unnecessary and it's
done this way just for the files ordering.
Comment 1 Vitezslav Stejskal 2003-02-27 22:25:39 UTC
Created attachment 9203 [details]
full thread dump
Comment 2 David Konecny 2003-02-28 10:39:58 UTC
ad #3 - already filed as issue 30632. I added your comment there for
the record.
Comment 3 Dusan Balek 2003-07-23 15:55:44 UTC
Studying attached thread dump, this deadlock seems to be the same as
the one described in #30950

*** This issue has been marked as a duplicate of 30950 ***
Comment 4 Jan Becicka 2003-11-25 14:00:45 UTC
As described in
http://www.netbeans.org/servlets/ReadMsg?msgId=619519&listName=nbdiscuss the
current work on projects prototype has been stopped.

Marking issue as VERIFIED --->
Comment 5 Jan Becicka 2003-11-25 14:09:23 UTC
---> CLOSED
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo