JDK-8064297 : (process) Parent-process is stuck in reading std-out of Child-proc even though Child exits
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 6u85
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2014-11-07
  • Updated: 2015-01-13
  • Resolved: 2014-12-02
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.
Other JDK 6
5.0u85Fixed 6u95 b01Fixed
"Parent-proc" process starts "Child-proc" process and spins in a loop of 
reading data from Child-proc's standard out via a call to 
Child-proc starts "Grand-child-proc" process and exits.
Grand-child-proc gets in a sleep for 30 seconds and exits when the sleep 
is over.

Parent-proc expects to return from InputStreamReader.read() to the 
Child-proc's standard out stream when Child-proc ends.
But, the InputStreamReader.read() call does not return until 
Grand-child-proc ends even though Child-proc has already ended.