[Bug 239279] grep . /dev/zero hangs system

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 29 Apr 2024 07:50:34 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239279

Wolfram Schneider <wosch@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |wosch@FreeBSD.org
             Blocks|                            |230332

--- Comment #6 from Wolfram Schneider <wosch@FreeBSD.org> ---
I can confirm that the problem still exists on 15-CURRENT. bsdgrep eats all
memory until killed by the kernel:

$ grep . /dev/zero
Killed


gnugrep and ripgrep don't have this memory problem, they just run in an endless
loop as expected.


Referenced Bugs:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230332
[Bug 230332] TRACKING: bsdgrep as /usr/bin/grep
-- 
You are receiving this mail because:
You are the assignee for the bug.