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
w
Description: Binary data
w.awk
Description: application/awk
aaaaaaaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbbbbbb ccccccccccccccccccccccccccccc ddddd start ddddddddddddddddd eeeeeeeeeeeeeeeeeeeeeeeeeeeee fffffffffffffffffffffffffffff ggggggggggggggggggggggggggggg hhhhh end hhhhhhhhhhhhhhhhhhh iiiiiiiiiiiiiiiiiiiiiiiiiiiii jjjjjjjjjjjjjjjjjjjjjjjjjjjjj kkkkkkkkkkkkkkkkkkkkkkkkkkkkk
w.err
Description: Binary data
busybox.config.gz
Description: GNU Zip compressed data
_______________________________________________ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox