[jdk17u-dev] RFR: 8307990: jspawnhelper must close its writing side of a pipe before reading from it
Volker Simonis
simonis at openjdk.org
Tue Dec 5 17:53:03 UTC 2023
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 of this change.
-------------
Commit messages:
- Backport 39f6d807dbbe0c9ecd72fe2f76bfbc3091b43c80
Changes: https://git.openjdk.org/jdk17u-dev/pull/2013/files
Webrev: https://webrevs.openjdk.org/?repo=jdk17u-dev&pr=2013&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8307990
Stats: 390 lines in 5 files changed: 351 ins; 11 del; 28 mod
Patch: https://git.openjdk.org/jdk17u-dev/pull/2013.diff
Fetch: git fetch https://git.openjdk.org/jdk17u-dev.git pull/2013/head:pull/2013
PR: https://git.openjdk.org/jdk17u-dev/pull/2013
More information about the jdk-updates-dev
mailing list