[jdk17u-dev] Integrated: 8307990: jspawnhelper must close its writing side of a pipe before reading from it

Volker Simonis simonis at openjdk.org
Wed Dec 6 14:01:42 UTC 2023


On Tue, 5 Dec 2023 17:45:42 GMT, Volker Simonis <simonis at openjdk.org> wrote:

> Backporting the jspwanhelper fixes from [JDK-8307990](https://bugs.openjdk.org/browse/JDK-8307990) because we constantly see customers hitting this issue in production. For more details about the problem please refer to the corresponding release notes in https://bugs.openjdk.org/browse/JDK-8308297. The original change was pushed to JDK 21 in June so it had quite some time to mature.
> 
> The backport was not clean because of some trivial copyright changes and because [JDK-8310265: (process) jspawnhelper should not use argv[0]](https://bugs.openjdk.org/browse/JDK-8310265), which was done after this change, already got backported to JDK 17u before this change.
> 
> Once this backport will be reviewed and approved, I'll also plan to backport [JDK-8311645: Memory leak in jspawnhelper spawnChild after JDK-8307990](https://bugs.openjdk.org/browse/JDK-8311645) which was a follow-up fix for this change (and clean backport - see [pr/2017](https://github.com/openjdk/jdk17u-dev/pull/2017)).

This pull request has now been integrated.

Changeset: 16f319a3
Author:    Volker Simonis <simonis at openjdk.org>
URL:       https://git.openjdk.org/jdk17u-dev/commit/16f319a338930b708105f9189a5174b9aed7d569
Stats:     390 lines in 5 files changed: 351 ins; 11 del; 28 mod

8307990: jspawnhelper must close its writing side of a pipe before reading from it

Reviewed-by: shade
Backport-of: 39f6d807dbbe0c9ecd72fe2f76bfbc3091b43c80

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

PR: https://git.openjdk.org/jdk17u-dev/pull/2013


More information about the jdk-updates-dev mailing list