Re: [bug-bash] The kill test of util-linux fails with bash 5.3
From:
Dr. Werner Fink
Subject:
Re: [bug-bash] The kill test of util-linux fails with bash 5.3
Date:
Wed, 23 Jul 2025 15:06:27 +0200
On 2025/07/23 14:53:23 +0200, Dr. Werner Fink wrote:
>
> The problem is the LD_PRELOAD use in the libssh test suite
>
> with HAVE_SETRESUID and HAVE_SETRESGID enabled the call
>
> LD_PRELOAD=/usr/lib64/libsocket_wrapper.so:/usr/lib64/libnss_wrapper.so:/usr/lib64/libuid_wrapper.so:/usr/lib64/libpam_wrapper.so:/home/abuild/rpmbuild/BUILD/libssh-test-0.11.2-build/libssh-0.11.2/build/lib/libchroot_wrapper.so:/home/abuild/rpmbuild/BUILD/libssh-test-0.11.2-build/libssh-0.11.2/build/lib/libfs_wrapper.so
> ./bash
> Segmentation fault (core dumped)
> LD_PRELOAD=/usr/lib64/libsocket_wrapper.so:/usr/lib64/libnss_wrapper.so:/usr/lib64/libuid_wrapper.so:/usr/lib64/libpam_wrapper.so:/home/abuild/rpmbuild/BUILD/libssh-test-0.11.2-build/libssh-0.11.2/build/lib/libchroot_wrapper.so:/home/abuild/rpmbuild/BUILD/libssh-test-0.11.2-build/libssh-0.11.2/build/lib/libfs_wrapper.so
> ./bash
>
> does segfault whereas HAVE_SETRESUID and HAVE_SETRESGID disabled
>
> LD_PRELOAD=/usr/lib64/libsocket_wrapper.so:/usr/lib64/libnss_wrapper.so:/usr/lib64/libuid_wrapper.so:/usr/lib64/libpam_wrapper.so:/home/abuild/rpmbuild/BUILD/libssh-test-0.11.2-build/libssh-0.11.2/build/lib/libchroot_wrapper.so:/home/abuild/rpmbuild/BUILD/libssh-test-0.11.2-build/libssh-0.11.2/build/lib/libfs_wrapper.so
> strace -s 4096 -o log ./bash
> abuild@noether:/mnt>
>
> it works
Can be reduced to
LD_PRELOAD=/usr/lib64/libuid_wrapper.so ./bash
as
abuild@noether:/mnt> nm -D /usr/lib64/libuid_wrapper.so | grep getres
0000000000005c80 T getresgid
0000000000005850 T getresuid
--
"Having a smoking section in a restaurant is like having
a peeing section in a swimming pool." -- Edward Burr