Re: awk leaking memory during arithmetic?

From: Brian Reichert <reichert_at_numachi.com>
Date: Tue, 5 Oct 2004 13:03:09 -0400
On Tue, Oct 05, 2004 at 02:14:07AM +0000, Joseph Koshy wrote:
> > I note that 5.2.1 and 4.10 are using different versions of awk.
> > 
> > Are these awk bugs, or am I misusing awk?  The memory consumption
> > under 5.2.1 is what concerns me the most.  I'll open a PR, if that's
> 
> It does look like an awk bug:

Others have revealed that I was misusing awk.  The weird behaviors
of both awks are caused by me having fed a huge number to the field
counter ( 't' vs '$t').

As to what (either of the implementations of) awk should do when
fed garbage, is unspecified.  I prefered GNU awk's (under 4.10)
behavior better, in that it died much quicker, without filling my
partition with a huge core file. :)

-- 
Brian Reichert				<reichert_at_numachi.com>
37 Crystal Ave. #303			Daytime number: (603) 434-6842
Derry NH 03038-1713 USA			BSD admin/developer at large	
Received on Tue Oct 05 2004 - 15:03:11 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:15 UTC