retitle 81487 mawk: stack overflow in scripts/Menuconfig from Linux 2.4.x
thanks
Hi Robert,
Robert Luberda wrote:
> After `make menuconfig' in the kernel 2.4.0, which hadn't worked,
> I found file core in the kernel dir.
[...]
> If I switch awk alternative to gawk, `make menuconfig' in 2.4.0 will work.
> `make menuconfig' from 2.2.16 works even when awk points to mawk.
Others reported that in similar situations, mawk produces a core
dump because the stack overflows:
BEGIN { x = 1; recurse(); }
function recurse() {
printf("Recurse: %s\n",x);
x = x+1; recurse();
}
This used to happen in both mawk and gawk, though it appears now that
gawk catches the SIGSEGV (really!) and claims the error for itself.
That your ‘make menuconfig’ bug only appeared in mawk suggests that
some other mawk bug was involved, too.
So I tried to reproduce. With either v2.4.0 or v2.5.45~1^2~57 and
mawk as awk I was able to ‘make menuconfig’, choose some options, and
save the .config without trouble. I didn’t try Willy Tarreau’s modern
2.4, but I would assume it has the same behavior.
Any tips for reproducing (e.g., a .config from the time of failure)?
Jonathan
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]