[BusyBox] patch: awk segfaults on export of empty env vars

Rob Landley rob at landley.net
Mon Nov 22 22:14:15 UTC 2004


On Sunday 21 November 2004 07:50 pm, Keith Smith wrote:
> Hi
>
> Using 1.00-pre2, I have found that awk segfaults when empty environment
> variables are exported.
>
> # export x=''
> # awk
> SIGSEGV
>
> This was independently discovered elsewhere, and resulted in the following
> change to awk in CVS:
> http://www.busybox.net/cgi-bin/cvsweb/busybox/editors/awk.c?r1=1.9&r2=1.10

On an unrelated note, I finally got around to trying busybox-1.00's awk to 
build my little distro that replaces all the gnu stuff with busybox, and it 
seems to have worked.  (Haven't tried rebuilding it under itself yet, but I 
should get to that later today.)

Congratulations to the awk maintainer.  There's apparently been some major 
work done on awk since the last time I tried this...

Now I just have to finish rewriting sort to accept -k, make gzip and gunzip 
work for more than one file at a time, give ar a write mode, add comm (which 
perl needs in order to build), add -i and fuzz factor support to patch, add 
bzip2 compress side support, deal with the whole mess of busybox shells so I 
can replace bash, add diff (at least -u) and a simple man command that cat 
just bzcat a preformatted page, and dust off the init rewrite.

Rob



More information about the busybox mailing list