Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Oct 2004 13:03:09 -0400
From:      Brian Reichert <reichert@numachi.com>
To:        Joseph Koshy <joseph.koshy@gmail.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: awk leaking memory during arithmetic?
Message-ID:  <20041005170309.GC262@numachi.com>
In-Reply-To: <84dead72041004191479cb774a@mail.gmail.com>
References:  <20041004171422.GK262@numachi.com> <84dead72041004191479cb774a@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@numachi.com>
37 Crystal Ave. #303			Daytime number: (603) 434-6842
Derry NH 03038-1713 USA			BSD admin/developer at large	



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041005170309.GC262>