msys2 / MINGW-packages

Package scripts for MinGW-w64 targets to build under MSYS2.
https://packages.msys2.org
BSD 3-Clause "New" or "Revised" License
2.25k stars 1.21k forks source link

gspawn-win64-helper.exe producing 'Failed to dup() in child process (Bad file descriptor)' #11159

Closed ThosRTanner closed 2 years ago

ThosRTanner commented 2 years ago

I've been trying to build pan newsreader for windows, which uses gtk2. I've got it working successfully when running under MSYS2, but if I try to create a windows package, when I get to a place where it spawns a windows process (to open a URL), via gspawn-win64-helper.exe (from g_spawn_command_line_async), I get the above message.

So I'm clearly not providing something I ought to be, but I'm not sure what. I've copied all the necessary dlls over (after a few exciting sessions with ldd).

Meant to say this is windows 10, building with mingw x64

lazka commented 2 years ago

Afair you have to ship gspawn-win64-helper.exe and gspawn-win64-helper-console.exe in the directory of the glib DLL.

lazka commented 2 years ago

here is a recent related glib regression, maybe that is related: https://gitlab.gnome.org/GNOME/glib/-/issues/2628

ThosRTanner commented 2 years ago

that does look pretty much like what I'm seeing, yes

jeremyd2019 commented 2 years ago

here is a recent related glib regression, maybe that is related: https://gitlab.gnome.org/GNOME/glib/-/issues/2628

ooh, shades of https://github.com/pypa/pip/issues/10444... Let's hope they don't fall down that same rabbit hole.

ThosRTanner commented 2 years ago

they say they've fixed that and done a backport to 2.72