BusyBox 1.2.1 piping issue

Coleman Brumley coleman.brumley at comcast.net
Wed Apr 4 17:49:10 PDT 2007


Mike Frysinger wrote:
> On Wednesday 04 April 2007, Denis Vlasenko wrote:
>   
>> On Wednesday 04 April 2007 20:42, Coleman Brumley wrote:
>>     
>>> Hello.
>>>
>>> I'm having an issue with BusyBox v1.21 and piping.  It seems as though
>>> piping is causing busybox to restart/crash.
>>>
>>> For example:
>>> /# echo abcd | grep a
>>>
>>>
>>> BusyBox v1.2.1 (2007.03.26-18:36+0000) Built-in shell (ash)
>>> Enter 'help' for a list of built-in commands./
>>>
>>> Has anyone run into this or anything similar?
>>>       
>> Did you test later versions?  Do you have strace output 
>> of misbehaving command?
>>
>> strace -f -o file.log ./busybox ash -c 'echo abcd | grep a'
>>
>> .config? On which arch are you? Does it happen on i386?
>>     
>
> heh, actually we just noticed this ourselves with busybox 1.4.2 on blackfin:
> echo "" | grep .
> grep seems to crash
> -mike
>   
>   
Thanks, Mike and Denis.

It seems to be the "|" for me, since this also crashes:

echo $x | cut -d"=" -f1 | tr 'A-Z' 'a-z'

> strace -f -o file.log ./busybox ash -c 'echo abcd | grep a'


I don't have strace installed as part of my busybox build.  What setting 
in .config turns that on?  Or did you mean to run the strace command on 
my desktop?

This is for an arm platform cross compiled using gcc v3.4.1.  I don't 
know if it happens on i386, since I haven't built for that arch, just 
arm.  My .config is attached. 


> ------------------------------------------------------------------------
>
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://busybox.net/cgi-bin/mailman/listinfo/busybox
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/busybox/attachments/20070404/97dc1e44/attachment-0001.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config
Type: application/xml
Size: 15697 bytes
Desc: not available
Url : http://busybox.net/lists/busybox/attachments/20070404/97dc1e44/attachment-0001.xml 


More information about the busybox mailing list