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

VirtualMachine.dispose() hangs on Windows

    Details

    • Subcomponent:
    • Resolved In Build:
      mantis
    • CPU:
      x86
    • OS:
      windows_nt

      Description



      Name: elR10090 Date: 06/18/2001



      Latest builds of Merlin-beta from (build 1.4.0-beta_refresh-b66)
      to
      (build 1.4.0-beta_refresh-b68) failed to pass testbase_nsk tests

          nsk/jdi/EventQueue/remove/remove002
          nsk/jdi/EventQueue/remove/remove_l002

      on Windows. On the all other platforms tests pass successfully.
      Being executed agains earlier builds, right up to Merlin-b65,
      tests pass successfully on all platforms including Windows.

      These tests launch debuggee VM and invoke
      VirtualMachine.dispose()
      to check that VMDisconnectedEvent received.
      However, on Windows, call to VirtualMachine.dispose() never
      returns
      and VM hangs.

      This test appears in the release r05 of testbase_nsk located
      here:

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

      To reproduce the bug use the simplified version of the test
      remove002,
      which can be found here:

          /net/sqesvr.eng/export/vsn/GammaBase/Bugs/<this bug number>

      Just run 'doit.sh' script using such command line:

          sh doit.sh $JAVA_HOME

      Here is log of the test failure on Windows against Merlin-b68:
      -----------------------------------------------------------------
      ------
      $sh doit.sh h:/ld59/java/dest/jdk1.4.0beta-b68/win
      Compiling support classes...
      Compiling test classes...
      java version "1.4.0-beta_refresh"
      Java(TM) 2 Runtime Environment, Standard Edition (build
      1.4.0-beta_refresh-b68)
      Java HotSpot(TM) Client VM (build 1.4.0-beta_refresh-b68, mixed
      mode)
      Running test...
      binder> Listening for a pipe connection to port: 7000
      binder> VirtualMachineManager: version 1.4
      binder> FindingConnector: default
      binder> LaunchingConnector:
      binder> name: com.sun.jdi.CommandLineLaunch
      binder> description: Launches target using Sun Java VM
      command line and attaches to it
      binder> transport:
      com.sun.tools.jdi.SharedMemoryTransport@33955
      binder> Connector arguments:
      binder> home=h:\ld59\java\dest\jdk1.4.0beta-b68\win\jre
      binder> vmexec=java
      binder> options= -classpath
      ".;h:/ld59/java/dest/jdk1.4.0beta-b68/win/lib/tools.jar"
      binder> main=nsk.jdi.EventQueue.remove.remove002t
      "-debugee.vmkeys=" "-verbose" "-waittime=1"
      binder> quote="
      binder> suspend=true
      binder> Launch debugee
      Resuming debugee VM
      binder> Waiting for pipe connection
      debugee.stderr> debugee.pipe> Making pipe connection to socket:
      localhost:7000
      debugee.stderr> Debuggee: ready
      Invoking VirtualMachine.dispose() ...

      <VM hungs>
      -----------------------------------------------------------------
      ------

      Following is log of the test pass on Windows against Merlin-b65:
      -----------------------------------------------------------------
      ------
      $sh doit.sh h:/ld59/java/dest/jdk1.4.0beta-b65/win
      Compiling support classes...
      Compiling test classes...
      java version "1.4.0-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build
      1.4.0-beta-b65)
      Java HotSpot(TM) Client VM (build 1.4.0-beta-b65, mixed mode)
      Running test...
      binder> Listening for a pipe connection to port: 7000
      binder> VirtualMachineManager: version 1.4
      binder> FindingConnector: default
      binder> LaunchingConnector:
      binder> name: com.sun.jdi.CommandLineLaunch
      binder> description: Launches target using Sun Java VM
      command line and attaches to it
      binder> transport:
      com.sun.tools.jdi.SharedMemoryTransport@291aff
      binder> Connector arguments:
      binder> home=h:\ld59\java\dest\jdk1.4.0beta-b65\win
      binder> vmexec=java
      binder> options= -classpath
      ".;h:/ld59/java/dest/jdk1.4.0beta-b65/win/lib/tools.jar"
      binder> main=nsk.jdi.EventQueue.remove.remove002t
      "-debugee.vmkeys=" "-verbose" "-waittime=1"
      binder> quote="
      binder> suspend=true
      binder> Launch debugee
      Resuming debugee VM
      binder> Waiting for pipe connection
      debugee.stderr> debugee.pipe> Making pipe connection to socket:
      localhost:7000
      debugee.stderr> Debuggee: ready
      Invoking VirtualMachine.dispose() ...
      VM disposed!
      Waiting for debugee exit
      debugee.stderr> Debuggee: exiting
      Debuggee's process finished with status: 95
      Java exit code = 97
      -----------------------------------------------------------------
      ------

      ======================================================================

      Name: abR10010 Date: 09/24/2001



          This bug also affects the following testbase_nsk tests:
          
          nsk/jdi/VMDisconnectEvent/_itself_/disconnect002
          nsk/jdi/VirtualMachine/dispose/dispose001
          nsk/jdi/VirtualMachine/dispose/dispose002
          nsk/jdi/VirtualMachine/dispose/dispose003
          nsk/jdi/VirtualMachine/dispose/dispose004
          nsk/jdi/VirtualMachine/dispose/dispose005
          nsk/jdi/VirtualMachineManager/connectedVirtualMachines/convm003
          

      Yuri Kropatchev 2001-09-25
      ###@###.###


      ======================================================================

      Name: elR10090 Date: 12/17/2001


      Ivan Popov <###@###.###>

      This bug also affects the following testbase_nsk test:

        nsk/jdi/EventQueue/remove_l/remove_l002

      which is mentioned with wrong name in the beginning
      of this description section.

      ======================================================================

      Name: vpR10197 Date: 08/27/2002


      This bug also affects the following tests from testbase_nsk:

            nsk/jdi/ClassType/invokeMethod/invokemethod008
            nsk/jdi/ClassType/newInstance/newinstance008

      Vitali Provodine <###@###.###>


      ======================================================================

        Attachments

          Activity

            People

            • Assignee:
              dcubed Daniel Daugherty
              Reporter:
              latkinsunw Latkin Latkin (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: