Re: Valgrind detects invalid read in bash. malloc assertion fails.

2019-05-15 Thread Chet Ramey
On 5/15/19 5:46 AM, Andrew Church wrote: >>> I assume this is a valgrind false positive. >> >> That possible. However, the assertion that causes the abort, is part of >> the malloc.c version (line 934) that ships with bash. I guess that the >> issue is caused by the fact that bash uses it's own mal

Re: Valgrind detects invalid read in bash. malloc assertion fails.

2019-05-15 Thread Andrew Church
>> I assume this is a valgrind false positive. > >That possible. However, the assertion that causes the abort, is part of >the malloc.c version (line 934) that ships with bash. I guess that the >issue is caused by the fact that bash uses it's own malloc.c, which >seems to be incompatible with valgr

Re: Valgrind detects invalid read in bash. malloc assertion fails.

2019-05-15 Thread Johannes Müller
On 14.05.19 15:46, Chet Ramey wrote: I assume this is a valgrind false positive. That possible. However, the assertion that causes the abort, is part of the malloc.c version (line 934) that ships with bash. I guess that the issue is caused by the fact that bash uses it's own malloc.c, which

Re: Valgrind detects invalid read in bash. malloc assertion fails.

2019-05-14 Thread Chet Ramey
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:~$

Re: Valgrind detects invalid read in bash. malloc assertion fails.

2019-05-13 Thread Grisha Levit
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 ': *' ==15001== Memcheck, a memory error detector ==15001== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al. ==15001

Re: Valgrind detects invalid read in bash. malloc assertion fails.

2019-05-13 Thread Chet Ramey
On 4/30/19 7:06 AM, Johannes Müller wrote: > Bash Version: 5.0 > Patch Level: 0 > Release Status: release > > Description: >     When I run "valgrind bash valgrind_issue.sh" on my up-to-date > Debian stretch, >     then valgrind shows invalid read errors and an assertion in > malloc.c fai

Valgrind detects invalid read in bash. malloc assertion fails.

2019-04-30 Thread Johannes Müller
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -g -O2 -Wno-parentheses -Wno-format-security uname output: Linux debian 4.9.0-9-amd64 #1 SMP Debian 4.9.168-1 (2019-04-12) x86_64 GNU/Linux Machine Type: x86_64-pc-