Subject: Re: bug#34370: grep 3.3 spurious testsuite failure

From: Jim Meyering <[email-masked]>
Date: Sun, 17 Feb 2019 17:51:13 -0800

On Thu, Feb 7, 2019 at 8:23 AM Andreas Schwab <[email-masked]> wrote:
> https://build.opensuse.org/package/live_build_log/openSUSE:Factory:RISCV/grep/standard/riscv64
...
> + grep -P -n '^([/](?!/)|[^/])*~/.*' pcrejit.txt
> grep: stack overflow
> + test 2 '!=' 1
> + ulimit -s unlimited
> + ulimit -s unlimited
> + returns_ 1 env LC_ALL=C grep -P -n '^([/](?!/)|[^/])*~/.*' pcrejit.txt
> grep: stack overflow
> + fail=1
> + Exit 1
> + set +e
> + exit 1
> + exit 1
> + remove_tmp_
> + __st=1
> + cleanup_
> + :
> + test '' = yes
> + cd /home/abuild/rpmbuild/BUILD/grep-3.3/tests
> + chmod -R u+rwx /home/abuild/rpmbuild/BUILD/grep-3.3/tests/gt-pcre-jitstack.j5OX
> + rm -rf /home/abuild/rpmbuild/BUILD/grep-3.3/tests/gt-pcre-jitstack.j5OX
> + exit 1
> FAIL pcre-jitstack (exit status: 1)

Hi Andreas,
Thanks for reporting that.
I am unable to reproduce that on a few systems, but suspect the
attached patch will fix it. Can you confirm?