Re: grep bug

From: Robin Schoonover <end_at_endif.cjb.net>
Date: Mon, 9 Feb 2004 07:44:46 -0700
On Mon, 9 Feb 2004 07:04:18 -0000, Rob MacGregor wrote:
> > -----Original Message-----
> > From: owner-freebsd-current_at_freebsd.org 
> > [mailto:owner-freebsd-current_at_freebsd.org] On Behalf Of Kris Kennaway
> > Sent: 09 February 2004 02:36
> > 
> > kkenn_at_rot13:~ grep -r foo / > /dev/null
> > grep: /dev/network: Permission denied
> > grep: /dev/geom.ctl: Permission denied
> > grep: /dev/devctl: Permission denied
> > grep: /dev/ata: Permission denied
> > grep: /dev/console: Permission denied
> > grep in realloc(): error: allocation failed
> > ^C^C^CAbort (core dumped)
> 
> I can confirm this behaviour under 5.2-CURRENT from the 5th of February:
> 

Ah, yes, but 5.1-RELEASE's grep won't core dump.

end_at_rogue(/home/end) % grep -r foo /
grep: /dev/network: Permission denied
grep: /dev/geom.ctl: Operation not supported by device
grep: /dev/devctl: Permission denied
grep: /dev/ata: Permission denied
grep: memory exhausted
end_at_rogue(/home/end) % 

It simply tries snarfing in the line, notices it has no more memory for
more line, complains, and quits.  Instead of core dumping.

-- 
Robin Schoonover (aka End)
#
# Save the Rainforest! Eat a vegetarian!
#
Received on Mon Feb 09 2004 - 05:44:51 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:42 UTC