[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Malloc assertion fails in ${parameter#word} when LC_CTYPE=C.UTF-8
From: |
Chet Ramey |
Subject: |
Re: Malloc assertion fails in ${parameter#word} when LC_CTYPE=C.UTF-8 |
Date: |
Mon, 25 Sep 2023 09:15:36 -0400 |
User-agent: |
Mozilla Thunderbird |
On 9/22/23 9:31 PM, Samuel Grayson wrote:
(Full output [here][1])
Note: I inserted debug statements in my build, so the numbers may be a bit
off.
This error occurs:
- Only when running Bash in Valgrind. I don't know if the Valgrind VM enables
this check which is normally disabled?
Valgrind is easily fooled by the bash malloc wrapper functions. There's a
pretty complete explanation here:
https://lists.gnu.org/archive/html/bug-bash/2017-04/msg00053.html
If you want to run valgrind on bash without false positives, there is a
`valgrind' target in the makefile.
make clean
make valgrind
If the error still occurs with that build, then we'll investigate.
--
``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/