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

java/lang/ProcessHandle tests fail with "RuntimeException: Input/output error" in java.lang.ProcessHandleImpl$Info.info0

    XMLWordPrintable

Details

    • b12
    • aarch64
    • os_x

    Backports

      Description

        The following test failed in the JDK18 CI:

        java/lang/ProcessHandle/InfoTest.java

        Here's a snippet from the log file:

         info: [user: Optional[mach5-one], cmd: /bin/sleep, args: [120], startTime: Optional[2021-11-04T16:28:45.283Z]]
        destroyProcessTree destroyForcibly
        pid 16506, alive: true; parent: Optional[16480], [user: Optional[mach5-one], cmd: /bin/sleep, args: [128], startTime: Optional[2021-11-04T16:28:45.289Z]]
        test InfoTest.test3(): failure
        java.lang.RuntimeException: Input/output error
        at java.base/java.lang.ProcessHandleImpl$Info.info0(Native Method)
        at java.base/java.lang.ProcessHandleImpl$Info.info(ProcessHandleImpl.java:587)
        at java.base/java.lang.ProcessHandleImpl.info(ProcessHandleImpl.java:504)
        at java.base/java.lang.Process.info(Process.java:757)
        at InfoTest.test3(InfoTest.java:291)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
        at java.base/java.lang.reflect.Method.invoke(Method.java:577)
        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:1511)
        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:94)
        at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:54)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
        at java.base/java.lang.reflect.Method.invoke(Method.java:577)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
        at java.base/java.lang.Thread.run(Thread.java:833)
         total1 vs. mbean: PT0.588529S, getProcessCpuTime: PT0.588363S, diff: PT-0.000166S
         total2 vs. mbean: PT0.588581S, getProcessCpuTime: PT0.588575S, diff: PT-0.000006S
        test InfoTest.test4(): success
         infoTotal: 598711000, beanCpu: 598964000, diff: 253000
         infoTotal: 601075000, beanCpu: 601300000, diff: 225000
         infoTotal: 601871000, beanCpu: 601953000, diff: 82000
         infoTotal: 602318000, beanCpu: 602356000, diff: 38000
         infoTotal: 602752000, beanCpu: 602781000, diff: 29000
         infoTotal: 603078000, beanCpu: 603169000, diff: 91000
         infoTotal: 603550000, beanCpu: 603588000, diff: 38000
         infoTotal: 604099000, beanCpu: 604126000, diff: 27000
         infoTotal: 604283000, beanCpu: 604796000, diff: 513000
         infoTotal: 605191000, beanCpu: 605256000, diff: 65000
         infoTotal: 605789000, beanCpu: 605846000, diff: 57000
         infoTotal: 606241000, beanCpu: 606305000, diff: 64000
         infoTotal: 606635000, beanCpu: 606684000, diff: 49000
         infoTotal: 607020000, beanCpu: 607088000, diff: 68000
         infoTotal: 607397000, beanCpu: 607462000, diff: 65000
         infoTotal: 607744000, beanCpu: 607770000, diff: 26000
         infoTotal: 607926000, beanCpu: 607954000, diff: 28000
         infoTotal: 608105000, beanCpu: 608133000, diff: 28000
         infoTotal: 608801000, beanCpu: 608827000, diff: 26000
         infoTotal: 609266000, beanCpu: 609297000, diff: 31000
         infoTotal: 609727000, beanCpu: 610816000, diff: 1089000
         infoTotal: 612361000, beanCpu: 612441000, diff: 80000
         infoTotal: 612820000, beanCpu: 612887000, diff: 67000
         infoTotal: 613045000, beanCpu: 613211000, diff: 166000
         infoTotal: 613472000, beanCpu: 613500000, diff: 28000
         infoTotal: 613628000, beanCpu: 613654000, diff: 26000
         infoTotal: 614136000, beanCpu: 614170000, diff: 34000
         infoTotal: 614796000, beanCpu: 614906000, diff: 110000
         infoTotal: 615369000, beanCpu: 615406000, diff: 37000
         infoTotal: 615929000, beanCpu: 616052000, diff: 123000
        test InfoTest.test5(): success

        ===============================================
        java/lang/ProcessHandle/InfoTest.java
        Total tests run: 5, Passes: 4, Failures: 1, Skips: 0
        ===============================================

        ----------System.err:(12/671)----------
        java.lang.Exception: failures: 1
        at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:96)
        at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:54)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
        at java.base/java.lang.reflect.Method.invoke(Method.java:577)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
        at java.base/java.lang.Thread.run(Thread.java:833)

        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:(37/6769)*----------


        I checked the test task's stdout and I don't see any sign
        of disk/storage issues with the test machine.

        Attachments

          Issue Links

            Activity

              People

                rriggs Roger Riggs
                dcubed Daniel Daugherty
                Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: