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

java/foreign/critical/TestCriticalUpcall.java timed out

    XMLWordPrintable

Details

    Backports

      Description

        The following test timed out in the JDK22 CI:

        java/foreign/critical/TestCriticalUpcall.java

        Here's a snippet from the log file:

        #section:testng
        ----------messages:(6/325)----------
        command: testng --enable-native-access=ALL-UNNAMED TestCriticalUpcall
        reason: User specified action: run testng/othervm --enable-native-access=ALL-UNNAMED TestCriticalUpcall
        started: Thu Dec 21 07:19:03 UTC 2023
        Mode: othervm [/othervm specified]
        finished: Thu Dec 21 07:23:07 UTC 2023
        elapsed time (seconds): 243.389
        ----------configuration:(0/0)----------
        ----------System.out:(46/4835)*----------
        NativeTestHelper::DEFAULT_RANDOM.seed = -2045637488
        Re-run with '-DNativeTestHelper.DEFAULT_RANDOM.seed=-2045637488' to reproduce
        Command line: [c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-22+29-2283\\windows-x64-debug.jdk\\jdk-22\\fastdebug\\bin\\java.exe -cp C:\\sb\\prod\\1703142722\\testoutput\\test-support\\jtreg_open_test_jdk_tier1\\classes\\2\\java\\foreign\\critical\\TestCriticalUpcall.d;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-22+29-2283\\src.full\\open\\test\\jdk\\java\\foreign\\critical;C:\\sb\\prod\\1703142722\\testoutput\\test-support\\jtreg_open_test_jdk_tier1\\classes\\2\\java\\foreign;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-22+29-2283\\src.full\\open\\test\\jdk\\java\\foreign;C:\\sb\\prod\\1703142722\\testoutput\\test-support\\jtreg_open_test_jdk_tier1\\classes\\2\\test\\lib;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-22+29-2283\\src.full\\open\\test\\lib;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\7.3.1\\1\\bundles\\jtreg-7.3.1+1.zip\\jtreg\\lib\\testng-7.3.0.jar;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\7.3.1\\1\\bundles\\jtreg-7.3.1+1.zip\\jtreg\\lib\\jcommander-1.82.jar;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\7.3.1\\1\\bundles\\jtreg-7.3.1+1.zip\\jtreg\\lib\\guice-5.1.0.jar;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\7.3.1\\1\\bundles\\jtreg-7.3.1+1.zip\\jtreg\\lib\\jtreg.jar -Xmx768m -XX:MaxRAMPercentage=4.16667 -Dtest.boot.jdk=c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk\\21\\35\\bundles\\windows-x64\\jdk-21_windows-x64_bin.zip\\jdk-21 -Djava.io.tmpdir=c:\\sb\\prod\\1703142722\\testoutput\\test-support\\jtreg_open_test_jdk_tier1\\tmp -XX:+CreateCoredumpOnCrash -ea -esa -Duse.JTREG_TEST_THREAD_FACTORY=Virtual -XX:-VerifyContinuations --enable-native-access=ALL-UNNAMED -Djava.library.path=c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-22+29-2283\\windows-x64-debug.test\\jdk\\jtreg\\native -Djdk.internal.foreign.UpcallLinker.USE_SPEC=true -Dtest.thread.factory=Virtual jdk.test.lib.process.ProcessTools Virtual TestCriticalUpcall$Runner ]
        test TestCriticalUpcall.testUpcallFailure(): failure
        java.lang.AssertionError: Time out while waiting for process expected [true] but found [false]
        at org.testng.Assert.fail(Assert.java:99)
        at org.testng.Assert.failNotEquals(Assert.java:1037)
        at org.testng.Assert.assertTrue(Assert.java:45)
        at UpcallTestHelper.runInNewProcess(UpcallTestHelper.java:57)
        at UpcallTestHelper.runInNewProcess(UpcallTestHelper.java:38)
        at TestCriticalUpcall.testUpcallFailure(TestCriticalUpcall.java:46)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
        at java.base/java.lang.reflect.Method.invoke(Method.java:580)
        at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
        at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:599)
        at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174)
        at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
        at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:822)
        at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147)
        at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
        at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1597)
        at org.testng.TestRunner.privateRun(TestRunner.java:764)
        at org.testng.TestRunner.run(TestRunner.java:585)
        at org.testng.SuiteRunner.runTest(SuiteRunner.java:384)
        at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378)
        at org.testng.SuiteRunner.privateRun(SuiteRunner.java:337)
        at org.testng.SuiteRunner.run(SuiteRunner.java:286)
        at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
        at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
        at org.testng.TestNG.runSuitesSequentially(TestNG.java:1218)
        at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
        at org.testng.TestNG.runSuites(TestNG.java:1069)
        at org.testng.TestNG.run(TestNG.java:1037)
        at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:102)
        at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:58)
        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.VirtualThread.run(VirtualThread.java:321)

        ===============================================
        java/foreign/critical/TestCriticalUpcall.java
        Total tests run: 1, Passes: 0, Failures: 1, Skips: 0
        ===============================================

        ----------System.err:(12/696)----------
        java.lang.Exception: failures: 1
        at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:104)
        at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:58)
        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.VirtualThread.run(VirtualThread.java:321)

        JavaTest Message: Test threw exception: java.lang.Exception: failures: 1
        JavaTest Message: shutting down test

        STATUS:Failed.`main' threw exception: java.lang.Exception: failures: 1
        ----------rerun:(47/7340)*----------

        It looks like the test timed out waiting for a sub-process to finish.

        Attachments

          Issue Links

            Activity

              People

                jvernee Jorn Vernee
                dcubed Daniel Daugherty
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: