Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 483073

Summary: grep-mem-exhausted.patch introduces regressions
Product: Red Hat Enterprise Linux 5 Reporter: Stepan Kasal <kasal>
Component: grepAssignee: Stepan Kasal <kasal>
Status: CLOSED ERRATA QA Contact: BaseOS QE <qe-baseos-auto>
Severity: medium Docs Contact:
Priority: low    
Version: 5.3CC: azelinka, ddumas, lkundrak, rvokal, sghosh, slabanja, syeghiay
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 481765 Environment:
Last Closed: 2009-05-14 07:32:37 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Stepan Kasal 2009-01-29 16:01:04 UTC
[Originally reported by Simon Vallet as bug 440258.]

grep-2.5.3-2 may fail on large files:

$ grep '12884102-12884161_12884190-12884243;9,5;28' /env/cns/tmp/test_file
$

$ tail /env/cns/tmp/test_file > /env/cns/tmp/test_file.tail
$ grep '12884102-12884161_12884190-12884243;9,5;28' /env/cns/tmp/test_file.tail 
../lecures_NM_eland_result.seq-15290226 TGGGGGAGGGTTTTTTGTTTTATAAAGATGATC [...]
$

1. wget http:[...]/test_file (warning: 1gb)
2. grep '12884102-12884161_12884190-12884243;9,5;28' /env/cns/tmp/test_file

The "test_file" contains some text at the beginnig and at the end, but most of it is occupied by a huge block of nul bytes.

Actual results:
No output

Expected results:
The last line of this file contains the pattern (see above)

Additional info:
Re-building without patch #9 (grep-mem-exhausted.patch) solves the problem.

We shall either modify the patch so that it errs out as soon as the limit of the buffer size is reached, or (preferably) the patch shall be dropped.

Comment 1 RHEL Program Management 2009-03-26 16:48:05 UTC
This request was evaluated by Red Hat Product Management for
inclusion, but this component is not scheduled to be updated in
the current Red Hat Enterprise Linux release. If you would like
this request to be reviewed for the next minor release, ask your
support representative to set the next rhel-x.y flag to "?".

Comment 8 errata-xmlrpc 2009-05-14 07:32:37 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 therefore 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.

http://rhn.redhat.com/errata/RHBA-2009-0481.html

Comment 9 Stepan Kasal 2009-09-22 12:31:34 UTC
*** Bug 495521 has been marked as a duplicate of this bug. ***