The application is exited when break point is set in an empty method in Hotspot VM under JDK 1.3 fcs M build.
Steps to reproduce
1. Compile the attached file with -g
2. run jdb EventTest
3. stop in EventTest.testMethod()
4. run
5. next
6. cont
The appliaction runs to completion after this step.
A testcase is also attached where the loop count is 100. The testcase runs in JDIScaffold frame work
The application is terminated before expected, as a result VMDisconnected expetion is thrown. The point where the application is terminated is inconsistent.
------------------------------------------------------------
com.sun.jdi.VMDisconnectedException: Bad file number
at com.sun.tools.jdi.TargetVM.send(TargetVM.java:271)
at com.sun.tools.jdi.VirtualMachineImpl.sendToTarget(VirtualMachineImpl.java:696)
at com.sun.tools.jdi.PacketStream.send(PacketStream.java:55)
at com.sun.tools.jdi.JDWP$VirtualMachine$Resume.enqueueCommand(JDWP.java:603)
at com.sun.tools.jdi.VirtualMachineImpl$1.send(VirtualMachineImpl.java:287)
at com.sun.tools.jdi.VMState.thawCommand(VMState.java:108)
at com.sun.tools.jdi.VirtualMachineImpl.resume(VirtualMachineImpl.java:291)
at EventStress$StressList.stepCompleted(EventStress.java:225)
at JDIScaffold$EventHandler.notifyEvent(JDIScaffold.java:114)
at JDIScaffold$EventHandler.run(JDIScaffold.java:159)
at java.lang.Thread.run(Thread.java:488)
--------------------------------------------------------------------
public class EventTest {
public static EventTest e;
private static final int cnt = 10;
static Class[] clsName = new Class[cnt];
private static int i;
EventTest() {
}
public static void main(String args[])
{
e=new EventTest();
for(int i=0; i<cnt; i++){
testMethod();
}
}
public static void testMethod(){
}
}
Steps to reproduce
1. Compile the attached file with -g
2. run jdb EventTest
3. stop in EventTest.testMethod()
4. run
5. next
6. cont
The appliaction runs to completion after this step.
A testcase is also attached where the loop count is 100. The testcase runs in JDIScaffold frame work
The application is terminated before expected, as a result VMDisconnected expetion is thrown. The point where the application is terminated is inconsistent.
------------------------------------------------------------
com.sun.jdi.VMDisconnectedException: Bad file number
at com.sun.tools.jdi.TargetVM.send(TargetVM.java:271)
at com.sun.tools.jdi.VirtualMachineImpl.sendToTarget(VirtualMachineImpl.java:696)
at com.sun.tools.jdi.PacketStream.send(PacketStream.java:55)
at com.sun.tools.jdi.JDWP$VirtualMachine$Resume.enqueueCommand(JDWP.java:603)
at com.sun.tools.jdi.VirtualMachineImpl$1.send(VirtualMachineImpl.java:287)
at com.sun.tools.jdi.VMState.thawCommand(VMState.java:108)
at com.sun.tools.jdi.VirtualMachineImpl.resume(VirtualMachineImpl.java:291)
at EventStress$StressList.stepCompleted(EventStress.java:225)
at JDIScaffold$EventHandler.notifyEvent(JDIScaffold.java:114)
at JDIScaffold$EventHandler.run(JDIScaffold.java:159)
at java.lang.Thread.run(Thread.java:488)
--------------------------------------------------------------------
public class EventTest {
public static EventTest e;
private static final int cnt = 10;
static Class[] clsName = new Class[cnt];
private static int i;
EventTest() {
}
public static void main(String args[])
{
e=new EventTest();
for(int i=0; i<cnt; i++){
testMethod();
}
}
public static void testMethod(){
}
}
- relates to
-
JDK-4248826 Method entry/exit events are not created for empty methods in Hotspot VM
-
- Closed
-
-
JDK-4298263 JVMDI: HotSparc VM crashes when JVMDI_EVENT_SINGLE_STEP is set after BREAKPOINT
-
- Closed
-
-
JDK-6494989 Breakpoints in empty finalizer methods treated incorrectly
-
- Closed
-