awk leaking memory during arithmetic?

Brian Reichert reichert at numachi.com
Tue Oct 5 10:03:11 PDT 2004


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	


More information about the freebsd-current mailing list