From: Khem Raj <raj.khem@gmail.com>
To: "Aníbal Limón" <anibal.limon@linux.intel.com>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH] bash: Disable custom memory allocator
Date: Fri, 9 Oct 2015 17:25:50 -0700 [thread overview]
Message-ID: <2F03AA60-9509-44F3-83E1-F4DC89EFFE29@gmail.com> (raw)
In-Reply-To: <1444429304-22379-1-git-send-email-anibal.limon@linux.intel.com>
[-- Attachment #1: Type: text/plain, Size: 1827 bytes --]
> On Oct 9, 2015, at 3:21 PM, Aníbal Limón <anibal.limon@linux.intel.com> wrote:
>
> Bash is failing trying to allocate memory [1] using the custom
> memory allocator if we disable it the issue is fixed.
>
> The major distributions also disabled by default [2], so we
> don't have a good reason to use it.
The fix is OK but commit message needs improvement. The underlying issue is due to bash’s malloc using brk() calls
to allocate memory, which fail when address randomization is enabled in kernel. sbrk() based custom allocators are obsolete
on the downside we will lose a bit of performance but correctness is more important here.
>
> [YOCTO #8452]
>
> [1] https://bugzilla.yoctoproject.org/show_bug.cgi?id=8452#c0
> [2] https://bugzilla.yoctoproject.org/show_bug.cgi?id=8452#c5
>
> Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
> ---
> meta/recipes-extended/bash/bash.inc | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/recipes-extended/bash/bash.inc b/meta/recipes-extended/bash/bash.inc
> index c06f157..020409f 100644
> --- a/meta/recipes-extended/bash/bash.inc
> +++ b/meta/recipes-extended/bash/bash.inc
> @@ -7,7 +7,7 @@ DEPENDS = "ncurses bison-native"
> inherit autotools gettext texinfo update-alternatives ptest
>
> EXTRA_AUTORECONF += "--exclude=autoheader"
> -EXTRA_OECONF = "--enable-job-control"
> +EXTRA_OECONF = "--enable-job-control --without-bash-malloc"
>
> # If NON_INTERACTIVE_LOGIN_SHELLS is defined, all login shells read the
> # startup files, even if they are not interactive.
> --
> 1.9.1
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 211 bytes --]
next prev parent reply other threads:[~2015-10-10 0:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-09 22:21 [PATCH] bash: Disable custom memory allocator Aníbal Limón
2015-10-10 0:25 ` Khem Raj [this message]
2015-10-13 15:58 ` Benjamin Esquivel
2015-10-13 16:06 ` Aníbal Limón
2015-10-13 16:24 ` Benjamin Esquivel
2015-10-14 5:05 ` Richard Purdie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2F03AA60-9509-44F3-83E1-F4DC89EFFE29@gmail.com \
--to=raj.khem@gmail.com \
--cc=anibal.limon@linux.intel.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.