Bug 483073 - grep-mem-exhausted.patch introduces regressions
Summary: grep-mem-exhausted.patch introduces regressions
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: grep
Version: 5.3
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Stepan Kasal
QA Contact: BaseOS QE
URL:
Whiteboard:
: 495521 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-01-29 16:01 UTC by Stepan Kasal
Modified: 2018-09-18 14:04 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 481765
Environment:
Last Closed: 2009-05-14 07:32:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2009:0481 0 normal SHIPPED_LIVE grep bug fix update 2009-05-14 07:32:26 UTC

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. ***


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