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

(process) java/lang/ProcessHandle/OnExitTest.java failed with "Process A should not be alive expected [false] but found [true]"

    Details

    • Subcomponent:
    • Resolved In Build:
      b25
    • CPU:
      x86_64
    • OS:
      solaris_11

      Description

      [TestNG] Running:
        java/lang/ProcessHandle/OnExitTest.java

        Child Output: args: 20476 [stdin]
        Child Output: 20476:1 stdin start
        Child Output: 20476:2 pid 20476
        Child Output: args: 20510 [stdin]
        Child Output: 20510:1 stdin start
        Child Output: 20510:2 pid 20510
        Child Output: 20510:3 waitpid true
      test OnExitTest.peerOnExitTest(): failure
      java.lang.AssertionError: Process A should not be alive expected [false] but found [true]
      at org.testng.Assert.fail(Assert.java:94)
      at org.testng.Assert.failNotEquals(Assert.java:496)
      at org.testng.Assert.assertEquals(Assert.java:125)
      at org.testng.Assert.assertEquals(Assert.java:178)
      at OnExitTest.peerOnExitTest(OnExitTest.java:255)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:563)
      at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
      at org.testng.internal.Invoker.invokeMethod(Invoker.java:639)
      at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:821)
      at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1131)
      at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:124)
      at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
      at org.testng.TestRunner.privateRun(TestRunner.java:773)
      at org.testng.TestRunner.run(TestRunner.java:623)
      at org.testng.SuiteRunner.runTest(SuiteRunner.java:357)
      at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:352)
      at org.testng.SuiteRunner.privateRun(SuiteRunner.java:310)
      at org.testng.SuiteRunner.run(SuiteRunner.java:259)
      at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
      at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
      at org.testng.TestNG.runSuitesSequentially(TestNG.java:1185)
      at org.testng.TestNG.runSuitesLocally(TestNG.java:1110)
      at org.testng.TestNG.run(TestNG.java:1018)
      at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:89)
      at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:54)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:563)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
      at java.base/java.lang.Thread.run(Thread.java:844)
      args: 20880 [exit, 0]
      20880:1 exit 0
       javaChild done: Process[pid=20880, exitValue=0], exitStatus: 0
      args: 20885 [exit, 1]
      20885:1 exit 1
       javaChild done: Process[pid=20885, exitValue=1], exitStatus: 1
      args: 20900 [exit, 10]
      20900:1 exit 10
       javaChild done: Process[pid=20900, exitValue=10], exitStatus: 10
      test OnExitTest.test1(): success
       spawned: 20912
       subprocess count: 0, waiting for 9
       subprocess count: 1, waiting for 9
       subprocess count: 3, waiting for 9
       subprocess count: 3, waiting for 9
       subprocess count: 3, waiting for 9
       subprocess count: 3, waiting for 9
       subprocess count: 3, waiting for 9
       subprocess count: 8, waiting for 9
       subprocess count: 9, waiting for 9
      whenComplete: pid: 20929, exception: null, thread: Thread[ForkJoinPool.commonPool-worker-9,10,system], elapsed: PT0.302491S
      whenComplete: pid: 20931, exception: null, thread: Thread[ForkJoinPool.commonPool-worker-9,10,system], elapsed: PT0.305025S
      whenComplete: pid: 20926, exception: null, thread: Thread[ForkJoinPool.commonPool-worker-9,10,system], elapsed: PT0.305423S
      whenComplete: pid: 20930, exception: null, thread: Thread[ForkJoinPool.commonPool-worker-9,10,system], elapsed: PT0.633405S
      whenComplete: pid: 20919, exception: null, thread: Thread[ForkJoinPool.commonPool-worker-9,10,system], elapsed: PT0.635593S
      whenComplete: pid: 20927, exception: null, thread: Thread[ForkJoinPool.commonPool-worker-11,10,system], elapsed: PT0.635642S
      whenComplete: pid: 20932, exception: null, thread: Thread[ForkJoinPool.commonPool-worker-11,10,system], elapsed: PT0.995437S
      whenComplete: pid: 20915, exception: null, thread: Thread[ForkJoinPool.commonPool-worker-11,10,system], elapsed: PT0.996817S
      whenComplete: pid: 20918, exception: null, thread: Thread[ForkJoinPool.commonPool-worker-11,10,system], elapsed: PT0.997342S
      after onExit:pid 20915, alive: false; parent: Optional.empty, []
      after onExit:pid 20918, alive: false; parent: Optional.empty, []
      after onExit:pid 20919, alive: false; parent: Optional.empty, []
      after onExit:pid 20927, alive: false; parent: Optional.empty, []
      after onExit:pid 20930, alive: false; parent: Optional.empty, []
      after onExit:pid 20932, alive: false; parent: Optional.empty, []
      after onExit:pid 20929, alive: false; parent: Optional.empty, []
      after onExit:pid 20931, alive: false; parent: Optional.empty, []
      after onExit:pid 20926, alive: false; parent: Optional.empty, []
      test OnExitTest.test2(): success

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rriggs Roger Riggs
                Reporter:
                jjiang John Jiang
              • Votes:
                0 Vote for this issue
                Watchers:
                12 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: