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

Negative value of thread status in reply packet

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • None
    • 5.0
    • core-svc
    • itanium
    • other

      Testcase:
      ----------

      nsk/jdwp/ThreadReference/Status/status001


      jdk: tiger-beta b26
      VM: server
      mode: -XX:+UseSerialGC
      OS: Windows Server 2003 (Itanium 2)



      Location of the log files -
      ------------------------------

      /java/sqa/st4/VM/tiger/DTWS/results/1.5.0-beta-b26/ServerVM/64BITWINDOWS03/comp/VM/VM_FULLLOOK-WEEKLY-VM-ServerVM-comp-64BITWINDOWS03-en-2003-10-31-16-21-53-0278/ResultDir/status001

      Here is the status001.tlog file
      -------------------------------


      #!C:/PROGRA~2/MKSTOO~1/mksnt/sh.exe

      CLASSPATH="Y:/st4/VM/tiger/DTWS/exec1/VM_FULLLOOK-WEEKLY-VM-ServerVM-comp-64BITWINDOWS03-en-2003-10-31-16-21-53-0278/work/Administrator.Windows_2003.ia64/status001;Y:/st4/VM/tiger/DTWS/suites/VM_FULLLOOK/testbase/bin/classes\;:Y:/st4/VM/tiger/DTWS/suites/VM_FULLLOOK/testbase/bin/classes\;:;Y:/st4/VM/tiger/JDK/latest/windows-ia64/lib/tools.jar\;:\;Y:/st4/VM/tiger/DTWS/suites/VM_FULLLOOK/testbase/JCKS/JCK-118a\;Y:/st4/VM/tiger/DTWS/suites/VM_FULLLOOK/testbase/JCKS/JCK-118a/javatest.jar\;Y:/st4/VM/tiger/DTWS/suites/VM_FULLLOOK/testbase/JCKS/JCK-118a/classes\;Y:/st4/VM/tiger/JDK/latest/windows-ia64/classes;Y:/st4/VM/tiger/JDK/latest/windows-ia64/lib/tools.jar\;:\;Y:/st4/VM/tiger/DTWS/suites/VM_FULLLOOK/testbase/JCKS/JCK-118a\;Y:/st4/VM/tiger/DTWS/suites/VM_FULLLOOK/testbase/JCKS/JCK-118a/javatest.jar\;Y:/st4/VM/tiger/DTWS/suites/VM_FULLLOOK/testbase/JCKS/JCK-118a/classes\;Y:/st4/VM/tiger/JDK/latest/windows-ia64/classes"
      SHELL=C:/PROGRA~2/MKSTOO~1/mksnt/sh.exe
      PATH="Y:/st4/VM/tiger/JDK/latest/windows-ia64/bin;Y:/st4/VM/tiger/DTWS/suites/VM_FULLLOOK/testbase/src/nsk/share/lib/winia64;"
      RAS_OPTIONS=
      SystemRoot=C:/windows
      WINDIR=C:/windows

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

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

      #annotate TEST javaopt=-server -XX:-ShowMessageBoxOnError -server -XX:+UseSerialGC
      Y:/st4/VM/tiger/JDK/latest/windows-ia64/bin/java -server -XX:-ShowMessageBoxOnError -DHANGINGJAVA2728 -server -XX:+UseSerialGC nsk.jdwp.ThreadReference.Status.status001 -arch=winia64 -waittime=2 -debugee.vmkind=java "-debugee.vmkeys=-server -XX:-ShowMessageBoxOnError -DHANGINGJAVA2728 -server -XX:+UseSerialGC"
      ##Exit status of execution step=97
      ##!checkExitCode

      #debugee.stdout> Listening for transport dt_socket at address: 8000
      ##>
      ##> WARNING: switching log to verbose mode,
      ##> because error is complained
      ##>
      #
      #>>> Preparing debugee for testing
      #
      #Launching debugee
      #Debugee> Starting java process:
      #"Y:\st4\VM\tiger\JDK\latest\windows-ia64\jre\bin\java" "-server" "-XX:-ShowMessageBoxOnError" "-DHANGINGJAVA2728" "-server" "-XX:+UseSerialGC" "-Xdebug" "-Xrunjdwp:server=y,transport=dt_socket,address=8000" "nsk.jdwp.ThreadReference.Status.status001a" "-arch=winia64" "-waittime=2" "-debugee.vmkind=java" "-debugee.vmkeys=-server -XX:-ShowMessageBoxOnError -DHANGINGJAVA2728 -server -XX:+UseSerialGC"
      #Debugee> Establishing JDWP socket connection
      #Debugee> Attaching to debugee: localhost:8000
      #transport> Attempt #0 to establish JDWP socket connection failed:
      # java.net.ConnectException: Connection refused: connect
      #debugee.stdout> Listening for transport dt_socket at address: 8000
      #transport> JDWP socket connection established
      #Waiting for VM_INIT event
      #Querying for IDSizes
      #Resuming debugee VM
      #Waiting for signal from debugee: ready
      #Received signal from debugee: ready
      #
      #>>> Obtaining requred data from debugee
      #
      #Getting classID by signature:
      # Lnsk/jdwp/ThreadReference/Status/status001a$TestedClass;
      # got classID: 2
      #Getting threadID value from static field: thread
      # got threadID: 3
      #
      #>>> Testing JDWP command
      #
      #Create command packet:
      #Command: ThreadReference.Status
      # threadID: 3
      #Sending command packet:
      #Packet header (11 bytes):
      # 0000 (length) : 0x00000013 (19)
      # 0004 (id) : 0x00000006 (6)
      # 0008 (flags) : 0x00 (0)
      # 0009 (cmd set): 0x0b (11)
      # 000a (command): 0x04 (4)
      #Entire packet (19 bytes):
      # 0000: 00 00 00 13 00 00 00 06 00 0b 04 00 00 00 00 00 ................
      # 0010: 00 00 03 ...
      #Packet end
      #Waiting for reply packet
      #Reply packet received:
      #Packet header (11 bytes):
      # 0000 (length) : 0x00000013 (19)
      # 0004 (id) : 0x00000006 (6)
      # 0008 (flags) : 0x80 (-128)
      # 000a (error) : 0x0000 (0)
      #Entire packet (19 bytes):
      # 0000: 00 00 00 13 00 00 00 06 80 00 00 ff ff ff ff 00 ................
      # 0010: 00 00 00 ...
      #Packet end
      #Checking reply packet header
      #Parsing reply packet:
      # threadStatus: -1=unknown
      # suspendStatus: 0=NONE
      ## ERROR: Negative value of thread status in reply packet: -1=unknown
      ## ERROR: Unexpected thread status returned in the reply packet: -1=unknown (expected: 1=RUNNING or 3=MONITOR)
      #
      #>>> Finishing test
      #
      #Sending signal to debugee: quit
      #Waiting for debugee exits
      #Debugee PASSED with exit code: 95
      ## ERROR: TEST FAILED
      #
      #
      ##>
      ##> SUMMARY: Following errors occured
      ##> during test execution:
      ##>
      ## ERROR: Negative value of thread status in reply packet: -1=unknown
      ## ERROR: Unexpected thread status returned in the reply packet: -1=unknown (expected: 1=RUNNING or 3=MONITOR)
      ## ERROR: TEST FAILED

            dcubed Daniel Daugherty
            anprabha Anjana Prabhakar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: