retitle 111763 mawk: stack overflow from infinite recursion in script tags 111763 - unreproducible tags 111763 + upstream thanks
Hi, Dr. David Alan Gilbert wrote: > (I actually triggered this initially by a bug in the Linux kernel menuconfig > script which accidentally got itself into a little recursion loop) If you remember more about this, it would be helpful. I am guessing there was a "source" line loop between config.in files, but I haven’t been able to track it down or see why gawk worked. See http://bugs.debian.org/81487 > The awk scripts: > > BEGIN { > recurse(0); > } > > function recurse(x) { > printf("Recurse: %s\n",x); > recurse(x+1); > } > > Fails eventually with a segfault; (65000 iteration on Alpha, 69871 on Sparc, > 87347 on MIPS....) > > I guess if it is a memory thing it should cleanly 'Out of memory' - but > somehow > I actually think it is running off the end of somewhere. It’s a stack overflow. Perfectly safe, but probably disconcerting. gawk handles this by catching the SIGSEGV and reporting it. ;-) Jonathan -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org