Problem with PPID and bb grep

Natanael Copa natanael.copa at gmail.com
Sat Nov 3 10:20:32 UTC 2007


On Fri, 2007-11-02 at 20:59 +0100, Marc Blumentritt wrote:

> 2.) There seems to be a bug in bb grep. I did this on my machine:
> 
> hive ~ # busybox grep -Fow usbfs /proc/filesystems
> Segmentation fault

I can reproduce this in svn version too.

here is a backtrace:
(gdb) bt
#0  0x080f7c9a in grep_file (file=0x8143d58) at findutils/grep.c:277
#1  0x080f8231 in grep_main (argc=1, argv=0xffb1d6b8) at findutils/grep.c:525
#2  0x0806cf95 in run_appletstruct_and_exit (applet=0xffb1d6a8, argv=0x1)
    at libbb/appletlib.c:648
#3  0x0806cfd7 in run_applet_and_exit (name=0xffb1d7db "grep", argv=0xffb1d6a8)
    at libbb/appletlib.c:655
#4  0x0810b8d8 in ?? ()
#5  0x081433ec in ?? ()
#6  0x0806d1ad in run_applet_and_exit (name=0x812acdc "", argv=0x78b1d7c8)
    at libbb/appletlib.c:628
#7  0x0806d571 in main (argc=-5122440, argv=0xffb1d6a4)
    at libbb/appletlib.c:683


-nc





More information about the busybox mailing list