Red Hat Bugzilla – Bug 45631
grep dumps core when using -C option
Last modified: 2007-04-18 12:33:49 EDT
Description of problem:
With grep-2.4.2, using the -C (context) option without specifying number of
lines worked, but with versions 2.5e-3 and 2.5e-4, invoking grep with the
same option dumps core.
Steps to Reproduce:
1.grep -C regexp file (for any regexp and file)
Actual Results: grep crashes.
Expected Results: grep should have printed occurrences of regexp in file,
with output context.
We've gone back to 2.4.2 - 2.5e was just in the tree to be prepared for when
2.5final is released.