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

JVMTI SelfSuspendDisablerTest.java failed with RuntimeException: Test FAILED: Unexpected thread state

    XMLWordPrintable

Details

    • b30
    • aarch64
    • os_x

    Backports

      Description

        The following test failed in the JDK19 CI:

        serviceability/jvmti/vthread/SelfSuspendDisablerTest/SelfSuspendDisablerTest.java

        Here's a snippet from the log file:

        #section:main
        ----------messages:(6/337)----------
        command: main --enable-preview -agentlib:SelfSuspendDisablerTest SelfSuspendDisablerTest
        reason: User specified action: run main/othervm/native --enable-preview -agentlib:SelfSuspendDisablerTest SelfSuspendDisablerTest
        Mode: othervm [/othervm specified]
        Timeout information:
        --- Timeout information end.
        elapsed time (seconds): 500.874
        ----------configuration:(0/0)----------
        ----------System.out:(9/371)----------
        Agent init started
        Agent init finished
        Expected platform thread state: 000000 got: 000000
        Expected virtual thread state: 000000 got: 000000
        Expected platform thread state: 000005 got: 000005
        Expected virtual thread state: 000005 got: 000005
        Expected platform thread state: 100005 got: 100005
        Expected platform thread state: 000005 got: 000002
        Timeout refired 480 times
        ----------System.err:(7/551)----------
        Exception in thread "" java.lang.RuntimeException: Test FAILED: Unexpected thread state
        at SelfSuspendDisablerTest.testJvmtiThreadState(SelfSuspendDisablerTest.java:67)
        at SelfSuspendDisablerTest.lambda$main$1(SelfSuspendDisablerTest.java:87)
        at java.base/java.lang.VirtualThread.run(VirtualThread.java:287)
        at java.base/java.lang.VirtualThread$VThreadContinuation.lambda$new$0(VirtualThread.java:174)
        at java.base/jdk.internal.vm.Continuation.enter0(Continuation.java:327)
        at java.base/jdk.internal.vm.Continuation.enter(Continuation.java:320)
        ----------rerun:(34/7634)*----------

        This test failure first occurred in jdk-19+30-2154-tier1 and
        the fix for the following bug was integrated in jdk-19+30-2153:

        JDK-8288703 GetThreadState returns 0 for virtual thread that has terminated

        The fix for JDK-8288703 modified this test so it looks like that
        fix is the probable cause for this regression. Also since the test
        didn't fail in jdk-19+30-2153-tier1, I've labeled it as intermittent.

        Attachments

          Issue Links

            Activity

              People

                sspitsyn Serguei Spitsyn
                dcubed Daniel Daugherty
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: