Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4289162

Application is running to completion for a break point in Empty Method

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.3.0
    • 1.3.0
    • vm-legacy
    • None
    • kestrel
    • sparc
    • solaris_7
    • Not verified

      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(){
              }
      }

            pbk Peter Kessler
            sshakilasunw Shahulhameedmohaideenhaleema Shakila (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: