JDK-4791812 : JDWP: nsk/jdwp/VirtualMachine/Exit/exit001 fail on Win98
  • Type: Bug
  • Component: core-svc
  • Sub-Component: debugger
  • Affected Version: 1.4.0,1.4.1,1.4.2
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_98
  • CPU: x86
  • Submitted: 2002-12-11
  • Updated: 2003-01-10
  • Resolved: 2003-01-06
Related Reports
Duplicate :  
Description
----------------------------------------
Test:	nsk/jdwp/VirtualMachine/Exit/exit001
JDK:	Mantis b09
VM:	Server, client
Mode:	comp, mixed
OS: 	Win98 only
----------------------------------------

********************************
TEST ERROR OUTPUT
********************************
#!C:/MKS/MKSNT/sh.exe

PATH="Y:/weekly/mantis/JDK/latest/win/bin\;Y:/weekly/mantis/DTWS/suites/NSK_FULLLOOK/testbase/src/nsk/share/lib/wintel;"
SHELL=C:/MKS/MKSNT/sh.exe
RAS_OPTIONS=
CLASSPATH="C:/exec1/NSK_FULLLOOK-WEEKLY-VM-ServerVM-comp-WINDOWS98-2002.12.05.20.26.10/hnguyen.Win98.x86/exit001;Y:/weekly/mantis/DTWS/suites/NSK_FULLLOOK/testbase/src/classes\;\;Y:/weekly/mantis/DTWS/suites/NSK_FULLLOOK/testbase/src/classes\;\;\;Y:/weekly/mantis/JDK/latest/win/lib/tools.jar\;\;\;Y:/weekly/mantis/DTWS/suites/NSK_FULLLOOK/testbase/JCKS/JCK-118a\;Y:/weekly/mantis/DTWS/suites/NSK_FULLLOOK/testbase/JCKS/JCK-118a/javatest.jar\;Y:/weekly/mantis/DTWS/suites/NSK_FULLLOOK/testbase/JCKS/JCK-118a/classes\;Y:/weekly/mantis/JDK/latest/win/classes\;Y:/weekly/mantis/JDK/latest/win/lib/tools.jar\;\;\;Y:/weekly/mantis/DTWS/suites/NSK_FULLLOOK/testbase/JCKS/JCK-118a\;Y:/weekly/mantis/DTWS/suites/NSK_FULLLOOK/testbase/JCKS/JCK-118a/javatest.jar\;Y:/weekly/mantis/DTWS/suites/NSK_FULLLOOK/testbase/JCKS/JCK-118a/classes\;Y:/weekly/mantis/JDK/latest/win/classes"
WINDIR=C:/windows
SystemRoot=C:/windows

while [ $# -gt 0 ];
do
  if [ $1 = "-jdk" ]; then
        shift 1
        PATH=${1}/bin;${PATH}
        shift 1
  fi
done

export PATH
export SHELL
export RAS_OPTIONS
export CLASSPATH
export WINDIR
export SystemRoot

#annotate TEST javaopt=-server -server -Xcomp -XX:-ShowMessageBoxOnError
Y:/weekly/mantis/JDK/latest/win/bin/java -server -DHANGINGJAVA-49679033 -server -Xcomp -XX:-ShowMessageBoxOnError nsk.jdwp.VirtualMachine.Exit.exit001 -arch=wintel -waittime=2 -debugee.vmkind=java "-debugee.vmkeys=-server -DHANGINGJAVA-49679033 -server -Xcomp -XX:-ShowMessageBoxOnError -DHANGINGJAVA-49679033 -server -Xcomp"
##Exit status of execution step=97
##!checkExitCode

##>  
##>  WARNING: switching log to verbose mode,
##>      because error is complained
##>  
#Start debugee VM
#Debugee> Starting java process:
#Y:\WEEKLY\MANTIS\JDK\LATEST\WIN\JRE\bin\java "-server" "-DHANGINGJAVA-49679033" "-server" "-Xcomp" "-XX:-ShowMessageBoxOnError" "-DHANGINGJAVA-49679033" "-server" "-Xcomp" "-Xdebug" "-Xrunjdwp:server=y,transport=dt_socket,address=8000" "nsk.jdwp.VirtualMachine.Exit.exit001a" "-arch=wintel" "-waittime=2" "-debugee.vmkind=java" "-debugee.vmkeys=-server -DHANGINGJAVA-49679033 -server -Xcomp -XX:-ShowMessageBoxOnError -DHANGINGJAVA-49679033 -server -Xcomp"
#Debugee> Establishing JDWP socket connection
#Debugee> Attaching to debugee: localhost:8000
#transport> JDWP socket connection established
#Waiting for VM_INIT event
#Querying for IDSizes
#Resume debugee VM
#Waiting for command: ready
#Received command: ready
#Creating command packet for VirtualMachine.Exit with exit code: 15
#Sending command packet:
#Packet header (11 bytes):
#    0000 (length) : 0x0000000f (15)
#    0004 (id)     : 0x00000003 (3)
#    0008 (flags)  : 0x00 (0)
#    0009 (cmd set): 0x01 (1)
#    000a (command): 0x0a (10)
#Entire packet (15 bytes): 
#    0000: 00 00 00 0f 00 00 00 03 00 01 0a 00 00 00 0f      ...............
#Packet end
#Waiting for reply packet
## ERROR: Exception catched: java.net.SocketException: Connection reset
#IOPipe> WARNING: IOPipe connection aborted:
#       java.net.SocketException: Connection reset
## ERROR: TEST FAILED
#
#
##>  
##>  SUMMARY: Following errors occured
##>      during test execution:
##>  
## ERROR: Exception catched: java.net.SocketException: Connection reset
## ERROR: TEST FAILED

*****************************
TO REPRODUCE THE BUG
*****************************
1. cd /net/jano.sfbay/export/disk20/GammaBase/Bugs/[bug ID]/
2. run rerun.sh

Comments
WORK AROUND
11-06-2004

PUBLIC COMMENTS
10-06-2004

EVALUATION The exit command results in the JDWP stub terminating the VM in a non-graceful manner. Specifically if the reply packet isn't transmitted before the VM terminates then the connection is reset (RST bit set). This is a duplicate of 4742013. ###@###.### 2003-01-06
06-01-2003