Re: [bug-bash] The kill test of util-linux fails with bash 5.3

2025-07-23 Thread Chet Ramey
On 7/23/25 9:41 AM, Dr. Werner Fink wrote: On 2025/07/23 09:38:41 -0400, Chet Ramey wrote: On 7/23/25 9:34 AM, Dr. Werner Fink wrote: Correct configured it seems to work abuild@noether:/mnt> LD_PRELOAD=/usr/lib64/libuid_wrapper.so ./bash Segmentation fault (core dumped) LD_PREL

Re: [bug-bash] The kill test of util-linux fails with bash 5.3

2025-07-23 Thread Dr. Werner Fink
On 2025/07/23 09:38:41 -0400, Chet Ramey wrote: > On 7/23/25 9:34 AM, Dr. Werner Fink wrote: > > > Correct configured it seems to work > > > > abuild@noether:/mnt> LD_PRELOAD=/usr/lib64/libuid_wrapper.so ./bash > > Segmentation fault (core dumped) > > LD_PRELOAD=/usr/lib64/libuid_wra

Re: [bug-bash] The kill test of util-linux fails with bash 5.3

2025-07-23 Thread Chet Ramey
On 7/23/25 9:34 AM, Dr. Werner Fink wrote: Correct configured it seems to work abuild@noether:/mnt> LD_PRELOAD=/usr/lib64/libuid_wrapper.so ./bash Segmentation fault (core dumped) LD_PRELOAD=/usr/lib64/libuid_wrapper.so ./bash abuild@noether:/mnt> UID_WRAPPER=1 UID_WRAPPER_ROOT=1

Re: [bug-bash] The kill test of util-linux fails with bash 5.3

2025-07-23 Thread Dr. Werner Fink
On 2025/07/23 09:24:09 -0400, Chet Ramey wrote: > On 7/23/25 9:06 AM, Dr. Werner Fink wrote: > > 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 > > > >

Re: The kill test of util-linux fails with bash 5.3

