bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: grep: unusually high memory use with '-o' option


From: Justin Pryzby
Subject: Re: grep: unusually high memory use with '-o' option
Date: Sat, 10 Dec 2005 20:38:17 -0500
User-agent: Mutt/1.5.11

On Sat, Dec 10, 2005 at 08:34:42PM -0500, pryzbyj wrote:
> Please see <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=280187>
> where it is documented that grep -o uses increasing amount of memory,
> probably indicating a leak.  You can test with:
> 
>   grep '^c..........' /usr/share/dict/words >/tmp/words
>   ./build-tree/grep-2.5.1/src/grep -of /tmp/words /usr/share/dict/words
> 
> It seems to me that after each output, grep should return to the
> approximate memory usage as at the previous output.  However, the
> memory usage instead increases, consistent with the report.
On second thought, this was nearsighted.  Since grep -f leaks, grep
-of leaks.  grep -o seems to have been fixed since the report was
submitted.

-- 
Clear skies,
Justin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]