Busybox awk throws glibc failure if using standalone/preferred applet feature

Tito farmatito at tiscali.it
Fri Aug 10 19:32:42 UTC 2012


On Friday 10 August 2012 17:21:28 Harald Becker wrote:
> Second repost as this has not got through to list yet ...
> I really have trouble to get that standalone/prefer applet working
> again within Busybox ash scripts. Other applets of Busybox seam to
> fail in same way, not only awk. Need help! 
> 
> Hi !
> 
> I stumbled on some trouble. After modifying a few scripts to use
> Busybox ash instead of bash, I hit on a case where glibc aborts with:
> 
> glibc detected /bin/busybox: munmap_chunk(): invalid pointer
> (Full error output appended)
> 
> After narrowing that down, I found this happens when Busybox calls the
> awk applet using the preferred applet feature, but works correct if awk
> is invoked manually or with /bin/busybox awk.
> 
> I have appended the following:
> 
> - Busybox shell script (w)
> - awk script (w.awk)
> - example input file processed by the awk script (w.txt)
> - the full output including error message (w.err)
> - my Busybox configuration (busybox.config)
> - map file from Busybox compile (busybox_unstripped.map)
>   [removed due to size limit of mail list, asked if you need a copy]
> 
> I used at least two different Busybox versions 1.20.1 and snapshot from
> 2012-07-31 with same type of error message.
> 
> My glibc version (output from /lib/libc.so.6):
> 
> GNU C Library stable release version 2.15, by Roland McGrath et al.
> Copyright (C) 2012 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.
> There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
> PARTICULAR PURPOSE.
> Compiled by GNU CC version 4.6.3.
> Compiled on a Linux 3.5.0 system on 2012-07-28.
> Available extensions:
> 	C stubs add-on version 2.1.2
> 	crypt add-on version 2.1 by Michael Glad and others
> 	Gentoo patchset 18
> 	GNU Libidn by Simon Josefsson
> 	Native POSIX Threads Library by Ulrich Drepper et al
> 	Support for some architectures added on, not maintained in
> glibc core. BIND-8.2.3-T5B
> libc ABIs: UNIQUE IFUNC
> 
> Is anybody able to reproduce / fix this error?
> 
> --
> Harald

Ops.....
Tested with /bin/busybox
BusyBox v1.21.0.git (2012-08-10 21:15:09 CEST) multi-call binary.


Ciao,
Tito


More information about the busybox mailing list