PING: RFR(s): (new approach) 8223777: In posix_spawn mode, failing to exec() jspawnhelper does not result in an error

Florian Weimer fweimer at redhat.com
Thu Jun 6 12:04:52 UTC 2019


* Thomas Stüfe:

> Hi Florian,
>
> Interesting, but in this case it is not posix_spawn, but plain
> fork(). The VM does this, the exec calls come from us, not the
> libc. See childproc.c .

Ah.  Others have unearthed the genealogy.  Thanks for that.

I wonder if in a Java context, things are slightly different because it
is conceivable that someone would write a shell script from Java and
then execute it directly, as a program, without setting the executable
bit.

On the glibc side, I don't think we've seen much fallout from our
removal of the shell fallback, but then we did so only for new binaries.
(Old binaries linked against an older glibc version would still perform
the shell fallback.)

Thanks,
Florian


More information about the core-libs-dev mailing list