[BusyBox] bug#1149: lash infinite loop problem

Michael Shmulevich michaels at jungo.com
Tue Apr 17 09:41:48 UTC 2001


I have seen similar behaviour for all x86, MIPS and PowerPC.
Somehow I have a feeling that it all have to do with the "terminal 
stealing" behaviour that I have reported earlier.

Please check that there is no race condition for children. I think that 
the shell simply got EOF from atdin. This is what happens to 'cat' for 
example. In such cases, bash simply cannot start, staying in 'R' state 
in 'ps' list.

So, maybe it's about time to check the sessions/process groups assignments?


Eric Desjardins <rd_design1 at electrolinequip.com> wrote:

Package: busybox
Version: 0.51
Severity: normal

When I boot my system with busybox init and start /bin/ash and then start
busybox sh I got this:
#
#
#
# busybox sh


BusyBox v0.51pre (2001.04.12-14:17+0000) Built-in shell (lash)
Enter 'help' for a list of built-in commands.

/ #
/ #
/ # cd bin
job=0xbffffcf8 fed to run_command by busy_loop()'
/bin # ls
job=0xbffffcf8 fed to run_command by busy_loop()'
ash       csh       false     kill      mknod     ps        sleep     uname
busybox   date      fdflush   ldd       mktemp    pwd       stty      usleep
cat       dd        getopt    lilo      more      rm        sync      vi
chgrp     df        grep      ln        mount     rmdir     tar       zcat
chmod     dmesg     gunzip    ls        mt        rpm       touch
chown     dumpkmap  gzip      minicom   mv        sed       true
cp        echo      hostname  mkdir     ping      sh        umount
'ls' exited -- return code 0
/bin # /bin # /bin # /bin # /bin # /bin # /bin # /bin # /bin # /bin # /bin #
/bi
n # /bin # /bin # /bin # /bin # /bin # /bin # /bin # /bin # /bin # /bin #
/bin #
  /bin # /bin # /bin # /bin # /bin # /bin # /bin # /bin # /bin # /bin # /bin
# /b
in # /bin # /bin # /bin # /bin # /bin # /bin # /bin # /bin # /bin # /bin #
/bin
# /bin # /bin # /bin # /bin # /bin # /bin # /bin # /bin # /bin # /bin # /bin
# /
bin # /bin # /bin # /bin # /bin # /bin # /bin # /bin # /bin # /bin # /bin #
/bin
  # /bin # /bin # /bin # /bin # /bin # /bin # /bin # /bin # /bin # /bin #
/bin #
/bin # /bin # /bin # /bin # /bin # /bin # /bin # /bin # /bin # /bin # /bin #
/bi
n # /bin # /bin # /bin # /bin # /bin # /bin # /bin # /bin # /bin # /bin #
/bin #
  /bin # /bin # /bin # /bin # /bin # /bin # /bin # /bin # /bin # /bin # /bin
# /b
in # /bin # /bin # /bin # /bin # /bin # /bin # /bin # /bin # /bin # /bin #
/bin
# /bin # /bin # /bin # /bin # /bin # /bin # /bin # /bin # /bin # /bin # /bin
#

I'm running kernel 2.4.0 glibc 2.1.3.

Eric



-- 
Sincerely yours,
Michael Shmulevich
______________________________________
Software Developer
Jungo - R&D
email: michaels at jungo.com
web: http://www.jungo.com
Phone: 1-877-514-0537(USA)  +972-9-8859365(Worldwide) ext. 233
Fax:   1-877-514-0538(USA)  +972-9-8859366(Worldwide)






More information about the busybox mailing list