On Tue, 19 Feb 2008, Cristian Ionescu-Idbohrn wrote: > On Tue, 19 Feb 2008, Cristian Ionescu-Idbohrn wrote: > > > r21020 is ok. > > > > ash r21030 breabs in an init script: > > > > rc (pid 75) segfaults for page address 8feee000 at pc 355a06a6 > > > > while starting a 'for' loop, I'm not sure, I'm investigating. > > I'll let you know after digging some more. > > Yes. This line in a console shell: > > # for file in /etc/rc$N.d/S??*; do echo $file;done > > generates: > > sh (pid 79) segfaults for page address 20188000 at pc 355a06a6 > > the shell dies, and init starts a new one. > > This kills the shell too: > > # echo $RUNLEVEL > 3 > # for file in /etc/rc$RUNLEVEL.d/S??*; do echo $file;done > sh (pid 82) segfaults for page address 20188000 at pc 355a06a6 > > But this line: > > for file in /etc/rc3.d/S??*; do echo $file;done > > works as expected.
A simplier variant: # echo $RUNLEVEL 3 # for B in $RUNLEVEL;do echo $B;done sh (pid 231) segfaults for page address 20188000 at pc 355a06a6 But ash dies for any non-existant variable: # echo $VAR # for B in $VAR;do echo $B;done sh (pid 234) segfaults for page address 20188000 at pc 355a06a6 Cheers, -- Cristian _______________________________________________ busybox mailing list [email protected] http://busybox.net/cgi-bin/mailman/listinfo/busybox
