bug#1293: [BusyBox] bug#1293: busybox 0.60.5 ash builtin sh infinite loop

Vladimir N. Oleynik dzo at simtreas.ru
Sun Dec 22 21:46:03 UTC 2002


> Package: busybox
> Version: 0.60.5
> Severity: normal
> 
> With following lines set in Config.h,
> #define BB_ASH
> #define BB_FEATURE_SH_IS_ASH
> #define BB_FEATURE_SH_STANDALONE_SHELL
> 
> Given any script foo.sh, the command
>      sh foo.sh
> now hangs in an infinite loop in ash.c::findvar() before
> actually executing foo.sh, while
>      /bin/sh foo.sh
> works.  This bug was not present in busybox 0.60.2.

> Disabling BB_FEATURE_SH_STANDALONE_SHELL seems to prevent
> the problem; I can then happily invoke ash from inside ash
> without it hanging.  Wonder what change since 0.60.2 broke this?

You are right.
I don`t support STANDALONE_SHELL and ALWAYS_WIN options.
This changes to ash vers after 0.60.2 is not my.
I can understand this full.
For quick hack patch attached.


--w
vodz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: last_patch73.gz
Type: application/x-gzip
Size: 581 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20021222/6a935459/attachment.bin 


More information about the busybox mailing list