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 92716 - Deadlock during debugging
Summary: Deadlock during debugging
Status: CLOSED DUPLICATE of bug 92773
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@debugger
URL:
Keywords: THREAD
Depends on:
Blocks:
 
Reported: 2007-01-17 16:05 UTC by pzajac
Modified: 2010-04-29 09:31 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
threads dump (23.86 KB, text/plain)
2007-01-17 16:05 UTC, pzajac
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pzajac 2007-01-17 16:05:07 UTC
[200701161900]
Editor is waiting in AWT-EVentQueue

"AWT-EventQueue-1" prio=1 tid=0x0854bd28 nid=0x277a in Object.wait()
[0xb0cfc000..0xb0cfce30]
        at java.lang.Object.wait(Native Method)
        - waiting on <0x809cefe8> (a org.netbeans.modules.editor.java.JavaDocument)
        at java.lang.Object.wait(Object.java:474)
        at javax.swing.text.AbstractDocument.writeLock(AbstractDocument.java:1349)
        - locked <0x809cefe8> (a org.netbeans.modules.editor.java.JavaDocument)
        at org.netbeans.editor.BaseDocument.extWriteLock(BaseDocument.java:1403)
        - locked <0x809cefe8> (a org.netbeans.modules.editor.java.JavaDocument)
        at org.netbeans.editor.BaseDocument.atomicLock(BaseDocument.java:1438)
        - locked <0x809cefe8> (a org.netbeans.modules.editor.java.JavaDocument)
        at org.netbeans.editor.GuardedDocument.runAtomic(GuardedDocument.java:222)
        at
org.openide.text.CloneableEditorSupport$CESUndoRedoManager$RenderUndo.<init>(CloneableEditorSupport.java:2738)
        at
org.openide.text.CloneableEditorSupport$CESUndoRedoManager$RenderUndo.<init>(CloneableEditorSupport.java:2730)
        at
org.openide.text.CloneableEditorSupport$CESUndoRedoManager.canUndo(CloneableEditorSupport.java:2665)
Comment 1 pzajac 2007-01-17 16:05:51 UTC
Created attachment 37456 [details]
threads dump
Comment 2 Miloslav Metelka 2007-01-17 17:13:44 UTC
This seems to be the following situation:
1) AWT waits for a document to write-lock it
2) Tooltip evaluator calls Debugger's tooltip annotation under the readlock.
3) As the SwingUtilities.invokeAndWait() gets called by the annotation there is
a deadlock.
Reassigning to debuggerjpda whether you can eliminate
SwingUtilities.invokeAndWait() from your code.
Comment 3 Martin Entlicher 2007-01-22 17:15:30 UTC
This is hopefully fixed by the fix of issue #92773. Please verify.

*** This issue has been marked as a duplicate of 92773 ***
Comment 4 Quality Engineering 2010-04-29 09:31:46 UTC
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.