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 56233 - Evaluation of expression can lead to IDE deadlock.
Summary: Evaluation of expression can lead to IDE deadlock.
Status: CLOSED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@debugger
URL:
Keywords:
: 51023 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-03-11 09:33 UTC by Jan Jancura
Modified: 2010-04-29 09:21 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
text (20.56 KB, text/rtf)
2005-03-11 09:34 UTC, Jan Jancura
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Jancura 2005-03-11 09:33:31 UTC
public class NewClass {
    
    NewClass () {
        a (); // put breakpoint here and evaluate "a()" expression
    }
    
    String a () {
        for (;;) {
            System.out.println("sdfasgadfgadg");
        }
    }
    
    public static void main(String[] args) {
        new NewClass ();
    }
}

this example leads to deadlock of ide after several steps
Comment 1 Jan Jancura 2005-03-11 09:34:23 UTC
Created attachment 20770 [details]
text
Comment 2 Jan Jancura 2005-03-11 09:38:26 UTC
*** Issue 51023 has been marked as a duplicate of this issue. ***
Comment 3 Jan Jancura 2005-03-11 09:39:45 UTC
This problem ca occurre if debugger is evaluating some expression containing
method call. If this method call is blockind, there is high danger of deadlock.
Comment 4 Roman Ondruska 2005-03-16 13:28:37 UTC
Fixed:

cvs commit -m "PATCH for #56233" JPDADebuggerImpl.java (in directory 
C:\SOURCE\debuggerjpda\src\org\netbeans\modules\debugger\jpda\)
Checking in JPDADebuggerImpl.java;
/cvs/debuggerjpda/src/org/netbeans/modules/debugger/jpda/JPDADebuggerImpl.java,
v  <--  JPDADebuggerImpl.java
new revision: 1.62; previous revision: 1.61
done

Comment 5 Max Sauer 2005-07-08 12:07:32 UTC
Please verify this issue.
Comment 6 Quality Engineering 2010-04-29 09:21:22 UTC
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.