Skip to main content

Deadlock in JDK 6 update 14 build 01 running NetBeans 6.5

1 reply [Last post]
mikael
Offline
Joined: 2004-03-04

On Fedora 10 x64

from JConsole
Virtual Machine: 
OpenJDK 64-Bit Server VM version 14.0-b10

Name: AWT-XAWT
State: BLOCKED on sun.awt.X11.XDialogPeer@19cd4acb owned by: AWT-EventQueue-1
Total blocked: 144 Total waited: 1,424

Stack trace:
sun.awt.X11.XWindow.setMouseAbove(XWindow.java:793)
sun.awt.X11.XWindowPeer.setMouseAbove(XWindowPeer.java:1012)
sun.awt.X11.XWindow.leaveNotify(XWindow.java:803)
sun.awt.X11.XWindow.handleXCrossingEvent(XWindow.java:816)
sun.awt.X11.XWindowPeer.handleXCrossingEvent(XWindowPeer.java:1736)
sun.awt.X11.XBaseWindow.dispatchEvent(XBaseWindow.java:1119)
sun.awt.X11.XBaseWindow.dispatchToWindow(XBaseWindow.java:1079)
sun.awt.X11.XToolkit.dispatchEvent(XToolkit.java:475)
sun.awt.X11.XToolkit.run(XToolkit.java:588)
sun.awt.X11.XToolkit.run(XToolkit.java:523)
java.lang.Thread.run(Thread.java:619)

Name: AWT-EventQueue-1
State: WAITING on java.util.concurrent.locks.ReentrantLock$NonfairSync@5385a49f owned by: AWT-XAWT
Total blocked: 6,584 Total waited: 7,817

Stack trace:
sun.misc.Unsafe.park(Native Method)
java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:747)
java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireQueued(AbstractQueuedSynchronizer.java:778)
java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:1114)
java.util.concurrent.locks.ReentrantLock$NonfairSync.lock(ReentrantLock.java:186)
java.util.concurrent.locks.ReentrantLock.lock(ReentrantLock.java:262)
sun.awt.SunToolkit.awtLock(SunToolkit.java:241)
sun.awt.X11.XDropTargetRegistry.unregisterDropSite(XDropTargetRegistry.java:569)
sun.awt.X11.XWindowPeer.removeDropTarget(XWindowPeer.java:1605)
- locked sun.awt.X11.XDialogPeer@19cd4acb
sun.awt.X11.XComponentPeer.removeDropTarget(XComponentPeer.java:1511)
java.awt.dnd.DropTarget.removeNotify(DropTarget.java:517)
java.awt.Component.removeNotify(Component.java:6727)
- locked java.awt.Component$AWTTreeLock@1f2198ab
java.awt.Container.removeNotify(Container.java:2611)
- locked java.awt.Component$AWTTreeLock@1f2198ab
javax.swing.JComponent.removeNotify(JComponent.java:4699)
java.awt.Container.removeNotify(Container.java:2604)
- locked java.awt.Component$AWTTreeLock@1f2198ab
javax.swing.JComponent.removeNotify(JComponent.java:4699)
java.awt.Container.removeNotify(Container.java:2604)
- locked java.awt.Component$AWTTreeLock@1f2198ab
javax.swing.JComponent.removeNotify(JComponent.java:4699)
java.awt.Container.removeNotify(Container.java:2604)
- locked java.awt.Component$AWTTreeLock@1f2198ab
javax.swing.JComponent.removeNotify(JComponent.java:4699)
javax.swing.JRootPane.removeNotify(JRootPane.java:753)
java.awt.Container.removeAll(Container.java:1219)
- locked java.awt.Component$AWTTreeLock@1f2198ab
javax.swing.JFileChooser.showDialog(JFileChooser.java:725)
javax.swing.JFileChooser.showOpenDialog(JFileChooser.java:626)
org.netbeans.modules.autoupdate.ui.LocalDownloadSupport.chooseNbmFiles(LocalDownloadSupport.java:108)
org.netbeans.modules.autoupdate.ui.UnitTab$AddLocallyDownloadedAction.performerImpl(UnitTab.java:1666)
org.netbeans.modules.autoupdate.ui.UnitTab$TabAction.actionPerformed(UnitTab.java:983)
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
java.awt.Component.processMouseEvent(Component.java:6220)
javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
java.awt.Component.processEvent(Component.java:5985)
java.awt.Container.processEvent(Container.java:2036)
java.awt.Component.dispatchEventImpl(Component.java:4587)
java.awt.Container.dispatchEventImpl(Container.java:2094)
java.awt.Component.dispatchEvent(Component.java:4417)
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4569)
java.awt.LightweightDispatcher.processMouseEvent(Container.java:4233)
java.awt.LightweightDispatcher.dispatchEvent(Container.java:4163)
java.awt.Container.dispatchEventImpl(Container.java:2080)
java.awt.Window.dispatchEventImpl(Window.java:2475)
java.awt.Component.dispatchEvent(Component.java:4417)
java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
anthony_p
Offline
Joined: 2006-07-24

Fixed in 6u12b04. See http://bugs.sun.com/view_bug.do?bug_id=6786210

It's another synchronization issue between 6u12 and 6u14. I guess the bug fix should appear in 6u14b02.