2025-07-23 Thread Chet Ramey
On 7/23/25 9:30 AM, Andreas Schwab wrote: On Jul 23 2025, Chet Ramey wrote: Strange ... AFAICS clone3() is used to spawn the subprocess for the shell 307826 clone3({flags=CLONE_VM|CLONE_VFORK|CLONE_CLEAR_SIGHAND, exit_signal=SIGCHLD, stack=0x7f7a0d302000, stack_size=0x9000}, 88 This is a lib

Re: The kill test of util-linux fails with bash 5.3

2025-07-23 Thread Dr. Werner Fink
On 2025/07/23 09:33:01 -0400, Chet Ramey wrote: > On 7/23/25 9:30 AM, Andreas Schwab wrote: > > On Jul 23 2025, Chet Ramey wrote: > > > > > > Strange ... AFAICS clone3() is used to spawn the subprocess for the > > > > shell > > > > 307826 clone3({flags=CLONE_VM|CLONE_VFORK|CLONE_CLEAR_SIGHAND, >

Re: The kill test of util-linux fails with bash 5.3

2025-07-23 Thread Andreas Schwab
On Jul 23 2025, Chet Ramey wrote: >> Strange ... AFAICS clone3() is used to spawn the subprocess for the shell >> 307826 clone3({flags=CLONE_VM|CLONE_VFORK|CLONE_CLEAR_SIGHAND, >> exit_signal=SIGCHLD, stack=0x7f7a0d302000, stack_size=0x9000}, 88 >> > > This is a libc fork() wrapper thing. That's

Re: [bug-bash] The kill test of util-linux fails with bash 5.3

2025-07-23 Thread Chet Ramey
On 7/23/25 9:06 AM, Dr. Werner Fink wrote: 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

Re: [bug-bash] The kill test of util-linux fails with bash 5.3

2025-07-23 Thread Chet Ramey
On 7/23/25 3:18 AM, Dr. Werner Fink wrote: 307827 futex(0x7ff1d2806158, FUTEX_WAKE_PRIVATE, 2147483647) = 0 307827 getresuid([399], [399], [399]) = 0 307827 --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=NULL} --- 307827 +++ killed by SIGSEGV +++ This is just a function to get a

Re: [bug-bash] The kill test of util-linux fails with bash 5.3

2025-07-23 Thread Dr. Werner Fink
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/libp

Re: [bug-bash] The kill test of util-linux fails with bash 5.3

2025-07-23 Thread Dr. Werner Fink
On 2025/07/23 09:18:45 +0200, Dr. Werner Fink wrote: > > Starting sshd with bash-5.3 leads to > > 307827 execve("/bin/sh", ["sh", "-c", "--", > "KRB5CCNAME=/tmp/test_socket_wrapper_EElgbB/gss/cc > KRB5_CONFIG=/tmp/test_socket_wrapper_EElgbB/gss/k/krb5.conf > KRB5_KDC_PROFILE=/tmp/test_socket_w

Re: [bug-bash] The kill test of util-linux fails with bash 5.3

2025-07-23 Thread Dr. Werner Fink
On 2025/07/23 08:42:54 +0200, Dr. Werner Fink wrote: > On 2025/07/22 10:07:41 -0400, Chet Ramey wrote: > > On 7/22/25 10:04 AM, Dr. Werner Fink wrote: > > > On 2025/07/22 09:55:38 -0400, Chet Ramey wrote: > > > > On 7/22/25 9:47 AM, Dr. Werner Fink wrote: > > > > > On 2025/07/22 09:10:05 -0400, Che

Re: [bug-bash] The kill test of util-linux fails with bash 5.3

2025-07-22 Thread Dr. Werner Fink
On 2025/07/22 10:07:41 -0400, Chet Ramey wrote: > On 7/22/25 10:04 AM, Dr. Werner Fink wrote: > > On 2025/07/22 09:55:38 -0400, Chet Ramey wrote: > > > On 7/22/25 9:47 AM, Dr. Werner Fink wrote: > > > > On 2025/07/22 09:10:05 -0400, Chet Ramey wrote: > > > > > On 7/22/25 8:12 AM, Dr. Werner Fink wr

Re: [bug-bash] The kill test of util-linux fails with bash 5.3

2025-07-22 Thread Chet Ramey
On 7/22/25 4:57 AM, Dr. Werner Fink wrote: Description: The kill test of util-linux fails with bash 5.3 --- /home/abuild/rpmbuild/BUILD/util-linux-2.41.1-build/util-linux-2.41.1/tests/expected/kill/decode 2025-05-05 08:28:45.049284591 + +++ /home/abuild/rpmbuild/BUILD/util

Re: [bug-bash] The kill test of util-linux fails with bash 5.3

2025-07-22 Thread Chet Ramey
On 7/22/25 10:04 AM, Dr. Werner Fink wrote: On 2025/07/22 09:55:38 -0400, Chet Ramey wrote: On 7/22/25 9:47 AM, Dr. Werner Fink wrote: On 2025/07/22 09:10:05 -0400, Chet Ramey wrote: On 7/22/25 8:12 AM, Dr. Werner Fink wrote: On 2025/07/22 13:15:38 +0200, Dr. Werner Fink wrote: [...] found a

Re: [bug-bash] The kill test of util-linux fails with bash 5.3

2025-07-22 Thread Dr. Werner Fink
On 2025/07/22 09:55:38 -0400, Chet Ramey wrote: > On 7/22/25 9:47 AM, Dr. Werner Fink wrote: > > On 2025/07/22 09:10:05 -0400, Chet Ramey wrote: > > > On 7/22/25 8:12 AM, Dr. Werner Fink wrote: > > > > On 2025/07/22 13:15:38 +0200, Dr. Werner Fink wrote: > > > > [...] > > > > > > > > found a not e

Re: The kill test of util-linux fails with bash 5.3

2025-07-22 Thread Chet Ramey
On 7/22/25 9:55 AM, Andreas Schwab wrote: On Jul 22 2025, Chet Ramey wrote: On 7/22/25 8:12 AM, Dr. Werner Fink wrote: On 2025/07/22 13:15:38 +0200, Dr. Werner Fink wrote: [...] found a not expanded m4 autoconf macro GL_MDA_DEFINES in m4/fcntl-o.m4 and hence in the final configure script which

Re: [bug-bash] The kill test of util-linux fails with bash 5.3

2025-07-22 Thread Chet Ramey
On 7/22/25 9:47 AM, Dr. Werner Fink wrote: On 2025/07/22 09:10:05 -0400, Chet Ramey wrote: On 7/22/25 8:12 AM, Dr. Werner Fink wrote: On 2025/07/22 13:15:38 +0200, Dr. Werner Fink wrote: [...] found a not expanded m4 autoconf macro GL_MDA_DEFINES in m4/fcntl-o.m4 Good catch. What happens if

Re: The kill test of util-linux fails with bash 5.3

2025-07-22 Thread Andreas Schwab
On Jul 22 2025, Chet Ramey wrote: > On 7/22/25 8:12 AM, Dr. Werner Fink wrote: >> On 2025/07/22 13:15:38 +0200, Dr. Werner Fink wrote: >> [...] >> found a not expanded m4 autoconf macro GL_MDA_DEFINES in m4/fcntl-o.m4 >> and hence in the final configure script which leads to > > When I take out th

Re: [bug-bash] The kill test of util-linux fails with bash 5.3

2025-07-22 Thread Dr. Werner Fink
On 2025/07/22 09:10:05 -0400, Chet Ramey wrote: > On 7/22/25 8:12 AM, Dr. Werner Fink wrote: > > On 2025/07/22 13:15:38 +0200, Dr. Werner Fink wrote: > > [...] > > > > found a not expanded m4 autoconf macro GL_MDA_DEFINES in m4/fcntl-o.m4 > > Good catch. What happens if you take that macro out an

Re: [bug-bash] The kill test of util-linux fails with bash 5.3

2025-07-22 Thread Chet Ramey
On 7/22/25 8:12 AM, Dr. Werner Fink wrote: On 2025/07/22 13:15:38 +0200, Dr. Werner Fink wrote: [...] found a not expanded m4 autoconf macro GL_MDA_DEFINES in m4/fcntl-o.m4 and hence in the final configure script which leads to When I take out that macro, it doesn't change the resulting config

Re: [bug-bash] The kill test of util-linux fails with bash 5.3

2025-07-22 Thread Chet Ramey
On 7/22/25 8:12 AM, Dr. Werner Fink wrote: On 2025/07/22 13:15:38 +0200, Dr. Werner Fink wrote: [...] found a not expanded m4 autoconf macro GL_MDA_DEFINES in m4/fcntl-o.m4 Good catch. What happens if you take that macro out and re-run autoconf and configure? -- ``The lyf so short, the craft

Re: The kill test of util-linux fails with bash 5.3

2025-07-22 Thread Chet Ramey
On 7/22/25 3:08 AM, wer...@suse.de wrote: Bash Version: 5.3 Patch Level: 0 Release Status: release Description: The kill test of util-linux fails with bash 5.3 OK. Are you reporting a bug here? Anything more specific? -- ``The lyf so short, the craft so long to lerne.''

Re: [bug-bash] The kill test of util-linux fails with bash 5.3

2025-07-22 Thread Chet Ramey
On 7/22/25 4:57 AM, Dr. Werner Fink wrote: One line cause this behaviour change: --- /abuild/oscbuild/openSUSE_Tumbleweed/home/abuild/rpmbuild/BUILD/bash-5.3.0-build/bash-5.3/execute_cmd.c 2025-07-22 10:52:15.705599240 +0200 +++ bash-5.3/execute_cmd.c 2025-06-05 17:02:01.0 +0

Re: [bug-bash] The kill test of util-linux fails with bash 5.3

2025-07-22 Thread Dr. Werner Fink
On 2025/07/22 13:15:38 +0200, Dr. Werner Fink wrote: [...] found a not expanded m4 autoconf macro GL_MDA_DEFINES in m4/fcntl-o.m4 and hence in the final configure script which leads to osc bl openSUSE_Tumbleweed x86_64 | grep fcntl [ 19s] checking for working fcntl.h... no [ 22s] checking

Re: [bug-bash] The kill test of util-linux fails with bash 5.3

2025-07-22 Thread Dr. Werner Fink
> >> uname output: Linux noether 6.11.8-1-default #1 SMP PREEMPT_DYNAMIC Thu > >> Nov 14 12:54:01 UTC 2024 (099023b) x86_64 x86_64 x86_64 GNU/Linux > >> Machine Type: x86_64-suse-linux-gnu > >> > >> Bash Version: 5.3 > >> Patch Level: 0 > >&

Re: [bug-bash] The kill test of util-linux fails with bash 5.3

2025-07-22 Thread Sam James
9023b) x86_64 x86_64 x86_64 GNU/Linux >> Machine Type: x86_64-suse-linux-gnu >> >> Bash Version: 5.3 >> Patch Level: 0 >> Release Status: release >> >> Description: >> The kill test of util-linux fails with bash 5.3 >> >> --- &g

Re: [bug-bash] The kill test of util-linux fails with bash 5.3

2025-07-22 Thread Dr. Werner Fink
sh Version: 5.3 > Patch Level: 0 > Release Status: release > > Description: > The kill test of util-linux fails with bash 5.3 > > --- > /home/abuild/rpmbuild/BUILD/util-linux-2.41.1-build/util-linux-2.41.1/tests/expected/kill/decode > 2025-05-05 08:28:45.049284591

The kill test of util-linux fails with bash 5.3

2025-07-22 Thread werner
ux noether 6.11.8-1-default #1 SMP PREEMPT_DYNAMIC Thu Nov 14 12:54:01 UTC 2024 (099023b) x86_64 x86_64 x86_64 GNU/Linux Machine Type: x86_64-suse-linux-gnu Bash Version: 5.3 Patch Level: 0 Release Status: release Description: The kill test of util-linux fails with bash 5.3 --- /h