coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: coreutils-8.15.74-be17e3 on OpenBSD


From: Jim Meyering
Subject: Re: coreutils-8.15.74-be17e3 on OpenBSD
Date: Sat, 17 Mar 2012 17:35:56 +0100

Bruno Haible wrote:
> On OpenBSD 4.9/x86, there are 3 test failures:
>
> FAIL: misc/sort-compress
> FAIL: misc/sort-discrim
> FAIL: dd/sparse
>
> 1 of these was already reported in
> <https://lists.gnu.org/archive/html/coreutils/2012-01/msg00034.html>.
> misc/sort-discrim and dd/sparse are new failures.
>
> On OpenBSD 5.1/SPARC64, there are 6 test failures:
>
> FAIL: misc/date
> FAIL: misc/factor
> FAIL: misc/sort-compress
> FAIL: misc/sort-continue
> FAIL: misc/sort-discrim
> FAIL: dd/sparse
>
> Here's the testsuite output.

Thanks for the details.
These seem feasible to resolve, eventually.

> FAIL: misc/date
> ===============
>
> localtime(72057594037927936) too large at ./misc/date line 54.
> localtime(72057594037927936) failed at ./misc/date line 54.
> date (GNU coreutils) 8.15.74-be17e3
> Copyright (C) 2012 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 David MacKenzie.
> 1...
> 3...
> 3T...
...
> uninit-64...
> date: test uninit-64 failed: exit status mismatch:  expected 1, got 0

OpenBSD's localtime appears not to reject outrageously large inputs:

    $ date -d @72057594037927934
    Sat Mar 17 17:24:39 CET 2012
    $ date -d @72057594037927935
    Sat Mar 17 17:24:48 CET 2012
    $ date -d @$(echo 2^64|bc)
    Sat Mar 17 17:26:51 CET 2012
...

If so, this is a job for gnulib: detect and replace the losing function.

> FAIL: misc/sort-compress
> ========================
...

These sort tests are very strict.
It'd be nice if someone were to investigate this,
but I probably won't ever get to it.

> Written by Mike Haertel and Paul Eggert.
> + seq -w 2000
> + tac exp
> + sort -S 1k in
> + compare exp out
> + compare_dev_null_ exp out
> + test 2 = 2
> + test xexp = x/dev/null
> + test xout = x/dev/null
> + return 2
> + case $? in
> + compare_ exp out
> + diff -u exp out
> + cat
> + chmod +x gzip
> ++
> /home/haible/multibuild-1974/openbsd51sparc64/coreutils-8.15.74-be17e3/src/kill
> -l CHLD
> + sig=20
> + trap '' 20
> +
> PATH=.:/home/haible/multibuild-1974/openbsd51sparc64/coreutils-8.15.74-be17e3/src:/home/haible/multibuild-1974/openbsd51sparc64/coreutils-8.15.74-be17e3/src:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin
> + exec sort -S 1k --compress-program=gzip in
> tr: read error: Resource temporarily unavailable
> + fail=1
> +
> PATH=.:/home/haible/multibuild-1974/openbsd51sparc64/coreutils-8.15.74-be17e3/src:/home/haible/multibuild-1974/openbsd51sparc64/coreutils-8.15.74-be17e3/src:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin
> + sort -S 1k --compress-program=gzip in
> sort: read failed: /tmp/sortYtA3aN: Interrupted system call
> + fail=1
> + compare exp out
> + compare_dev_null_ exp out
> + test 2 = 2
> + test xexp = x/dev/null
> + test xout = x/dev/null
> + return 2
> + case $? in
> + compare_ exp out
> + diff -u exp out
> --- exp       Fri Mar 16 12:13:25 2012
> +++ out       Fri Mar 16 12:13:41 2012
> @@ -1,2000 +0,0 @@
> -0001
> -0002
> -0003
> -0004
...
> + rm -f dzip ok
> + Exit 1
> + set +e
> + exit 1
> + exit 1
> + remove_tmp_
> + __st=1
> + cleanup_
> + :
> + cd 
> /home/haible/multibuild-1974/openbsd51sparc64/coreutils-8.15.74-be17e3/tests
> + chmod -R u+rwx
> /home/haible/multibuild-1974/openbsd51sparc64/coreutils-8.15.74-be17e3/tests/gt-sort-compress.tEVq
> + rm -rf
> /home/haible/multibuild-1974/openbsd51sparc64/coreutils-8.15.74-be17e3/tests/gt-sort-compress.tEVq
> + exit 1
> touch: cannot touch 'ok': No such file or directory
> touch: cannot touch 'ok': No such file or directory
> touch: cannot touch 'ok': No such file or directory
> touch: cannot touch 'ok': No such file or directory
> touch: cannot touch 'ok': No such file or directory
> touch: cannot touch 'ok': No such file or directory
> touch: cannot touch 'ok': No such file or directory
> touch: cannot touch 'ok': No such file or directory
> touch: cannot touch 'ok': No such file or directory
> touch: cannot touch 'ok': No such file or directory
> touch: cannot touch 'ok': No such file or directory
> touch: cannot touch 'ok': No such file or directory
> touch: cannot touch 'ok': No such file or directory
> touch: cannot touch 'ok': No such file or directory
> touch: cannot touch 'ok': No such file or directory
> touch: cannot touch 'ok': No such file or directory
>
> FAIL: misc/sort-continue
> ========================
...
> + sort -n -m __test.1 __test.10 __test.11 __test.12 __test.13
> __test.14 __test.15 __test.16 __test.17 __test.18 __test.19 __test.2
> __test.20 __test.21 __test.22 __test.23 __test.24 __test.25 __test.26
> __test.27 __test.28 __test.29 __test.3 __test.30 __test.31 __test.4
> __test.5 __test.6 __test.7 __test.8 __test.9
> sort: open failed: __test.1: Too many open files
> + fail=1
> + echo 'file descriptor exhaustion not handled'
> file descriptor exhaustion not handled
> + echo 32
> + tee -a in
> + ulimit -n 6
> + sort -n -m __test.1 __test.10 __test.11 __test.12 __test.13
> __test.14 __test.15 __test.16 __test.17 __test.18 __test.19 __test.2
> __test.20 __test.21 __test.22 __test.23 __test.24 __test.25 __test.26
> __test.27 __test.28 __test.29 __test.3 __test.30 __test.31 __test.4
> __test.5 __test.6 __test.7 __test.8 __test.9 -
> sort: open failed: __test.1: Too many open files
> + fail=1
> + echo 'stdin not handled properly'
> stdin not handled properly
> + Exit 1
> + set +e



reply via email to

[Prev in Thread] Current Thread [Next in Thread]