-
Bug
-
Resolution: Fixed
-
P4
-
20
-
b09
-
x86_64, aarch64
-
linux
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8333039 | 17.0.12 | Aleksey Shipilev | P4 | Resolved | Fixed | b05 |
The following test failed in the JDK20 CI:
java/lang/ProcessBuilder/PipelineLeaksFD.java
Here's a snippet from the log file:
#section:testng
----------messages:(4/164)----------
command: testng PipelineLeaksFD
reason: User specified action: run testng/othervm PipelineLeaksFD
Mode: othervm [/othervm specified]
elapsed time (seconds): 1.615
----------configuration:(0/0)----------
----------System.out:(57/3218)----------
DEBUG: All Pipes After: [3]
/proc/331141/fd/2 : pipe:[145268395]
/proc/331141/fd/1 : pipe:[145268394]
/proc/331141/fd/0 : pipe:[145268393]
test PipelineLeaksFD.checkForLeaks(java.util.ImmutableCollections$List12@2c7c90ec): success
DEBUG: All Pipes After: [3]
/proc/331141/fd/2 : pipe:[145268395]
/proc/331141/fd/1 : pipe:[145268394]
/proc/331141/fd/0 : pipe:[145268393]
test PipelineLeaksFD.checkForLeaks(java.util.ImmutableCollections$List12@6c785de8): success
DEBUG: All Pipes After: [4]
/proc/331141/fd/2 : pipe:[145268395]
/proc/331141/fd/19 : pipe:[145251206]
/proc/331141/fd/1 : pipe:[145268394]
/proc/331141/fd/0 : pipe:[145268393]
Missing from pipesAfter: [0]
Extra pipes in pipesAfter: [1]
/proc/331141/fd/19 : pipe:[145251206]
test PipelineLeaksFD.checkForLeaks(java.util.ImmutableCollections$ListN@41670a46): failure
java.lang.AssertionError: More or fewer pipes than expected
at org.testng.Assert.fail(Assert.java:99)
at PipelineLeaksFD.checkForLeaks(PipelineLeaksFD.java:97)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
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:578)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:1589)
===============================================
java/lang/ProcessBuilder/PipelineLeaksFD.java
Total tests run: 3, Passes: 2, Failures: 1, Skips: 0
===============================================
----------System.err:(12/672)----------
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:578)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:1589)
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:(35/5780)*----------
java/lang/ProcessBuilder/PipelineLeaksFD.java
Here's a snippet from the log file:
#section:testng
----------messages:(4/164)----------
command: testng PipelineLeaksFD
reason: User specified action: run testng/othervm PipelineLeaksFD
Mode: othervm [/othervm specified]
elapsed time (seconds): 1.615
----------configuration:(0/0)----------
----------System.out:(57/3218)----------
DEBUG: All Pipes After: [3]
/proc/331141/fd/2 : pipe:[145268395]
/proc/331141/fd/1 : pipe:[145268394]
/proc/331141/fd/0 : pipe:[145268393]
test PipelineLeaksFD.checkForLeaks(java.util.ImmutableCollections$List12@2c7c90ec): success
DEBUG: All Pipes After: [3]
/proc/331141/fd/2 : pipe:[145268395]
/proc/331141/fd/1 : pipe:[145268394]
/proc/331141/fd/0 : pipe:[145268393]
test PipelineLeaksFD.checkForLeaks(java.util.ImmutableCollections$List12@6c785de8): success
DEBUG: All Pipes After: [4]
/proc/331141/fd/2 : pipe:[145268395]
/proc/331141/fd/19 : pipe:[145251206]
/proc/331141/fd/1 : pipe:[145268394]
/proc/331141/fd/0 : pipe:[145268393]
Missing from pipesAfter: [0]
Extra pipes in pipesAfter: [1]
/proc/331141/fd/19 : pipe:[145251206]
test PipelineLeaksFD.checkForLeaks(java.util.ImmutableCollections$ListN@41670a46): failure
java.lang.AssertionError: More or fewer pipes than expected
at org.testng.Assert.fail(Assert.java:99)
at PipelineLeaksFD.checkForLeaks(PipelineLeaksFD.java:97)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
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:578)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:1589)
===============================================
java/lang/ProcessBuilder/PipelineLeaksFD.java
Total tests run: 3, Passes: 2, Failures: 1, Skips: 0
===============================================
----------System.err:(12/672)----------
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:578)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:1589)
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:(35/5780)*----------
- backported by
-
JDK-8333039 java/lang/ProcessBuilder/PipelineLeaksFD.java fail: More or fewer pipes than expected
- Resolved
- relates to
-
JDK-8289643 File descriptor leak with ProcessBuilder.startPipeline
- Closed
- links to
-
Commit openjdk/jdk17u-dev/d1e31f6f
-
Commit openjdk/jdk/226b8e68
-
Review openjdk/jdk17u-dev/2462
-
Review openjdk/jdk/9687
(1 links to)