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

JDI: VMDisconnectEvent is not received after VirtualMachine.dispose()

XMLWordPrintable

    • generic
    • generic



      Name: dkR10014 Date: 03/02/2001


       The Hotspot VM fails to pass the following test from testbase_nsk:

         nsk/jdi/VMDisconnectEvent/_itself_/disconnect002

      The test exercises com.sun.jdi.event.VMDisconnectEvent interface.
      According to spec of com.sun.jdi.event.VMDisconnectEvent interface, the test
      checks that VMDisconnectEvent is received by debugger after invocation
      com.sun.jdi.VirtualMachine.dispose() method for debugged VM.

      The test works as follows:

      the debugger part of the test (disconnect002.java) lanches and connects
      to the debugged part (disconnect002a.java) using the default launching connector.
      The debugger starts listener thread for listening event delivered from debugged
      VM. Then VirtualMachine.dispose() method is invoked. After this the main thread of
      debugger waits of terminating of the listener thread using Thread.join() method.
      Listener terminates upon receiving VMDisconnectEvent.

      The test passes if VMDisconnectEvent is received. If not, the test
      fails with interruption caused by timer thread started in debugger.

      The failure of this test is observed on ladybird-rc1-b17 and
      on merlin-beta-b52 on various H/S configurations:

                   Ladybird Merlin

       Windows fails fails
       Sol sparc intmly fails intmly fails
       Sol x86 intmly fails fails
       Linux fails fails
       
      were H/S configurations are:

       Windows - P-II 350MHz, 128Mb RAM, Win NT 4.0 SP6
       Linux - dual P-III 600MHz, 512Mb RAM, Linux Red Hat 6.2
       Sol x86 - dual P-III 600MHz, 512Mb RAM, Solaris 8 for x86
       Sol sparc - ULTRA 60 UltraSparc 450 MHz, 512 RAM, Solaris sparc 8

      Error message from test output:
      ----------------------------------------------------
      Event received: VMStartEvent in thread main
      Invoking VirtualMachine.dispose() for debugee.
      Waiting for event listener terminating
      Waiting for debugee terminating
      Timeout for test execution was exceeded
      # ERROR: FAILURE 2: VMDisconnectEvent is not received.
      # ERROR: Debugee VM was not terminated yet. Trying to kill it.

      nsk.jdi.share.Failure: com.sun.jdi.VMDisconnectedException
             at nsk.jdi.share.EventListener.run(EventListener.java:182)
      ---------------------------------------------------

      The test will appear in the next testbase_nsk release r02 located at:

          /net/sqesvr.eng/export/vsn/VM/testbase/testbase_nsk

      Steps to reproduce:
        1. cd /net/sqesvr.eng/export/vsn/GammaBase/Bugs/<this bug number>
        2. sh ./doit.sh $JAVA_HOME

      Input parameter -waittime of nsk.jdi.VMDisconnectEvent._itself_.disconnect002
      specifies timeout in minutes for test execution.
       
      ======================================================================

            rfield Robert Field (Inactive)
            kdossunw Kdos Kdos (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: