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

serviceability/jvmti/vthread/VThreadEventTest/VThreadEventTest.java failed with "event count is wrong"

XMLWordPrintable

    • x86_64
    • linux

      The following test failed in the JDK23 CI:

      serviceability/jvmti/vthread/VThreadEventTest/VThreadEventTest.java

      Here's a snippet from the log file:

      #section:main
      ----------messages:(6/476)----------
      command: main -Djdk.virtualThreadScheduler.parallelism=9 -Djdk.attach.allowAttachSelf=true -XX:+EnableDynamicAgentLoading VThreadEventTest attach
      reason: User specified action: run main/othervm/native -Djdk.virtualThreadScheduler.parallelism=9 -Djdk.attach.allowAttachSelf=true -XX:+EnableDynamicAgentLoading VThreadEventTest attach
      started: Fri Dec 15 08:55:40 UTC 2023
      Mode: othervm [/othervm specified]
      finished: Fri Dec 15 08:55:41 UTC 2023
      elapsed time (seconds): 1.229
      ----------configuration:(0/0)----------
      ----------System.out:(36/924)----------
      test1 vthread started
      test1 vthread started
      test1 vthread started
      test1 vthread started
      test1 vthread started
      test1 vthread started
      test1 vthread started
      test1 vthread started
      test1 vthread started
      test2 vthread started
      test2 vthread started
      test2 vthread started
      test1 vthread started
      test3 vthread started
      test2 vthread started
      test3 vthread started
      test3 vthread started
      test3 vthread started
      DBG: state: RUNNABLE
      DBG: state: TIMED_WAITING
      DBG: state: TIMED_WAITING
      DBG: state: TIMED_WAITING
      DBG: state: TIMED_WAITING
      DBG: state: TIMED_WAITING
      DBG: state: TIMED_WAITING
      DBG: state: TIMED_WAITING
      DBG: state: TIMED_WAITING
      DBG: state: TIMED_WAITING
      DBG: state: TIMED_WAITING
      Agent_OnAttach started
      vthread events enabled
      ThreadEnd cnt: 18 (expected: 18)
      ThreadMount cnt: 13 (expected: 14)
      ThreadUnmount cnt: 21 (expected: 22)
      FAILED: unexpected count of ThreadMount events
      FAILED: unexpected count of ThreadUnmount events
      ----------System.err:(11/645)----------
      java.lang.RuntimeException: FAILED: event count is wrong
      at VThreadEventTest.main(VThreadEventTest.java:205)
      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)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: FAILED: event count is wrong
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: FAILED: event count is wrong
      ----------rerun:(40/6598)*----------

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

              Created:
              Updated: