On Wed, Dec 06, 2023 at 05:28:19PM +0800, wang yuhang via Bug reports for the
GNU Bourne Again SHell wrote:
> When the for loop reaches env, the values of each env are:
>
[...]
> (gdb) p env[16]
> $21 = 0x7ffce3c2e25a "DIRNAME_ALIAS"
> (gdb) p env[17]
> $22 = 0x7ffce3c2e279 "PID="
The
The initialize_shell_variables function is processing env. When the for
loop
reaches env[16], glibc needs to use the main_arena.top variable. However,
the
value in the address pointed to by the top variable is overwritten by
env[15],
causing a glibc exception and resulting in a
Hi. This appears to happen when creating a shell variable from the initial
environment. I can't reproduce it. If you can find a way to reliably
reproduce it, please let me know and we can work on it.
So far, we have encountered this issue three times in our environment. The
following is one of