Bug 198167 - grep should not crash on big files
Summary: grep should not crash on big files
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: grep
Version: 4.0
Hardware: All
OS: Linux
Target Milestone: ---
: ---
Assignee: Tim Waugh
QA Contact:
Depends On: 198165
Blocks: 216882
TreeView+ depends on / blocked
Reported: 2006-07-10 12:43 UTC by Russell Coker
Modified: 2018-09-18 14:04 UTC (History)
2 users (show)

Clone Of:
Last Closed: 2007-05-01 22:43:55 UTC

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2007:0281 normal SHIPPED_LIVE grep bug fix update 2007-04-28 18:38:28 UTC

Description Russell Coker 2006-07-10 12:43:28 UTC
Grep buffers entire lines into memory.  When a line is greater than the 
virtual memory capacity of the machine it crashes, in the process it hurts 
performance and gives inaccurate results.

This bug depends on the rawhide bug 198165 (I don't expect a fix to go in to 
RHEL until after it's been tested in rawhide/Fedora).

Comment 1 Peter Staubach 2006-08-18 14:40:34 UTC
I am seeing this bug just doing my normal development work.  It would
be useful for me to get it fixed.

Comment 3 RHEL Product and Program Management 2006-10-16 16:17:08 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update

Comment 5 Russell Coker 2006-11-21 08:15:48 UTC
As documented in #198165 create a large sparse file and grep it.

Comment 11 Red Hat Bugzilla 2007-05-01 22:43:55 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.


Comment 12 Stepan Kasal 2009-01-27 15:57:50 UTC
Note that the fix caused another problem, so it needs to be adapted.
See bug #440258 for details.

Note You need to log in before you can comment on or make changes to this bug.