Unfortunate interaction of glibc-2.44 and gnulib regarding posix_spawn_file_actions_addchdir => infinite recursion
Collin Funk
collin.funk1@gmail.com
Sat Jul 25 19:15:59 GMT 2026
Xi Ruoyao <xry111@xry111.site> writes:
> It can be worked around with
> ac_cv_func_posix_spawn_file_actions_addchdir=yes (which basically tells
> the configure system we have a posix_spawn_file_actions_addchdir, some
> kind of a "fact" with glibc 2.44).
>
> Thoughts on fix this?
Does the attached patch work? In a container, it looks like the symbols
are defined correctly, but I haven't tested it more than that yet:
$ nm -g --defined-only gllib/libgnu.a | grep spawn_file_actions_add
0000000000000000 T rpl_posix_spawn_file_actions_addchdir
0000000000000000 T rpl_posix_spawn_file_actions_addfchdir
Note that I also haven't pushed it yet, since I suspect we will want to
update the outdated commentary to reflect the fact that this is now
standardized. And also consider not compiling these files
unconditionally.
Collin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-posix_spawn_faction_add-chdir-fchdir-Fix-checks-on-g.patch
Type: text/x-patch
Size: 4000 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20260725/b3f481ef/attachment.bin>
More information about the Libc-alpha
mailing list