BusyBox 1.2.1 piping issue

Coleman Brumley coleman.brumley at comcast.net
Thu Apr 5 14:31:17 PDT 2007



Coleman Brumley wrote:
>
> 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. 
>
FYI, I recompiled with "CONFIG_TR=y" in my .config and the pipe is 
working now. 

 find . -name *.c -exec grep -Hi "CONFIG_TR" {} \; doesn't result in 
anything, so I'm not sure where the dependency is, if there even is one.

- Coleman

>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> busybox mailing list
>> busybox at busybox.net
>> http://busybox.net/cgi-bin/mailman/listinfo/busybox
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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/20070405/d8f7a1e6/attachment.htm 


More information about the busybox mailing list