Subject: bug#17617: bug / regression in grep-2.19

From: Péter Radics <[email-masked]>
Date: Wed, 28 May 2014 10:46:29 +0200

Hello,

  I've found a problem introduced in the 2.19 version of grep:

[mitch@deneb grep-2.19]$ echo "aa" | src/grep -E 'a(b$|c$)' && echo FAIL ||
echo SUCCESS
aa
FAIL

This doesn't fail with 2.18:

[mitch@deneb grep-2.18]$  echo "aa" | src/grep -E 'a(b$|c$)' && echo FAIL
|| echo SUCCESS
SUCCESS

Tested on arch-linux (3.14.4-1-ARCH) and freebsd-9
Built with gcc-4.2, gcc-4.9, clang-3.3 and clang-3.4, so it's probably not
a compiler / system lib issue.

Also tested with and without the configure option
" --without-included-regex "

regards,
mitch

ps: make check passes, so a new test case should probably be included, too