[Buildroot] [PATCH] top: fix double free causing a SIGABRT storm after SIGPIPE
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Fri Aug 19 13:57:00 UTC 2016
Hello,
On Fri, 19 Aug 2016 15:52:53 +0200, Luca Ceresoli wrote:
> On some platforms the command 'top -n1 | head' goes very often into an
> infinite loop of SIGABRT and double free()s.
>
> Fix by applying a patch from upstream.
>
> For a detailed explanation of the bug, see
> http://lists.busybox.net/pipermail/busybox/2016-August/084555.html
>
> Thanks to Yann for the help in finding this bug.
>
> Signed-off-by: Luca Ceresoli <luca at lucaceresoli.net>
> Cc: "Yann E. MORIN" <yann.morin.1998 at free.fr>
> ---
> ...op-move-free-prev_hist-out-of-signal-path.patch | 48 ++++++++++++++++++++++
> 1 file changed, 48 insertions(+)
> create mode 100644 package/busybox/0006-top-move-free-prev_hist-out-of-signal-path.patch
Applied to master, after changing the commit title: you're changing the
"busybox" package, not the "top" package.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
More information about the buildroot
mailing list