Process.exec with the linux posix_spawn mode has a bug

Martin Buchholz martinrb at google.com
Mon May 13 12:08:12 UTC 2019


I am happy this is resolved and the intermittent behavior explained. Yes,
> we could improve exception messages, especially since analyzing fork
> scenarios is cumbersome.
>

I tried hard back in 2005 to provide pretty good java-level diagnostics
when subprocess starting failed somehow (see WhyCantJohnnyExec) .  At least
the errno did get reported.

I've had this little script around for ages:

#!/bin/bash
# -v: Print unabbreviated versions of environment, etc

exec /usr/bin/strace -f -v -s 256 -e signal=none -e trace=process "$@"


More information about the core-libs-dev mailing list