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 233070 - 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.4
Hardware: All All
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-19 13:15 UTC by rodrigorsantos
Modified: 2013-07-26 02:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 202317


Attachments
stacktrace (1.82 KB, text/plain)
2013-07-19 13:15 UTC, rodrigorsantos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rodrigorsantos 2013-07-19 13:15:57 UTC
Build: NetBeans IDE Dev (Build 20130717-a8a6d26d6326)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.21-b01, Java(TM) SE Runtime Environment, 1.7.0_21-b11
OS: Linux

User Comments:
rodrigorsantos: <Please provide a description of the problem or the steps to reproduce>
Error ocurred in debug class




Stacktrace: 
com.sun.jdi.InvalidStackFrameException: Thread has been resumed
   at com.sun.tools.jdi.StackFrameImpl.validateStackFrame(StackFrameImpl.java:80)
   at com.sun.tools.jdi.StackFrameImpl.location(StackFrameImpl.java:89)
   at com.zeroturnaround.jdi.util.StackFrameUtil.filter(StackFrameUtil.java:28)
   at com.zeroturnaround.jdi.JRThreadReference.frames(JRThreadReference.java:58)
   at com.zeroturnaround.jdi.JRThreadReference.frameCount(JRThreadReference.java:50)
   at com.sun.tools.jdi.ThreadReferenceImpl$$$.frameCount(ThreadReferenceImpl.java:60000)
Comment 1 rodrigorsantos 2013-07-19 13:15:58 UTC
Created attachment 137447 [details]
stacktrace
Comment 2 Martin Entlicher 2013-07-25 11:46:50 UTC
IMHO this is a defect of zeroturnaround, because throwing InvalidStackFrameException from ThreadReference.frameCount() looks quite unexpected.
I'll write a workaround for that.
Comment 4 Martin Entlicher 2013-07-25 12:40:49 UTC
Workaround was implemented in changeset:   259853:d669ec4e6cda
http://hg.netbeans.org/core-main/rev/d669ec4e6cda
Comment 5 Quality Engineering 2013-07-26 02:50:42 UTC
Integrated into 'main-silver', will be available in build *201307252300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/d669ec4e6cda
User: mentlicher@netbeans.org
Log: #233070: ThreadReference.frameCount() can throw InvalidStackFrameException.