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

JDI: VMDisconnectEvent is not received after VirtualMachine.exit(int)

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_/disconnect003

      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.exit(int) method for debugged VM.

      The test works as follows:

      the debugger part of the test (disconnect003.java) lanches and connects
      to the debugged part (disconnect003a.java) using the default launching connector.
      The debugger starts listener thread for listening event delivered from debugged
      VM. Then VirtualMachine.exit(int) method is invoked. After this the main thread of
      debugger waits of terminating of the listener thread using Thread.join() method.
      Listener terminates properly upon receiving VMDisconnectEvent or terminates
      abruptly due to VMDisconnectedException.

      The test passes only if VMDisconnectEvent is received.

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

                             Ladybird Merlin

       Windows intmly fails fails
       Sol sparc intmly fails intmly fails
       Sol x86 intmly fails intmly 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:
      ----------------------------------------------------
      Invoking VirtualMachine.exit(int) for debugee.
      nsk.jdi.share.Failure: com.sun.jdi.VMDisconnectedException
              at nsk.jdi.share.EventListener.run(EventListener.java:182)
      Waiting for event listener terminating
      Waiting for debugee terminating
      # ERROR: FAILURE 1: VMDisconnectEvent is not received after target VM terminating
      ---------------------------------------------------

      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_.disconnect003
      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: