[Bug 282993] awk eats all ram

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 01 Dec 2024 01:12:02 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282993

Xander <xj.dropbox+freebsd@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |xj.dropbox+freebsd@gmail.co
                   |                            |m

--- Comment #2 from Xander <xj.dropbox+freebsd@gmail.com> ---
I also ran into this problem after upgrading from 14.0 to 14.1. Parsing a
continuous stream of input from a serial line with a simple awk script resulted
in growing ram and swap.

This most likely is the bug upstream mentioned in
https://github.com/onetrueawk/awk/issues/227

with a fix in
https://github.com/onetrueawk/awk/commit/ae724691436df6353bd7732d6255eb931b075daf

Basically every import of One True Awk into base after this commit (Apr 22)
should fix the memory eating.

I'm running the base awk with the afore mentioned patch and no growing memory
anymore. One could also use nawk or gawk from ports as a workaround.

Since 14/STABLE did a new import of One True Awk after Apr 22 14/STABLE and now
14.2 should be good.

Since it has a risk of destabilising systems one might consider an Erratum to
14.1 for the few months to come.

-- 
Xander

-- 
You are receiving this mail because:
You are the assignee for the bug.