NetBSD-Bugs archive

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

Re: bin/8681 (grep may bomb out with "memory exhausted")

Synopsis: grep may bomb out with "memory exhausted"

State-Changed-From-To: closed->open
State-Changed-When: Wed, 27 Apr 2011 21:20:46 +0000
I can:
% dd if=/dev/zero bs=102400 count=1024 of=biggy
1024+0 records in
1024+0 records out
104857600 bytes transferred in 1.101 secs (95238510 bytes/sec)
% echo foo >> biggy
% grep foo biggy
Binary file biggy matches

So far so good. Now:
% limit memoryuse 1024k
% limit vmemoryuse 1024k
% limit stacksize 1024k
% limit datasize 1024k
% grep foo biggy 
Cannot map anonymous memoryCannot allocate memory: Cannot allocate memory
Exit 1

Home | Main Index | Thread Index | Old Index