Subject: bug#34370: grep 3.3 spurious testsuite failure

From: Andreas Schwab <[email-masked]>
Date: Thu, 07 Feb 2019 17:20:36 +0100

https://build.opensuse.org/package/live_build_log/openSUSE:Factory:RISCV/grep/standard/riscv64

FAIL: pcre-jitstack
===================

++ initial_cwd_=/home/abuild/rpmbuild/BUILD/grep-3.3/tests
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /home/abuild/rpmbuild/BUILD/grep-3.3/tests gt-pcre-jitstack.XXXX
+++ case $# in
+++ destdir_=/home/abuild/rpmbuild/BUILD/grep-3.3/tests
+++ template_=gt-pcre-jitstack.XXXX
+++ MAX_TRIES_=4
+++ case $destdir_ in
+++ destdir_slash_=/home/abuild/rpmbuild/BUILD/grep-3.3/tests/
+++ case $template_ in
++++ unset TMPDIR
+++ d=/home/abuild/rpmbuild/BUILD/grep-3.3/tests/gt-pcre-jitstack.j5OX
+++ case $d in
+++ :
+++ test -d /home/abuild/rpmbuild/BUILD/grep-3.3/tests/gt-pcre-jitstack.j5OX
++++ ls -dgo /home/abuild/rpmbuild/BUILD/grep-3.3/tests/gt-pcre-jitstack.j5OX
+++ perms='drwx------ 2 4096 Feb  7 15:53 /home/abuild/rpmbuild/BUILD/grep-3.3/tests/gt-pcre-jitstack.j5OX'
+++ case $perms in
+++ :
+++ echo /home/abuild/rpmbuild/BUILD/grep-3.3/tests/gt-pcre-jitstack.j5OX
+++ return
++ test_dir_=/home/abuild/rpmbuild/BUILD/grep-3.3/tests/gt-pcre-jitstack.j5OX
++ cd /home/abuild/rpmbuild/BUILD/grep-3.3/tests/gt-pcre-jitstack.j5OX
++ gl_init_sh_nl_='
'
++ IFS=' 
'
++ for sig_ in 1 2 3 13 15
+++ expr 1 + 128
++ eval 'trap '\''Exit 129'\'' 1'
+++ trap 'Exit 129' 1
++ for sig_ in 1 2 3 13 15
+++ expr 2 + 128
++ eval 'trap '\''Exit 130'\'' 2'
+++ trap 'Exit 130' 2
++ for sig_ in 1 2 3 13 15
+++ expr 3 + 128
++ eval 'trap '\''Exit 131'\'' 3'
+++ trap 'Exit 131' 3
++ for sig_ in 1 2 3 13 15
+++ expr 13 + 128
++ eval 'trap '\''Exit 141'\'' 13'
+++ trap 'Exit 141' 13
++ for sig_ in 1 2 3 13 15
+++ expr 15 + 128
++ eval 'trap '\''Exit 143'\'' 15'
+++ trap 'Exit 143' 15
++ trap remove_tmp_ 0
+ path_prepend_ ../src
+ test 1 '!=' 0
+ path_dir_=../src
+ case $path_dir_ in
+ abs_path_dir_=/home/abuild/rpmbuild/BUILD/grep-3.3/tests/../src
+ case $abs_path_dir_ in
+ PATH=/home/abuild/rpmbuild/BUILD/grep-3.3/tests/../src:/home/abuild/rpmbuild/BUILD/grep-3.3/src:./src:/usr/local/bin:/usr/bin:/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin
+ create_exe_shims_ /home/abuild/rpmbuild/BUILD/grep-3.3/tests/../src
+ case $EXEEXT in
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ require_pcre_
+ echo .
+ grep -P .
.
+ compare /dev/null err
+ compare_dev_null_ /dev/null err
+ test 2 = 2
+ test x/dev/null = x/dev/null
+ test -s err
+ return 0
+ return 0
+ for p in 'base64 -d' 'base64 -D' 'openssl base64 -d' "perl -MMIME::Base64 -0777ne 'print decode_base64(\$_)'" FAIL
+ test 'base64 -d' = FAIL
++ echo eA==
+ x=x
+ test Xx = Xx
+ eval 'b64_decode() { base64 -d; }'
+ break
+ foo=foo
+ test Xfoo = Xfoo
+ fail=0
+ b64_decode
+ base64 -d
+ gzip -d pcrejit.txt
+ LC_ALL=C
+ 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)

-- 
Andreas Schwab, SUSE Labs, [email-masked]
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."