This seems to be another case of awk seg faulting.
On my system, I only need to type 'awk' on the command line to reproduce this symptom:
Line 2660 of awk.c. The body of the for() loop never gets to execute because
envp is NULL and so *envp causes the seg fault:
2660: for (envp=environ; *envp; envp++) {
2661: s = bb_xstrdup(*envp);
2662: s1 = strchr(s, '=');
2663: if (!s1) {
2664: goto keep_going;
2665: }
If I change line 2660 to:
for (envp=environ;( envp && (*envp) ); envp++) {
-it doesn't seg fault anymore.
Can someone explain why envp is NULL in the first place?
System details-
powerpc-linux-uclibc-gcc
gcc version 4.0.2
buildroot-21-03-2006
Love Games? Gamesville is Waiting for You...
Free Online Games, Fat Cash $ Prizes
Plus Bingo, Solitaire, Poker & Much More! http://www.gamesville.com
_______________________________________________ busybox mailing list [email protected] http://busybox.net/cgi-bin/mailman/listinfo/busybox
