JDK-8311645 : Memory leak in jspawnhelper spawnChild after JDK-8307990
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 21,22
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2023-07-07
  • Updated: 2023-12-07
  • Resolved: 2023-07-11
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 17 JDK 21 JDK 22
17.0.11Fixed 21Fixed 22 b06Fixed
Related Reports
Relates :  
Description
JDK-8307990 introduced two conditional return statements that return without free-ing the allocated `buf`.

Here:
 1. https://github.com/openjdk/jdk/commit/39f6d807dbbe0c9ecd72fe2f76bfbc3091b43c80#diff-ffbcab6325b2ae4b57a81e39c51c155cb2dab372bc915060dfc47159c345797fR561
 2. https://github.com/openjdk/jdk/commit/39f6d807dbbe0c9ecd72fe2f76bfbc3091b43c80#diff-ffbcab6325b2ae4b57a81e39c51c155cb2dab372bc915060dfc47159c345797fR569
Comments
[jdk17u-fix-request] Approval Request from Volker Simonis This is a simple fix (and clean backport) for [JDK-8307990: jspawnhelper must close its writing side of a pipe before reading from it](https://bugs.openjdk.org/browse/JDK-8307990) which currently awaits maintainer approval at [pr/2013](https://github.com/openjdk/jdk17u-dev/pull/2013)
05-12-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk17u-dev/pull/2017 Date: 2023-12-05 18:41:17 +0000
05-12-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk21/pull/120 Date: 2023-07-13 08:31:37 +0000
13-07-2023

Changeset: 401c3dea Author: Jenny Shivayogi <kspeeyu@amazon.com> Committer: Aleksey Shipilev <shade@openjdk.org> Date: 2023-07-11 16:55:23 +0000 URL: https://git.openjdk.org/jdk/commit/401c3dea5d8823bc9c0f40506ddad46e983ebf68
11-07-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/14809 Date: 2023-07-08 02:05:27 +0000
10-07-2023