Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 70025 - Deadlock in ExclusiveMutex
Deadlock in ExclusiveMutex
Product: java
Classification: Unclassified
Component: Unsupported
All All
: P3 (vote)
: 5.x
Assigned To: Pavel Flaska
Depends on:
  Show dependency treegraph
Reported: 2005-12-07 15:31 UTC by Jesse Glick
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT

Deadlock (19.06 KB, text/plain)
2005-12-07 15:31 UTC, Jesse Glick
Some exceptions in log a few seconds before (4.68 KB, text/plain)
2005-12-07 15:32 UTC, Jesse Glick

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2005-12-07 15:31:03 UTC
051207, Mustang. Random deadlock after closing Navigator window and returning to
Java editor.
Comment 1 Jesse Glick 2005-12-07 15:31:21 UTC
Created attachment 27634 [details]
Comment 2 Jesse Glick 2005-12-07 15:32:17 UTC
Created attachment 27635 [details]
Some exceptions in log a few seconds before
Comment 3 Jesse Glick 2005-12-07 15:33:16 UTC
Exceptions look to be caused by experimental javausagesnavigator module, but
deadlock looks to be a logic problem in ExclusiveMutex - a bunch of threads are
trying to enter it but no thread appears to be actually in it, so it's not clear
what it's waiting for.
Comment 4 Jan Becicka 2005-12-07 15:52:59 UTC
Deadlock seems to be in mdr. 
- waiting to lock <0x835fd1e8> (a org.netbeans.mdr.NBMDRepositoryImpl$FacilityCache)
Comment 5 Pavel Flaska 2005-12-07 16:22:51 UTC
Element creation is done outside the transaction. That is invalid IMO. As the
code in javausagesnavigator does not run in MDR transaction, this problem
occured. (Otherwise, in explicit transaction, it should not occur.) Reassigning
back to java/javacore, where create* methods in proxy classes (MethodClassImpl,
JavaClassImpl, FieldClassImpl, EnumConstantImpl and other ones should be checked
they run under the correct lock.)
Comment 6 Tomas Hurka 2005-12-09 10:03:41 UTC
Deadlock fixed in trunk.
Checking in;
/cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/,v  <--
new revision: 1.30; previous revision: 1.29
Comment 7 Quality Engineering 2007-09-20 11:49:47 UTC
Reorganization of java component

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