Red Hat Bugzilla – Bug 842280
posix_spawn() invokes sh when it should not
Last modified: 2016-11-24 10:46:18 EST
Created attachment 599753 [details]
Description of problem:
posix_spawn() executes sh when it can't execute it's argument. This breaks ksh build time tests
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. gcc -o repr reproducer.c
"ENOEXEC invokes sh"
"ENOEXEC produces exist status 127 => GOOD"
It works in Fedora
Created attachment 602562 [details]
Sorry, but after further technical review, this bug is being closed as WONTFIX.
The fundamental problem is fixing this issue would require an ABI change in glibc. Effectively we'd have to export a glibc-2.15 ABI, which is not a change suitable for RHEL 6 which utilizes glibc-2.12. For technical reasons it is not possible to introduce a glibc-2.12.1 ABI.
FWIW this will work correctly in RHEL 7 which uses glibc-2.16.