bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: malloc: ../bash-5.2.21/dispose_cmd.c:249: assertion botched


From: Chet Ramey
Subject: Re: malloc: ../bash-5.2.21/dispose_cmd.c:249: assertion botched
Date: Mon, 4 Mar 2024 13:28:40 -0500
User-agent: Mozilla Thunderbird

On 3/4/24 1:06 PM, Dennis Clarke wrote:

What I shall do is look at the dependency tree for bison 3.8.2 and build
everything from bottom to top. Then get into a valgrind build and see
what happens. Good advice. Thank you. Half of the problem is that the
hardware is weird! Not sure who else bothers with 32-bit armv7l but my
guess is that it is mostly in the embedded world.

I'll get to work on that and let you know.

The other potential cause is code executed via LD_PRELOAD. If it allocates
memory using a different malloc (say, the libc malloc) that bash later
frees using its internal malloc, you'll get mismatches. You can tell that
by building bash --without-bash-malloc and seeing if you get the same
behavior.

Chet

--
``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/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]