Re: `verb=(--) declare -ax verb` causes an ENOTSOCK segfault

2023-06-19 Thread Chet Ramey
On 6/16/23 1:02 AM, Wiley Young wrote: Bash Version: 5.2 Patch Level: 15 Release Status: release Description: `verb=(--) declare -ax verb` causes bash to crash and closes the active terminal tab. strace output includes this error: "getpeername(0, 0x7ffc74d185d0, [16])= -1 ENOTSOCK (Sock

Re: `verb=(--) declare -ax verb` causes an ENOTSOCK segfault

2023-06-16 Thread Greg Wooledge
On Fri, Jun 16, 2023 at 10:59:24AM -0400, Lawrence Velázquez wrote: > % /bin/bash -c 'foo= declare -ax foo' > zsh: segmentation fault /bin/bash -c 'foo= declare -ax foo' > > I am seeing this behavior with bash 3.2.57, so it appears to be > longstanding. I get a segfault/core dump in every versio

Re: `verb=(--) declare -ax verb` causes an ENOTSOCK segfault

2023-06-16 Thread Lawrence Velázquez
On Fri, Jun 16, 2023, at 1:02 AM, Wiley Young wrote: > Description: >`verb=(--) declare -ax verb` causes bash to crash and closes the active > terminal tab. The value "(--)" does not seem to be necessary: % /bin/bash -c 'foo= declare -ax foo' zsh: segmentation fault /bin/bash -c 'foo= declar

`verb=(--) declare -ax verb` causes an ENOTSOCK segfault

2023-06-15 Thread Wiley Young
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASS