RFR: 8290885: java/lang/ProcessBuilder/PipelineLeaksFD.java fail: More or fewer pipes than expected

Jaikiran Pai jpai at openjdk.org
Sat Jul 30 02:34:56 UTC 2022


On Fri, 29 Jul 2022 16:49:36 GMT, Roger Riggs <rriggs at openjdk.org> wrote:

> The test java/lang/ProcessBuilder/PipelineLeaksFD.java fails intermittently, usually associated with fastdebug and -Xcomp.
> It reports extra file descriptors are open that not expected.
> The test of pipelines did not explicitly use or close the stderr streams of each stream except the last.
> The intermittent nature of the failure is due to the non-deterministic GC interactions that close the streams when they become un-referenced.
> 
> The solution in this case is to redirect the error stream to the stdout stream for each pipeline stage except the last.
> 
> The test is removed from the ProblemList-Xcomp.

Marked as reviewed by jpai (Reviewer).

-------------

PR: https://git.openjdk.org/jdk/pull/9687


More information about the core-libs-dev mailing list