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

Summary: com.sun.jdi.InvalidStackFrameException: Thread has been resumed
Product: debugger Reporter: rodrigorsantos <rodrigorsantos>
Component: JavaAssignee: Martin Entlicher <mentlicher>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 202317
Attachments: stacktrace

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.