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

jdwp/ThreadReference/ThreadGroup/threadgroup001 failed with "Unexpected threadGroupID returned for a thread: 0 (expected: 2)"

XMLWordPrintable

    • aarch64
    • os_x

      The following test failed in the JDK23 CI:

      vmTestbase/nsk/jdwp/ThreadReference/ThreadGroup/threadgroup001/TestDescription.java

      Here's a snippet from the log file:

      #section:main
      ----------messages:(6/1443)----------
      command: main nsk.jdwp.ThreadReference.ThreadGroup.threadgroup001 -arch=mac-aarch64 -verbose -waittime=5 -debugee.vmkind=java -transport.address=dynamic -debugee.vmkeys="-XX:MaxRAMPercentage=6.25 -Dtest.boot.jdk=/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk/21/35/bundles/macos-aarch64/jdk-21_macos-aarch64_bin.tar.gz/jdk-21.jdk/Contents/Home -Djava.io.tmpdir=/System/Volumes/Data/mesos/work_dir/slaves/0db9c48f-6638-40d0-9a4b-bd9cc7533eb8-S29312/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/0867f005-8160-4245-bf7d-bf0376d1378f/runs/d5e25221-8213-49ad-9649-1e9ad5145862/testoutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_nsk_jdwp/tmp -Dcom.oracle.usagetracker.config.file=/System/Volumes/Data/mesos/work_dir/slaves/0db9c48f-6638-40d0-9a4b-bd9cc7533eb8-S29312/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/0867f005-8160-4245-bf7d-bf0376d1378f/runs/d5e25221-8213-49ad-9649-1e9ad5145862/./testoutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_nsk_jdwp/usage-tracker.cfg "
      reason: User specified action: run main/othervm nsk.jdwp.ThreadReference.ThreadGroup.threadgroup001 -arch=${os.family}-${os.simpleArch} -verbose -waittime=5 -debugee.vmkind=java -transport.address=dynamic -debugee.vmkeys="${test.vm.opts} ${test.java.opts}"
      started: Sat Dec 16 19:15:13 GMT 2023
      Mode: othervm [/othervm specified]
      finished: Sat Dec 16 19:15:14 GMT 2023
      elapsed time (seconds): 1.174
      ----------configuration:(0/0)----------
      ----------System.out:(205/9153)----------
      Start debugee VM
      transport> port == 0, disabling SO_REUSEADDR
      Debugee> Starting java process:
      "/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-23+3-93/macosx-aarch64-debug.jdk/jdk-23/fastdebug/bin/java" "-XX:MaxRAMPercentage=6.25" "-Dtest.boot.jdk=/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk/21/35/bundles/macos-aarch64/jdk-21_macos-aarch64_bin.tar.gz/jdk-21.jdk/Contents/Home" "-Djava.io.tmpdir=/System/Volumes/Data/mesos/work_dir/slaves/0db9c48f-6638-40d0-9a4b-bd9cc7533eb8-S29312/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/0867f005-8160-4245-bf7d-bf0376d1378f/runs/d5e25221-8213-49ad-9649-1e9ad5145862/testoutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_nsk_jdwp/tmp" "-Dcom.oracle.usagetracker.config.file=/System/Volumes/Data/mesos/work_dir/slaves/0db9c48f-6638-40d0-9a4b-bd9cc7533eb8-S29312/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/0867f005-8160-4245-bf7d-bf0376d1378f/runs/d5e25221-8213-49ad-9649-1e9ad5145862/./testoutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_nsk_jdwp/usage-tracker.cfg" "-Xrunjdwp:server=n,transport=dt_socket,address=localhost:56936,includevirtualthreads=y" "nsk.jdwp.ThreadReference.ThreadGroup.threadgroup001a" "-arch=mac-aarch64" "-verbose" "-waittime=5" "-debugee.vmkind=java" "-transport.address=dynamic" "-debugee.vmkeys="-XX:MaxRAMPercentage=6.25 -Dtest.boot.jdk=/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk/21/35/bundles/macos-aarch64/jdk-21_macos-aarch64_bin.tar.gz/jdk-21.jdk/Contents/Home -Djava.io.tmpdir=/System/Volumes/Data/mesos/work_dir/slaves/0db9c48f-6638-40d0-9a4b-bd9cc7533eb8-S29312/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/0867f005-8160-4245-bf7d-bf0376d1378f/runs/d5e25221-8213-49ad-9649-1e9ad5145862/testoutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_nsk_jdwp/tmp -Dcom.oracle.usagetracker.config.file=/System/Volumes/Data/mesos/work_dir/slaves/0db9c48f-6638-40d0-9a4b-bd9cc7533eb8-S29312/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/0867f005-8160-4245-bf7d-bf0376d1378f/runs/d5e25221-8213-49ad-9649-1e9ad5145862/./testoutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_nsk_jdwp/usage-tracker.cfg "" "-pipe.port=56935"
      Debugee> Establishing JDWP socket connection
      Debugee> Listening from debugee
      Waiting for VM_INIT event
      Querying for IDSizes
      Resume debugee VM
      Waiting for command: ready
      debugee.stderr> Creating pipe
      debugee.stderr> Sending command: ready
      debugee.stderr> Waiting for command: quit
      Received command: ready
      Getting IDs for top level thread groups
      Create command packet TopLevelThreadGroups
      Waiting for reply to command
      Valid reply packet received
      Parsing reply packet:
        groups: 1
        #0 threadGroupID: 2
      Getting IDs of the thread from thread group: #0
      Create command packet ThreadGroupReference.Children
      Waiting for reply to command
      Valid reply packet received
      Parsing reply packet:
        threads: 5
        #0 threadID: 3
        #1 threadID: 4
        #2 threadID: 5
        #3 threadID: 6
        #4 threadID: 7
      Testing threads from thread group: #0

      Getting ThreadGroup ID for 0 thread ID: 3
      Create command ThreadReference.ThreadGroup with thread ID: 3
      Sending command packet:
      Packet header (11 bytes):
          0000 (length) : 0x00000013 (19)
          0004 (id) : 0x00000005 (5)
          0008 (flags) : 0x00 (0)
          0009 (cmd set): 0x0b (11)
          000a (command): 0x05 (5)
      Entire packet (19 bytes):
          0000: 00 00 00 13 00 00 00 05 00 0b 05 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) : 0x00000005 (5)
          0008 (flags) : 0x80 (-128)
          000a (error) : 0x0000 (0)
      Entire packet (19 bytes):
          0000: 00 00 00 13 00 00 00 05 80 00 00 00 00 00 00 00 ................
          0010: 00 00 02 ...
      Packet end
      Checking reply packet header
      Parsing reply packet:
        group: 2
      Reply packet parsed successfully

      Getting ThreadGroup ID for 1 thread ID: 4
      Create command ThreadReference.ThreadGroup with thread ID: 4
      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): 0x05 (5)
      Entire packet (19 bytes):
          0000: 00 00 00 13 00 00 00 06 00 0b 05 00 00 00 00 00 ................
          0010: 00 00 04 ...
      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 00 00 00 00 00 ................
          0010: 00 00 02 ...
      Packet end
      Checking reply packet header
      Parsing reply packet:
        group: 2
      Reply packet parsed successfully

      Getting ThreadGroup ID for 2 thread ID: 5
      Create command ThreadReference.ThreadGroup with thread ID: 5
      Sending command packet:
      Packet header (11 bytes):
          0000 (length) : 0x00000013 (19)
          0004 (id) : 0x00000007 (7)
          0008 (flags) : 0x00 (0)
          0009 (cmd set): 0x0b (11)
          000a (command): 0x05 (5)
      Entire packet (19 bytes):
          0000: 00 00 00 13 00 00 00 07 00 0b 05 00 00 00 00 00 ................
          0010: 00 00 05 ...
      Packet end
      Waiting for reply packet
      Reply packet received:
      Packet header (11 bytes):
          0000 (length) : 0x00000013 (19)
          0004 (id) : 0x00000007 (7)
          0008 (flags) : 0x80 (-128)
          000a (error) : 0x0000 (0)
      Entire packet (19 bytes):
          0000: 00 00 00 13 00 00 00 07 80 00 00 00 00 00 00 00 ................
          0010: 00 00 02 ...
      Packet end
      Checking reply packet header
      Parsing reply packet:
        group: 2
      Reply packet parsed successfully

      Getting ThreadGroup ID for 3 thread ID: 6
      Create command ThreadReference.ThreadGroup with thread ID: 6
      Sending command packet:
      Packet header (11 bytes):
          0000 (length) : 0x00000013 (19)
          0004 (id) : 0x00000008 (8)
          0008 (flags) : 0x00 (0)
          0009 (cmd set): 0x0b (11)
          000a (command): 0x05 (5)
      Entire packet (19 bytes):
          0000: 00 00 00 13 00 00 00 08 00 0b 05 00 00 00 00 00 ................
          0010: 00 00 06 ...
      Packet end
      Waiting for reply packet
      Reply packet received:
      Packet header (11 bytes):
          0000 (length) : 0x00000013 (19)
          0004 (id) : 0x00000008 (8)
          0008 (flags) : 0x80 (-128)
          000a (error) : 0x0000 (0)
      Entire packet (19 bytes):
          0000: 00 00 00 13 00 00 00 08 80 00 00 00 00 00 00 00 ................
          0010: 00 00 02 ...
      Packet end
      Checking reply packet header
      Parsing reply packet:
        group: 2
      Reply packet parsed successfully

      Getting ThreadGroup ID for 4 thread ID: 7
      Create command ThreadReference.ThreadGroup with thread ID: 7
      Sending command packet:
      Packet header (11 bytes):
          0000 (length) : 0x00000013 (19)
          0004 (id) : 0x00000009 (9)
          0008 (flags) : 0x00 (0)
          0009 (cmd set): 0x0b (11)
          000a (command): 0x05 (5)
      Entire packet (19 bytes):
          0000: 00 00 00 13 00 00 00 09 00 0b 05 00 00 00 00 00 ................
          0010: 00 00 07 ...
      Packet end
      Waiting for reply packet
      Reply packet received:
      Packet header (11 bytes):
          0000 (length) : 0x00000013 (19)
          0004 (id) : 0x00000009 (9)
          0008 (flags) : 0x80 (-128)
          000a (error) : 0x0000 (0)
      Entire packet (19 bytes):
          0000: 00 00 00 13 00 00 00 09 80 00 00 00 00 00 00 00 ................
          0010: 00 00 00 ...
      Packet end
      Checking reply packet header
      Parsing reply packet:
        group: 0
      # ERROR: Unexpected threadGroupID returned for a thread: 0 (expected: 2)
      The following stacktrace is for failure analysis.
      nsk.share.TestFailure: Unexpected threadGroupID returned for a thread: 0 (expected: 2)
      at nsk.share.Log.logExceptionForFailureAnalysis(Log.java:431)
      at nsk.share.Log.complain(Log.java:402)
      at nsk.jdwp.ThreadReference.ThreadGroup.threadgroup001.runIt(threadgroup001.java:210)
      at nsk.jdwp.ThreadReference.ThreadGroup.threadgroup001.run(threadgroup001.java:49)
      at nsk.jdwp.ThreadReference.ThreadGroup.threadgroup001.main(threadgroup001.java:45)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.Thread.run(Thread.java:1570)
      Reply packet parsed successfully

      Sending command: quit
      Waiting for debugee exits
      debugee.stderr> Received command: quit
      debugee.stderr> Debugee PASSED
      Debugee PASSED with exit code: 95
      # ERROR: TEST FAILED


      #>
      #> SUMMARY: Following errors occured
      #> during test execution:
      #>
      # ERROR: Unexpected threadGroupID returned for a thread: 0 (expected: 2)
      # ERROR: TEST FAILED
      ----------System.err:(0/0)----------
      ----------rerun:(35/11529)*----------

            Unassigned Unassigned
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: