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

List:       busybox
Subject:    Re: multiple pipes shell problem
From:       Denys Vlasenko <vda.linux () googlemail ! com>
Date:       2011-12-18 22:10:26
Message-ID: 201112182310.26510.vda.linux () googlemail ! com
[Download RAW message or body]

On Tuesday 13 December 2011 19:51, Smith, Stephen wrote:
> Toolchain (code sourcery):
> arm-2010q1-202-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
> 
> Linking against std libc (2.11.1) (it's in the toolchain) and gcc is 4.4.1.
> 
> Build Commands:
> make distclean
> make defconfig
> LDFLAGS=--static make -j 4 CROSS_COMPILE=arm-none-linux-gnueabi-
> 
> I believe that makes the .config what was the default since I didn't change any options.
> To "fix", all I did was change to static binary, built and it worked.
> And to verify, just now I removed that option, built and problem back.

Can't reproduce. I did the following:

* DL'ed and installed arm-2010q1-202-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
* Added it to $PATH
* Unpacked pristine busybox-1.19.3

* Built dynamic bbox for arm:
  make defconfig
  make -j 4 CROSS_COMPILE=arm-none-linux-gnueabi-
  make CROSS_COMPILE=arm-none-linux-gnueabi- install

* Made ext2 image with it:
  dd if=/dev/zero of=image_ext2 bs=1M count=16
  mke2fs -F image_ext2
  mkdir 0dir
  mount -o loop image_ext2 0dir
  cp -a _install/* 0dir

* Added to image /lib/* from toolchain:
  cp -a $PATH_TO_TOOLCHAIN/arm-none-linux-gnueabi/libc/lib 0dir

* Unmounted image_ext2:
  sync
  umount -d 0dir

* Downloaded http://www.landley.net/aboriginal/downloads/binaries/system-image-armv6l.tar.bz2
  and stole zImage from there.

* Running it under qemu:
  qemu-system-arm -cpu arm1136-r2 -M versatilepb -nographic -no-reboot -hda image_ext2 -kernel zImage \
        -append 'rw init=/bin/sh panic=1 PATH=/bin:/sbin root=/dev/sda console=ttyAMA0'
  -> this runs busybox's shell (ash, to be more exact) as init process.

* Trying to reproduce:
  echo foo | grep foo | grep foo
  -> it works (I see "foo")


Can you repeat these steps?
If "echo foo | grep foo | grep foo" doesn't work for you, can you send me your busybox binary?

-- 
vda
_______________________________________________
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