[SI-8406] ProcessBuilderImpl does not catch exceptions thrown on background thread Created: 13/Mar/14 Updated: 13/Mar/14
|Project:||Scala Programming Language|
|Affects Version/s:||Scala 2.10.3|
If a ProcessBuilder process is internally executed on a background thread (the choice of which depends on how the process is built), exceptions thrown by a call to the underlying java.lang.ProcessBuilder.start() method are uncaught, leading to:
A reproduction case for 2.10.3:
The above reproduction case will deadlock waiting for initial execution of the process:
The bug appears to be due to IOException being thrown by java.lang.ProcessBuilder, but not being caught by its caller in scala.sys.process.ProcessBuilderImpl.Simple.run().