posix_spawn issues on i686

Jeremy Drake cygwin@jdrake.com
Tue Jan 11 18:45:00 GMT 2022


On Mon, 10 Jan 2022, Jeremy Drake wrote:

> From https://github.com/msys2/MSYS2-packages/issues/2801
>
> MSYS2 recently rebuilt GNU make 4.3, and I found that after rebuilding, it
> broke rather horribly on i686, where any attempt to run a command resulted
> in "Invalid argument" errors.  Some debugging revealed that rebuilding
> make resulted in it using posix_spawn now instead of vfork.  Passing
> --disable-posix-spawn to make's configure script results in a working i686
> make.
>

> Can you create a simple, self-contained testcase in plain C?


Sorry, I am not subscribed to the list so don't have the message to reply
to for threading purposes, but attached please find a C reproducer that
works on x86_64 but fails on i686.  The particular issue seems to be the
POSIX_SPAWN_RESETIDS flag - not setting that allows i686 to succeed too.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: posix_spawn.c
Type: text/x-c
Size: 1148 bytes
Desc: 
URL: <https://cygwin.com/pipermail/cygwin/attachments/20220111/81e13cad/attachment.bin>


More information about the Cygwin mailing list