Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
DescriptionAlexey Dobriyan
2015-12-01 12:51:59 UTC
Description of problem:
Upgrade to grep 2.20 in 6.7 brought the bug with match-at-the-start and match-at-the-end used in alteration. Responsible commit (shipped with grep 2.19) is
commit 2c94326bd94a1ff46fe54cbd0596dd5d669d1b38
Author: Norihiro Tanaka <noritnk.jp>
Date: Mon Mar 31 21:51:48 2014 +0900
grep: speed-up for exact matching with begline and endline constraints.
The bug was accidentally fixed at 2.22 by
commit 256a4b494fe1c48083ba73b4f62607234e4fefd5
Author: Norihiro Tanaka <noritnk.jp>
Date: Mon Nov 17 08:26:53 2014 +0900
dfa: speed up handling of long pattern
Please backport 256a4b494fe1c48083ba73b4f62607234e4fefd5 to RHEL6 or something.
Version-Release number of selected component (if applicable):
every 2.19, 2.20, 2.21 based version,
grep-2.20-3.el6_7.1.src.rpm
grep-2.20-1.el7.src.rpm
How reproducible:
100%
Steps to reproduce:
$ echo -n 'abba' | /bin/grep -E '^b|b$'
abba
Actual results:
bogus output
if match highlighting is on, nothing in output is highlighted
Expected results:
no output
Comment 2Jaroslav Škarvada
2015-12-01 13:14:53 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://rhn.redhat.com/errata/RHBA-2017-0756.html
Description of problem: Upgrade to grep 2.20 in 6.7 brought the bug with match-at-the-start and match-at-the-end used in alteration. Responsible commit (shipped with grep 2.19) is commit 2c94326bd94a1ff46fe54cbd0596dd5d669d1b38 Author: Norihiro Tanaka <noritnk.jp> Date: Mon Mar 31 21:51:48 2014 +0900 grep: speed-up for exact matching with begline and endline constraints. The bug was accidentally fixed at 2.22 by commit 256a4b494fe1c48083ba73b4f62607234e4fefd5 Author: Norihiro Tanaka <noritnk.jp> Date: Mon Nov 17 08:26:53 2014 +0900 dfa: speed up handling of long pattern Please backport 256a4b494fe1c48083ba73b4f62607234e4fefd5 to RHEL6 or something. Version-Release number of selected component (if applicable): every 2.19, 2.20, 2.21 based version, grep-2.20-3.el6_7.1.src.rpm grep-2.20-1.el7.src.rpm How reproducible: 100% Steps to reproduce: $ echo -n 'abba' | /bin/grep -E '^b|b$' abba Actual results: bogus output if match highlighting is on, nothing in output is highlighted Expected results: no output