On 5/14/19 2:16 AM, Grisha Levit wrote:
> Reproduces for me on Debian 9 with a fresh bash devel build (with or
> without DEBUG and MALLOC DEBUG). Anything with a glob will do to reproduce:
> 
> $ valgrind ./bash -c ': *'

chet@caleb-debian9:~$ ./build/bash-5.0.7/bash -c ': *'
chet@caleb-debian9:~$ echo $?
0
chet@caleb-debian9:~$ cat /etc/debian_version
9.9
chet@caleb-debian9:~$ ulimit -c unlimited
chet@caleb-debian9:~$ ./build/bash-5.0.7/bash -c ': *'
chet@caleb-debian9:~$ echo $?
0
chet@caleb-debian9:~$ ./build/bash-5.0.7/bash -c 'echo $BASH_VERSION'
5.0.7(1)-release
chet@caleb-debian9:~$

If bash were freeing unallocated memory, the bash malloc would catch it.
I assume this is a valgrind false positive.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    c...@case.edu    http://tiswww.cwru.edu/~chet/

Reply via email to