Subject: Re: bin/8681: grep may bomb out with "memory exhausted"
To: None <Havard.Eidnes@runit.sintef.no>
From: Simon Burge <simonb@netbsd.org>
List: netbsd-bugs
Date: 10/26/1999 09:23:13
Havard.Eidnes@runit.sintef.no wrote:

> >Number:         8681
> >Category:       bin
> >Synopsis:       grep may bomb out with "memory exhausted"
>
> ...
> 
> >Description:
> 	It appears that grep/egrep/fgrep use mmap() to read files but
> never releases the memory segments with munmap(), causing an ever
> increasing data segment (?) / virtual size, eventually bumping into
> resource limits.
> 
> ...
>
> >Fix:
> Two alternatives:
>  o Turn off HAVE_MMAP in /usr/src/gnu/usr.bin/grep/config.h
>  o Find a better solution (doesn't immediately look obvious)

With both this and bin/8461, seems like a very strong case to turn off
HAVE_MMAP.  Any objections?

Simon.