Bug 4051

Summary: Segfault caused by valid mawk (but invalid gawk) program.
Product: Busybox Reporter: Nagy Elemer Karoly <eknagy>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: minor CC: busybox-cvs
Priority: P5 Keywords: FIXME
Version: 1.18.x   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:
Attachments: Screenshot

Description Nagy Elemer Karoly 2011-08-08 23:34:03 UTC
Created attachment 3535 [details]
Screenshot

echo "42" | ./awk '// {print();}' # causes segfault
echo "42" | gawk '// {print();}' # syntax error
echo "42" | mawk '// {print();}' # prints 42
With BusyBox v1.18.4 (2011-04-04 18:51:40 CDT) multi-call binary, i386 if I recall correctly.
Comment 1 Denys Vlasenko 2011-09-11 07:43:01 UTC
Fixed in git by:

commit 7b46d11582047d0dd21b547ff4a913defe646d40
Author: Denys Vlasenko <vda.linux@googlemail.com>
Date:   Sun Sep 11 00:30:56 2011 +0200

    awk: fix a SEGV