[Top][All Lists]

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

Re: Crash in malloc.c : internal_malloc under Asan

From: Ángel
Subject: Re: Crash in malloc.c : internal_malloc under Asan
Date: Sat, 16 Jan 2021 01:11:19 +0100

On 2021-01-15 at 17:11 -0500, Jeffrey Walton wrote:
> Hi Everyone,
> I'm trying to use an Asan-instrumented version of Bash for my shell.
> Bash is dying in startup code. The source file is malloc.c (missing
> from Bash sources at
> https://git.savannah.gnu.org/cgit/bash.git/tree/), and the function
> is
> internal_malloc.
> The Asan folks have a suspicion of malloc.c. Also see "Crash in
> application's startup code around Asan red zone",
> https://groups.google.com/g/address-sanitizer/c/oB8opTbjkuw.
> Where is malloc.c coming from? Where can I find it?
> Jeff

Hello Jeff

lib/malloc/malloc.c, if you want to view it online: 

Maybe libasan is providing its own malloc and there is a conflict of
calls between theirs and bash mallocs. I would recommend to rebuild
bash with the parameter --without-bash-malloc and see if that makes the
error go away (which is likely).

Best regards, and apologies for the previous empty reply.

reply via email to

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