[Buildroot] [PATCH] bash: disable bash malloc by default

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Wed May 31 20:37:20 UTC 2017


Hello,

On Tue, 23 May 2017 13:19:31 -0400, Daniel Sabogal wrote:
> Bash's malloc relies on sbrk which is implemented as
> a fail-only stub in musl. Presently, it is disabled
> when configured for static libs. Instead, default to
> using libc malloc.
> 
> Fixes:
> # bash
> bash: xmalloc: locale.c:81: cannot allocate 18 bytes (0 bytes allocated)
> 
> Signed-off-by: Daniel Sabogal <dsabogalcc at gmail.com>
> ---
>  package/bash/bash.mk | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Applied to master, thanks. Peter: I believe this can be applied on
2017.02.x as well.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com


More information about the buildroot mailing list