Hello,
On 11/09/2014 04:00 PM, Jim Meyering wrote:
Testing the first snapshot exposed several problems,
and most have been addressed. The sole remaining problem
is the failure of an "expensive" (not run by default: big-match)
that makes most systems run out of memory. I haven't looked at it yet.
<...>
Please let us know if you find any problems.
Two quick tests:
-1-
On an old ubuntu 10 64-bit machine with PCRE, test "pcre-invalid-utf8-input"
fails.
Log attached.
It is possible due to the test using "en_US.UTF-8" but the available locales
are:
$ locale -a | grep en_US
en_US
en_US.utf8
However, the 'get-mb-cur-max' does seem to accept "UTF-8":
$ ./tests/get-mb-cur-max en_US
1
$ ./tests/get-mb-cur-max en_US.utf8
6
$ ./tests/get-mb-cur-max en_US.UTF-8
6
$ ./tests/get-mb-cur-max en_US.FOO-8
(EMPTY)
It is possible this old machine is mis-configured, and if so - please ignore
this failure.
Using "libpcre3" version "7.8-3build1" (from ubuntu 10 package).
-2-
On the same machine, which has 128 GB ram total, and 106 GB ram free:
$ free -g
total used free shared buffers cached
Mem: 125 38 87 0 6 13
-/+ buffers/cache: 18 106
Swap: 9 3 6
The "big-match" test is still skipped with "not enough main memory to run the
test" - which sounds a bit weird.
Log attached.
During the execution of the tests, the "grep" process consumed up to 4.0GB of ram (in the
"RES" column of "top").
I'll be able to run the other test (on more OSes) a bit later.
Regards,
- Assaf
==================================================
GNU grep 2.20.83-06900: tests/test-suite.log
==================================================
# TOTAL: 1
# PASS: 0
# SKIP: 1
# XFAIL: 0
# FAIL: 0
# XPASS: 0
# ERROR: 0
.. contents:: :depth: 2
SKIP: big-match
===============
+ initial_cwd_=/data/gordon/sources/grep-2.20.83-06900/tests
+ fail=0
+ testdir_prefix_
+ printf gt
+ pfx_=gt
+ mktempd_ /data/gordon/sources/grep-2.20.83-06900/tests gt-big-match.XXXX
+ destdir_=/data/gordon/sources/grep-2.20.83-06900/tests
+ template_=gt-big-match.XXXX
+ MAX_TRIES_=4
+ unset TMPDIR
+ d=/data/gordon/sources/grep-2.20.83-06900/tests/gt-big-match.Pveu
+ test -d /data/gordon/sources/grep-2.20.83-06900/tests/gt-big-match.Pveu
+ ls -dgo /data/gordon/sources/grep-2.20.83-06900/tests/gt-big-match.Pveu
tr S -
+ LC_ALL=C env -- tr S -
+ perms=drwx------ 2 6 Nov 9 16:58 /data/gordon/sources/grep-2.20.83-06900/tests/gt-big-match.Pveu
+ test 0 = 0
+ echo /data/gordon/sources/grep-2.20.83-06900/tests/gt-big-match.Pveu
+ return
+ test_dir_=/data/gordon/sources/grep-2.20.83-06900/tests/gt-big-match.Pveu
+ cd /data/gordon/sources/grep-2.20.83-06900/tests/gt-big-match.Pveu
+ gl_init_sh_nl_=
+ IFS=
+ expr 1 + 128
+ eval trap 'Exit 129' 1
+ trap Exit 129 1
+ expr 2 + 128
+ eval trap 'Exit 130' 2
+ trap Exit 130 2
+ expr 3 + 128
+ eval trap 'Exit 131' 3
+ trap Exit 131 3
+ expr 13 + 128
+ eval trap 'Exit 141' 13
+ trap Exit 141 13
+ 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
+ abs_path_dir_=/data/gordon/sources/grep-2.20.83-06900/tests/../src
+ PATH=/data/gordon/sources/grep-2.20.83-06900/tests/../src:/data/gordon/sources/grep-2.20.83-06900/src:/home/agordon/bin:/data/gordon/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
+ create_exe_shims_ /data/gordon/sources/grep-2.20.83-06900/tests/../src
+ return 0
+ shift
+ test 0 != 0
+ export PATH
+ expensive_
+ test yes != yes
+ echo x
+ dd bs=1024k seek=2048
0+1 records in
0+1 records out
2 bytes (2 B) copied, 0.00201553 s, 1.0 kB/s
+ skip_diagnostic=
+ LC_ALL=C grep -a ^.* 2G-plus-2
+ diagnostic=
+ status=0
+ LC_ALL=C grep -a ^.*x\(\)\1 2G-plus-2
+ diagnostic=grep: memory exhausted
+ status=2
+ skip_diagnostic=not enough main memory to run the test
+ skip_ not enough main memory to run the test
+ warn_ big-match: skipped test: not enough main memory to run the test
+ printf %s\n big-match: skipped test: not enough main memory to run the test
big-match: skipped test: not enough main memory to run the test
+ test 9 = 2
+ printf %s\n big-match: skipped test: not enough main memory to run the test
+ sed 1q
+ Exit 77
+ set +e
+ exit 77
+ exit 77
+ remove_tmp_
+ __st=77
+ cleanup_
+ :
+ cd /data/gordon/sources/grep-2.20.83-06900/tests
+ chmod -R u+rwx /data/gordon/sources/grep-2.20.83-06900/tests/gt-big-match.Pveu
+ rm -rf /data/gordon/sources/grep-2.20.83-06900/tests/gt-big-match.Pveu
+ exit 77
SKIP big-match (exit status: 77)
==================================================
GNU grep 2.20.83-06900: tests/test-suite.log
==================================================
# TOTAL: 1
# PASS: 0
# SKIP: 0
# XFAIL: 0
# FAIL: 1
# XPASS: 0
# ERROR: 0
.. contents:: :depth: 2
FAIL: pcre-invalid-utf8-input
=============================
+ initial_cwd_=/data/gordon/sources/grep-2.20.83-06900/tests
+ fail=0
+ testdir_prefix_
+ printf gt
+ pfx_=gt
+ mktempd_ /data/gordon/sources/grep-2.20.83-06900/tests gt-pcre-invalid-utf8-input.XXXX
+ destdir_=/data/gordon/sources/grep-2.20.83-06900/tests
+ template_=gt-pcre-invalid-utf8-input.XXXX
+ MAX_TRIES_=4
+ unset TMPDIR
+ d=/data/gordon/sources/grep-2.20.83-06900/tests/gt-pcre-invalid-utf8-input.hGUY
+ test -d /data/gordon/sources/grep-2.20.83-06900/tests/gt-pcre-invalid-utf8-input.hGUY
+ ls -dgo /data/gordon/sources/grep-2.20.83-06900/tests/gt-pcre-invalid-utf8-input.hGUYtr S -
+ LC_ALL=C env -- tr S -
+ perms=drwx------ 2 6 Nov 9 16:52 /data/gordon/sources/grep-2.20.83-06900/tests/gt-pcre-invalid-utf8-input.hGUY
+ test 0 = 0
+ echo /data/gordon/sources/grep-2.20.83-06900/tests/gt-pcre-invalid-utf8-input.hGUY
+ return
+ test_dir_=/data/gordon/sources/grep-2.20.83-06900/tests/gt-pcre-invalid-utf8-input.hGUY
+ cd /data/gordon/sources/grep-2.20.83-06900/tests/gt-pcre-invalid-utf8-input.hGUY
+ gl_init_sh_nl_=
+ IFS=
+ expr 1 + 128
+ eval trap 'Exit 129' 1
+ trap Exit 129 1
+ expr 2 + 128
+ eval trap 'Exit 130' 2
+ trap Exit 130 2
+ expr 3 + 128
+ eval trap 'Exit 131' 3
+ trap Exit 131 3
+ expr 13 + 128
+ eval trap 'Exit 141' 13
+ trap Exit 141 13
+ 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
+ abs_path_dir_=/data/gordon/sources/grep-2.20.83-06900/tests/../src
+ PATH=/data/gordon/sources/grep-2.20.83-06900/tests/../src:/data/gordon/sources/grep-2.20.83-06900/src:/home/agordon/bin:/data/gordon/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
+ create_exe_shims_ /data/gordon/sources/grep-2.20.83-06900/tests/../src
+ return 0
+ shift
+ test 0 != 0
+ export PATH
+ require_pcre_
+ echo .
+ grep -P .
.
+ 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
+ require_timeout_
+ timeout 10s false
+ test 1 = 1
+ require_en_utf8_locale_
+ path_prepend_ .
+ test 1 != 0
+ path_dir_=.
+ abs_path_dir_=/data/gordon/sources/grep-2.20.83-06900/tests/.
+ PATH=/data/gordon/sources/grep-2.20.83-06900/tests/.:/data/gordon/sources/grep-2.20.83-06900/tests/../src:/data/gordon/sources/grep-2.20.83-06900/src:/home/agordon/bin:/data/gordon/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
+ create_exe_shims_ /data/gordon/sources/grep-2.20.83-06900/tests/.
+ return 0
+ shift
+ test 0 != 0
+ export PATH
+ get-mb-cur-max en_US.UTF-8
+ require_compiled_in_MB_support
+ require_en_utf8_locale_
+ path_prepend_ .
+ test 1 != 0
+ path_dir_=.
+ abs_path_dir_=/data/gordon/sources/grep-2.20.83-06900/tests/.
+ PATH=/data/gordon/sources/grep-2.20.83-06900/tests/.:/data/gordon/sources/grep-2.20.83-06900/tests/.:/data/gordon/sources/grep-2.20.83-06900/tests/../src:/data/gordon/sources/grep-2.20.83-06900/src:/home/agordon/bin:/data/gordon/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
+ create_exe_shims_ /data/gordon/sources/grep-2.20.83-06900/tests/.
+ return 0
+ shift
+ test 0 != 0
+ export PATH
+ get-mb-cur-max en_US.UTF-8
+ printf é
+ LC_ALL=en_US.UTF-8 grep [[:lower:]]
é
+ fail=0
+ printf j\202j\nj\nk\202\n
+ LC_ALL=en_US.UTF-8 timeout 3 grep -P j in
Binary file in matches
+ test 0 -eq 0
+ LC_ALL=en_US.UTF-8 timeout 3 grep -P k$ in
+ test 124 -eq 1
+ fail=1
+ echo k
+ LC_ALL=en_US.UTF-8 timeout 3 grep -aoP k* in
+ compare exp out
+ compare_dev_null_ exp out
+ test 2 = 2
+ test xexp = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ exp out
+ diff -u exp out
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ remove_tmp_
+ __st=1
+ cleanup_
+ :
+ cd /data/gordon/sources/grep-2.20.83-06900/tests
+ chmod -R u+rwx /data/gordon/sources/grep-2.20.83-06900/tests/gt-pcre-invalid-utf8-input.hGUY
+ rm -rf /data/gordon/sources/grep-2.20.83-06900/tests/gt-pcre-invalid-utf8-input.hGUY
+ exit 1
FAIL pcre-invalid-utf8-input (exit status: 1)