[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Fw: Busybox awk throws glibc failure if using standalone/preferred applet feature
From:       Harald Becker <ralda () gmx ! de>
Date:       2012-07-31 10:29:17
Message-ID: 20120731122917.7eb68739 () ralda ! gmx ! de
[Download RAW message or body]

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)

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" (application/octet-stream)]
[Attachment #4 (application/x-awk)]

aaaaaaaaaaaaaaaaaaaaaaaaaaaaa
bbbbbbbbbbbbbbbbbbbbbbbbbbbbb
ccccccccccccccccccccccccccccc
ddddd start ddddddddddddddddd
eeeeeeeeeeeeeeeeeeeeeeeeeeeee
fffffffffffffffffffffffffffff
ggggggggggggggggggggggggggggg
hhhhh end hhhhhhhhhhhhhhhhhhh
iiiiiiiiiiiiiiiiiiiiiiiiiiiii
jjjjjjjjjjjjjjjjjjjjjjjjjjjjj
kkkkkkkkkkkkkkkkkkkkkkkkkkkkk

["w.err" (application/octet-stream)]
[Attachment #7 (application/x-gzip)]
[Attachment #8 (application/x-gzip)]

_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic