Greetings,
N.B. This bug report is for reference only, and documents only a
partially reproducible check failure. No Action Requested.
On Solaris 10 (Update 8 and Update 11) and Solaris 11.2 X86 VMs, and
one Solaris 10 Update 10 (Non-VM) system, I see random "gmake check"
failures for "tests/misc/timeout-parameters.sh".
Running the test by itself (with the command line below) on the same
VMs / real system will sometimes succeed and sometimes fail.
gmake check TESTS=tests/misc/timeout-parameters.sh VERBOSE=yes SUBDIRS=.
Looking through the attached "failure.log" file, I extracted the
following command line test, which may exhibit the failure without all
the make(1) and test infrastructure code:
failures=0
for i in `./src/seq 1 100`
do
./src/timeout 2.34e+5d sleep 0 \
|| { echo fail; failures=`expr ${failures} + 1` }
done
echo "Total Failures: ${failures}"
On a real hardware system (Xeon E3-1245v2) with a 64-bit kernel,
failures are very rare (only 1 test harness failure seen, no failures
of the sample code above even with 1..1000 runs).
On virtual machines (also using Xeon E3-1245v2 running VMware ESXi
5.5d (latest patches) - two identical ESXi systems running similarly
configured VMs), test harness failures and failures in the above
command line check are rare for the 64-bit Solaris kernels.
Failures on Solaris 10 32-bit kernels (on both of these ESXi servers),
are easily reproduced and vary between 5% (common) and 45% (rare).
Regards,
Peter Bray
Sydney, Australia
PS: Again, no action is requested, this is intended as a file for
later reference bug report.
GEN public-submodule-commit
gmake check-recursive
gmake[1]: Entering directory `/tmp/32-bit/coreutils-8.24'
Making check in .
gmake[2]: Entering directory `/tmp/32-bit/coreutils-8.24'
gmake check-TESTS check-local
gmake[3]: Entering directory `/tmp/32-bit/coreutils-8.24'
gmake[4]: Entering directory `/tmp/32-bit/coreutils-8.24'
FAIL: tests/misc/timeout-parameters.sh
================================================
GNU coreutils 8.24: ./tests/test-suite.log
================================================
# TOTAL: 1
# PASS: 0
# SKIP: 0
# XFAIL: 0
# FAIL: 1
# XPASS: 0
# ERROR: 0
.. contents:: :depth: 2
FAIL: tests/misc/timeout-parameters
===================================
++ initial_cwd_=/tmp/32-bit/coreutils-8.24
++ fail=0
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /tmp/32-bit/coreutils-8.24 gt-timeout-parameters.sh.XXXX
+++ case $# in
+++ destdir_=/tmp/32-bit/coreutils-8.24
+++ template_=gt-timeout-parameters.sh.XXXX
+++ MAX_TRIES_=4
+++ case $destdir_ in
+++ case $template_ in
++++ unset TMPDIR
+++ d=/tmp/32-bit/coreutils-8.24/gt-timeout-parameters.sh.jnKt
+++ case $d in
+++ test -d /tmp/32-bit/coreutils-8.24/gt-timeout-parameters.sh.jnKt
++++ ls -dgo /tmp/32-bit/coreutils-8.24/gt-timeout-parameters.sh.jnKt
++++ tr S -
+++ perms='drwx------ 2 69 Jul 15 08:23
/tmp/32-bit/coreutils-8.24/gt-timeout-parameters.sh.jnKt'
+++ case $perms in
+++ test 0 = 0
+++ echo /tmp/32-bit/coreutils-8.24/gt-timeout-parameters.sh.jnKt
+++ return
++ test_dir_=/tmp/32-bit/coreutils-8.24/gt-timeout-parameters.sh.jnKt
++ cd /tmp/32-bit/coreutils-8.24/gt-timeout-parameters.sh.jnKt
++ 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_=/tmp/32-bit/coreutils-8.24/./src
+ case $abs_path_dir_ in
+
PATH=/tmp/32-bit/coreutils-8.24/./src:/tmp/32-bit/coreutils-8.24/src:/usr/xpg4/bin:/pkgs/32-bit/bin:/pkgs/32-bit/sbin:/pkgs/bin:/usr/bin:/usr/ccs/bin:/usr/proc/bin:/usr/sbin:/sbin
+ create_exe_shims_ /tmp/32-bit/coreutils-8.24/./src
+ case $EXEEXT in
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ print_ver_ timeout
+ test yes = yes
+ local i
+ for i in '$*'
+ env timeout --version
timeout (GNU coreutils) 8.24
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by P'adraig Brady.
+ getlimits_
++ getlimits
+ eval CHAR_MAX=127 CHAR_OFLOW=128 CHAR_MIN=-128 CHAR_UFLOW=-129 SCHAR_MAX=127
SCHAR_OFLOW=128 SCHAR_MIN=-128 SCHAR_UFLOW=-129 UCHAR_MAX=255 UCHAR_OFLOW=256
SHRT_MAX=32767 SHRT_OFLOW=32768 SHRT_MIN=-32768 SHRT_UFLOW=-32769
INT_MAX=2147483647 INT_OFLOW=2147483648 INT_MIN=-2147483648
INT_UFLOW=-2147483649 UINT_MAX=4294967295 UINT_OFLOW=4294967296
LONG_MAX=2147483647 LONG_OFLOW=2147483648 LONG_MIN=-2147483648
LONG_UFLOW=-2147483649 ULONG_MAX=4294967295 ULONG_OFLOW=4294967296
SIZE_MAX=4294967295 SIZE_OFLOW=4294967296 SSIZE_MAX=2147483647
SSIZE_OFLOW=2147483648 SSIZE_MIN=-2147483648 SSIZE_UFLOW=-2147483649
TIME_T_MAX=2147483647 TIME_T_OFLOW=2147483648 TIME_T_MIN=-2147483648
TIME_T_UFLOW=-2147483649 UID_T_MAX=2147483647 UID_T_OFLOW=2147483648
GID_T_MAX=2147483647 GID_T_OFLOW=2147483648 PID_T_MAX=2147483647
PID_T_OFLOW=2147483648 PID_T_MIN=-2147483648 PID_T_UFLOW=-2147483649
OFF_T_MAX=9223372036854775807 OFF_T_OFLOW=9223372036854775808
OFF_T_MIN=-9223372036854775808 OFF_T_UFLOW=-9223372036854775809
INTMAX_MAX=9223372036854775807 INTMAX_OFLOW=9223372036854775808
INTMAX_MIN=-9223372036854775808 INTMAX_UFLOW=-9223372036854775809
UINTMAX_MAX=18446744073709551615 UINTMAX_OFLOW=18446744073709551616
FLT_MIN=1.1754944e-38 FLT_MAX=3.4028235e+38 DBL_MIN=2.2250738585072014e-308
DBL_MAX=1.7976931348623157e+308 LDBL_MIN=3.3621031431120935063e-4932
LDBL_MAX=1.189731495357231765e+4932
++ CHAR_MAX=127
++ CHAR_OFLOW=128
++ CHAR_MIN=-128
++ CHAR_UFLOW=-129
++ SCHAR_MAX=127
++ SCHAR_OFLOW=128
++ SCHAR_MIN=-128
++ SCHAR_UFLOW=-129
++ UCHAR_MAX=255
++ UCHAR_OFLOW=256
++ SHRT_MAX=32767
++ SHRT_OFLOW=32768
++ SHRT_MIN=-32768
++ SHRT_UFLOW=-32769
++ INT_MAX=2147483647
++ INT_OFLOW=2147483648
++ INT_MIN=-2147483648
++ INT_UFLOW=-2147483649
++ UINT_MAX=4294967295
++ UINT_OFLOW=4294967296
++ LONG_MAX=2147483647
++ LONG_OFLOW=2147483648
++ LONG_MIN=-2147483648
++ LONG_UFLOW=-2147483649
++ ULONG_MAX=4294967295
++ ULONG_OFLOW=4294967296
++ SIZE_MAX=4294967295
++ SIZE_OFLOW=4294967296
++ SSIZE_MAX=2147483647
++ SSIZE_OFLOW=2147483648
++ SSIZE_MIN=-2147483648
++ SSIZE_UFLOW=-2147483649
++ TIME_T_MAX=2147483647
++ TIME_T_OFLOW=2147483648
++ TIME_T_MIN=-2147483648
++ TIME_T_UFLOW=-2147483649
++ UID_T_MAX=2147483647
++ UID_T_OFLOW=2147483648
++ GID_T_MAX=2147483647
++ GID_T_OFLOW=2147483648
++ PID_T_MAX=2147483647
++ PID_T_OFLOW=2147483648
++ PID_T_MIN=-2147483648
++ PID_T_UFLOW=-2147483649
++ OFF_T_MAX=9223372036854775807
++ OFF_T_OFLOW=9223372036854775808
++ OFF_T_MIN=-9223372036854775808
++ OFF_T_UFLOW=-9223372036854775809
++ INTMAX_MAX=9223372036854775807
++ INTMAX_OFLOW=9223372036854775808
++ INTMAX_MIN=-9223372036854775808
++ INTMAX_UFLOW=-9223372036854775809
++ UINTMAX_MAX=18446744073709551615
++ UINTMAX_OFLOW=18446744073709551616
++ FLT_MIN=1.1754944e-38
++ FLT_MAX=3.4028235e+38
++ DBL_MIN=2.2250738585072014e-308
++ DBL_MAX=1.7976931348623157e+308
++ LDBL_MIN=3.3621031431120935063e-4932
++ LDBL_MAX=1.189731495357231765e+4932
+ test 2147483647
+ timeout invalid sleep 0
timeout: invalid time interval 'invalid'
Try 'timeout --help' for more information.
+ test 125 = 125
+ timeout --kill-after=invalid 1 sleep 0
timeout: invalid time interval 'invalid'
Try 'timeout --help' for more information.
+ test 125 = 125
+ timeout 42D sleep 0
timeout: invalid time interval '42D'
Try 'timeout --help' for more information.
+ test 125 = 125
+++ date +%s
++ expr 2147483647 - 1436948584 + 100
+ KERNEL_OVERFLOW_LIMIT=710535163
+ timeout 710535163 sleep 0
+ test 0 '!=' 124
+ timeout 4294967296 sleep 0
+ test 0 = 0
++ expr 4294967295 / 86400 + 1
+ timeout 49711d sleep 0
+ test 0 = 0
+ timeout 999999999999999999999999999999999999999999999999999999999999d sleep 0
+ test 0 = 0
+ timeout 2.34e+5d sleep 0
+ test 124 = 0
+ fail=1
+ timeout 2.34 sleep 0
+ test 0 = 0
+ timeout .999999999 sleep 0
+ timeout --signal=invalid 1 sleep 0
timeout: invalid: invalid signal
Try 'timeout --help' for more information.
+ test 125 = 125
+ timeout 10 .
timeout: failed to run command '.': Permission denied
+ test 126 = 126
+ timeout 10 no_such
timeout: failed to run command 'no_such': No such file or directory
+ test 127 = 127
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ remove_tmp_
+ __st=1
+ cleanup_
+ :
+ cd /tmp/32-bit/coreutils-8.24
+ chmod -R u+rwx /tmp/32-bit/coreutils-8.24/gt-timeout-parameters.sh.jnKt
+ rm -rf /tmp/32-bit/coreutils-8.24/gt-timeout-parameters.sh.jnKt
+ exit 1
FAIL tests/misc/timeout-parameters.sh (exit status: 1)
============================================================================
Testsuite summary for GNU coreutils 8.24
============================================================================
# TOTAL: 1
# PASS: 0
# SKIP: 0
# XFAIL: 0
# FAIL: 1
# XPASS: 0
# ERROR: 0
============================================================================
See ./tests/test-suite.log
Please report to [email protected]
============================================================================
gmake[4]: Leaving directory `/tmp/32-bit/coreutils-8.24'
GEN check-README
GEN check-duplicate-no-install
GEN sc-avoid-builtin
GEN sc-avoid-io
GEN sc-avoid-non-zero
GEN sc-avoid-path
GEN sc-avoid-timezone
GEN sc-avoid-zeroes
GEN sc-exponent-grouping
GEN sc-lower-case-var
GEN check-texinfo
gmake[3]: Leaving directory `/tmp/32-bit/coreutils-8.24'
gmake[2]: Leaving directory `/tmp/32-bit/coreutils-8.24'
gmake[1]: Leaving directory `/tmp/32-bit/coreutils-8.24'