[geeks] Problems with grep on leopard
Robert Brooke Gravitt
gravitt at gmail.com
Sat Nov 17 17:40:36 CST 2007
On Nov 17, 2007, at 6:27 PM, Sevan / Venture37 wrote:
> I keep on getting the following error message when running grep on my
> Application Support directory in my home directory
>
> grep(236) malloc: *** mmap(size=1195270144) failed (error code=12)
> *** error: can't allocate region
> *** set a breakpoint in malloc_error_break to debug
> grep: memory exhausted
>
> The system is a 8 core Mac Pro with 9GB of ram. I've tried a fresh
> install on
> another disk & still get the same thing, Apple Hardware Test says
> everything
> is fine aswell.
> Any ideas???
try using xargs with grep?
I've had ls crap out on AIX with a sufficiently large number of files
in a directory, usually get around it with a find+exec or xargs.
More information about the geeks
mailing list