[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.
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 "?".
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
*** Bug 495521 has been marked as a duplicate of this bug. ***