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 178307 - Deadlock between freeform.Classpaths & j2seplatform.platformdefinition.DefaultClassPathProvider.CompileClassPathImpl
Summary: Deadlock between freeform.Classpaths & j2seplatform.platformdefinition.Defaul...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords: RANDOM, THREAD
Depends on:
Blocks:
 
Reported: 2009-12-08 09:14 UTC by Jesse Glick
Modified: 2009-12-21 23:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Thread dump (18.66 KB, text/plain)
2009-12-08 09:14 UTC, Jesse Glick
Details
Again deadlocked when closing nbbuild (17.65 KB, text/plain)
2009-12-10 07:25 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2009-12-08 09:14:14 UTC
Created attachment 92287 [details]
Thread dump

091207-ea36fa03ce7b, JDK 6. Encountered when closing the nbbuild project. Straightforward lock ordering ambiguity. Looks to actually be two similar problems: both of these classes call foreign code while holding a monitor.
Comment 1 Jesse Glick 2009-12-10 07:25:01 UTC
Created attachment 92385 [details]
Again deadlocked when closing nbbuild
Comment 2 Milan Kubec 2009-12-14 06:56:50 UTC
Reassigning to Tomas for evaluation.
Comment 3 Tomas Zezula 2009-12-21 05:07:58 UTC
The second thread dump is a different problem.
It has nothing in common with DCP. It's pure freeform deadlock (ff classpath cs project mutex).
Comment 4 Tomas Zezula 2009-12-21 07:48:04 UTC
Both deadlocks fixed.
jet-main: 5e1b4e828862
Comment 5 Quality Engineering 2009-12-21 23:39:16 UTC
Integrated into 'main-golden', will be available in build *200912220201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/5e1b4e828862
User: Tomas Zezula <tzezula@netbeans.org>
Log: #178307:Deadlock between freeform.Classpaths & j2seplatform.platformdefinition.DefaultClassPathProvider.CompileClassPathImpl