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 202813 - com.sun.jdi.InvalidStackFrameException: Thread has been resumed
Summary: com.sun.jdi.InvalidStackFrameException: Thread has been resumed
Status: RESOLVED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 7.0
Hardware: All All
: P2 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
: 203493 204936 204937 205423 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-09-29 09:44 UTC by Vladimir Voskresensky
Modified: 2012-09-22 02:18 UTC (History)
12 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 171895


Attachments
stacktrace (1.72 KB, text/plain)
2011-09-29 09:44 UTC, Vladimir Voskresensky
Details
stacktrace (2.42 KB, text/plain)
2011-10-20 10:08 UTC, jmichelberger
Details
stacktrace (2.84 KB, text/plain)
2012-02-16 10:43 UTC, Jan Becicka
Details
stacktrace (1.99 KB, text/plain)
2012-05-31 15:40 UTC, Alexander Simon
Details
stacktrace (2.59 KB, text/plain)
2012-06-06 11:55 UTC, Tomas Mysik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Voskresensky 2011-09-29 09:44:38 UTC
Build: NetBeans IDE Dev (Build 20110929-a85624a5b652)
VM: Java HotSpot(TM) Client VM, 14.0-b16, Java(TM) SE Runtime Environment, 1.6.0_14-b08
OS: SunOS

User Comments:
vv159170: baloon evaluation over 
private static final boolean DISABLED
variable

GUEST: debug during load of osgi module.




Stacktrace: 
com.sun.jdi.InvalidStackFrameException: Thread has been resumed
   at com.sun.tools.jdi.StackFrameImpl.validateStackFrame(StackFrameImpl.java:62)
   at com.sun.tools.jdi.StackFrameImpl.location(StackFrameImpl.java:71)
   at org.netbeans.modules.debugger.jpda.jdi.StackFrameWrapper.location(StackFrameWrapper.java:279)
   at org.netbeans.modules.debugger.jpda.SourcePath.getURL(SourcePath.java:167)
   at org.netbeans.modules.debugger.jpda.JavaEvaluator.evaluateIn(JavaEvaluator.java:122)
   at org.netbeans.modules.debugger.jpda.JavaEvaluator.evaluate(JavaEvaluator.java:91)
Comment 1 Vladimir Voskresensky 2011-09-29 09:44:42 UTC
Created attachment 111300 [details]
stacktrace
Comment 2 Martin Entlicher 2011-10-14 17:30:46 UTC
*** Bug 203493 has been marked as a duplicate of this bug. ***
Comment 3 jmichelberger 2011-10-20 10:08:55 UTC
Created attachment 112257 [details]
stacktrace
Comment 4 Martin Entlicher 2011-11-21 10:06:05 UTC
*** Bug 204936 has been marked as a duplicate of this bug. ***
Comment 5 Martin Entlicher 2011-11-21 10:06:10 UTC
*** Bug 204937 has been marked as a duplicate of this bug. ***
Comment 6 Martin Entlicher 2011-11-22 13:35:36 UTC
*** Bug 205423 has been marked as a duplicate of this bug. ***
Comment 7 Martin Entlicher 2011-11-24 15:35:16 UTC
When this happens, do your breakpoints suspend only the current thread (the default), or did you change them to suspend all threads?
Comment 8 Egor Ushakov 2011-11-29 10:58:14 UTC
I did not change anything in breakpoints settings (all default values)
Comment 9 Jan Becicka 2012-02-16 10:43:03 UTC
Created attachment 115802 [details]
stacktrace
Comment 10 Alexander Simon 2012-05-31 15:40:01 UTC
Created attachment 120149 [details]
stacktrace
Comment 11 Tomas Mysik 2012-06-06 11:55:15 UTC
Created attachment 120424 [details]
stacktrace

debugging nb module
Comment 12 Marian Mirilovic 2012-09-20 13:15:27 UTC
116 dups ... at least P2
Comment 13 Martin Entlicher 2012-09-20 14:59:41 UTC
There is no report from JDK 7, which suggests that this arise from some inconsistency in JDI. There was bug http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6700889 which can cause exceptions like this at any time and maybe there are some more fixes of this sort in JDK 7.
I'm afraid that we can only try to make the probability of this issue lower.
Comment 14 Martin Entlicher 2012-09-20 15:56:44 UTC
Workarounded by changeset:   233854:ac1ba4273d76
http://hg.netbeans.org/main/rev/ac1ba4273d76
Comment 15 Quality Engineering 2012-09-22 02:18:22 UTC
Integrated into 'main-golden', will be available in build *201209220001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/ac1ba4273d76
User: mentlicher@netbeans.org
Log: #202813: When we happen to have the stack frames invalidated in between, try again.