[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: using valgrind on a loadable builtin
From: |
Chet Ramey |
Subject: |
Re: using valgrind on a loadable builtin |
Date: |
Thu, 26 May 2022 14:50:30 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 |
On 5/25/22 6:19 PM, Eduardo Bustamante wrote:
Valgrind is not capable of tracing the malloc that Bash provides.
I spent far too long looking for the message that explains this, but here
it is from the archives:
https://lists.gnu.org/archive/html/bug-bash/2017-04/msg00053.html
Bash-5.2 has a `make valgrind' target that will build bash without the
malloc wrappers that so confuse valgrind.
If you want to do that yourself, you have to build bash from scratch with
the DISABLE_MALLOC_WRAPPERS cpp define.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/