Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 184633 - Deadlock between Children.MUTEX and Children.class
Deadlock between Children.MUTEX and Children.class
Product: platform
Classification: Unclassified
Component: Nodes
PC Linux
: P3 (vote)
: 6.x
Assigned To: Jaroslav Tulach
Depends on:
  Show dependency treegraph
Reported: 2010-04-21 14:51 UTC by Jesse Glick
Modified: 2010-04-24 05:30 UTC (History)
0 users

See Also:
Issue Type: DEFECT

Hudson test failure log (56.18 KB, text/html)
2010-04-21 14:51 UTC, Jesse Glick

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2010-04-21 14:51:06 UTC
Created attachment 97809 [details]
Hudson test failure log

Looks random; no changes in platform in this build. Seems to be a lock-ordering conflict (see marked lines):

> junit.framework.AssertionFailedError: The test testSnapshotFN did not finish in 35000ms
>     Thread Active Reference Queue Daemon
>>	at org.openide.nodes.Children.entrySupport(
> 	at org.openide.nodes.Children$Keys$
> 	at org.openide.util.Mutex.postRequest(
> 	at org.openide.util.Mutex.postRequest(
>>	at org.openide.util.Mutex.postWriteRequest(
> 	at org.openide.nodes.Children$Keys.applyKeys(
> 	at org.openide.nodes.Children$Keys.setKeys(
> 	at org.openide.nodes.ChildrenKeysTest$9K.removeNotify(
> 	at org.openide.nodes.Children.callRemoveNotify(
> 	at org.openide.nodes.EntrySupport$Default.finalizedChildrenArray(
> 	at org.openide.nodes.EntrySupport$Default$
> 	at org.openide.util.lookup.implspi.ActiveQueue$
> 	at
>     Thread Test Watch Dog: testSnapshotFN
> 	at java.lang.Object.wait(
> 	at java.lang.Object.wait(
> 	at org.openide.util.Mutex$QueueCell.sleep(
> 	at org.openide.util.Mutex.enterImpl(
> 	at org.openide.util.Mutex.enter(
> 	at org.openide.util.Mutex.readEnter(
>>	at org.openide.util.Mutex$Privileged.enterReadAccess(
> 	at org.openide.nodes.FilterNode.updateChildren(
> 	at org.openide.nodes.Node.getChildren(
> 	at org.openide.nodes.FilterNode$Children.entrySupport(
> 	at org.openide.nodes.Children$Array.postInitializeEntrySupport(
>>	at org.openide.nodes.FilterNode$Children.entrySupport(
> 	at org.openide.nodes.Children.getNodesCount(
> 	at org.openide.nodes.ChildrenKeysTest.testSnapshotFN(
> 	at org.netbeans.junit.NbTestCase.access$200(
> 	at org.netbeans.junit.NbTestCase$2.doSomething(
> 	at org.netbeans.junit.NbTestCase$
> 	at
Comment 1 Jaroslav Tulach 2010-04-21 15:00:28 UTC
Interesting, thanks.
Comment 2 Jaroslav Tulach 2010-04-23 16:12:32 UTC
Comment 3 Quality Engineering 2010-04-24 05:30:22 UTC
Integrated into 'main-golden', will be available in build *201004240200* on (upload may still be in progress)
User: Jaroslav Tulach <>
Log: #184633: Prevent re-entrant calls to entrySupport(), guard the comment with assert

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