JDK-8224905 : java/lang/ProcessBuilder/Basic.java#id1 failed with stream closed
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 11,13
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: x86_64
  • Submitted: 2019-05-28
  • Updated: 2020-08-06
  • Resolved: 2019-06-06
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 11 JDK 13 JDK 14
11.0.10-oracleFixed 13 b25Fixed 14Fixed
Related Reports
Relates :  
Description
java.io.IOException: Stream closed
	at java.base/java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:176)
	at java.base/java.io.BufferedInputStream.fill(BufferedInputStream.java:220)
	at java.base/java.io.BufferedInputStream.read(BufferedInputStream.java:271)
	at Basic$13.run(Basic.java:2185)
java.lang.AssertionError: Some tests failed
	at Basic.main(Basic.java:2745)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:567)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
	at java.base/java.lang.Thread.run(Thread.java:830)
Comments
Fix Request (11u) This makes the test more reliable. Patch applies almost cleanly to 11u (a little conflict in copyright dates is resolved by hand), affected test runs before and after. Patched JDK also passes tier1 and tier2 tests. Risk is low, as this is the testbug.
22-01-2020

"Stream closed" is also evidence of an async close, which is being looked for by the test. "Stream closed" is an alternative exception that has the same meaning as "Bad file".
05-06-2019