Subject: bug#12225: One test failed on Solaris 10 (was: Re: [platform-testers] new snapshot available: coreutils-8.18.10-46444)

From: Stefano Lattarini <[email-masked]>
Date: Sat, 18 Aug 2012 15:49:05 +0200

$ uname -X
System = SunOS
Release = 5.10
KernelID = Generic_147441-13
Machine = i86pc
BusType = <unknown>
Serial = <unknown>
Users = <unknown>
OEM# = 0
Origin# = 1
NumCPU = 4

$ gcc --version
gcc (GCC) 4.7.1
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ ./configure --version
GNU coreutils configure 8.18.10-46444
generated by GNU Autoconf 2.69.19-1bb10
Copyright (C) 2012 Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.

$ ./configure && make -j16
... [Success]

$ make -j16 check
...
# TOTAL: 491
# PASS:  402
# SKIP:  88
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

$ cat tests/df/no-mtab-status.log
++ initial_cwd_=/home/latta/tmp/coreutils-8.18.10-46444/tests
++ fail=0
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /home/latta/tmp/coreutils-8.18.10-46444/tests gt-no-mtab-status.XXXX
+++ case $# in
+++ destdir_=/home/latta/tmp/coreutils-8.18.10-46444/tests
+++ template_=gt-no-mtab-status.XXXX
+++ MAX_TRIES_=4
+++ case $destdir_ in
+++ case $template_ in
++++ unset TMPDIR
+++ d=/home/latta/tmp/coreutils-8.18.10-46444/tests/gt-no-mtab-status.XrJh
+++ case $d in
+++ test -d /home/latta/tmp/coreutils-8.18.10-46444/tests/gt-no-mtab-status.XrJh
++++ ls -dgo /home/latta/tmp/coreutils-8.18.10-46444/tests/gt-no-mtab-status.XrJh
++++ tr S -
+++ perms='drwx------ 2 2 Aug 18 08:30 /home/latta/tmp/coreutils-8.18.10-46444/tests/gt-no-mtab-status.XrJh'
+++ case $perms in
+++ test 0 = 0
+++ echo /home/latta/tmp/coreutils-8.18.10-46444/tests/gt-no-mtab-status.XrJh
+++ return
++ test_dir_=/home/latta/tmp/coreutils-8.18.10-46444/tests/gt-no-mtab-status.XrJh
++ cd /home/latta/tmp/coreutils-8.18.10-46444/tests/gt-no-mtab-status.XrJh
++ 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/latta/tmp/coreutils-8.18.10-46444/tests/../src
+ case $abs_path_dir_ in
+ PATH=/home/latta/tmp/coreutils-8.18.10-46444/tests/../src:/home/latta/tmp/coreutils-8.18.10-46444/src:/usr/xpg4/bin:/home/latta/bin/utils:/home/latta/bin:/usr/local/bin:/usr/local64/bin:/usr/games:/usr/ccs/bin:/usr/xpg6/bin:/usr/xpg4/bin:/usr/bin:/usr/sbin:/bin:/sbin:/usr/ucb
+ create_exe_shims_ /home/latta/tmp/coreutils-8.18.10-46444/tests/../src
+ case $EXEEXT in
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ print_ver_ df
+ test yes = yes
+ local i
+ for i in '$*'
+ env df --version
df (GNU coreutils) 8.18.10-46444
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 Torbj"orn Granlund, David MacKenzie, and Paul Eggert.
+ df
Filesystem                      1K-blocks      Used  Available Use% Mounted on
rpool/ROOT/S10U8_20120318        92197060  38918956   53278105  43% /
swap                             20369988       432   20369556   1% /etc/svc/volatile
/usr/lib/libc/libc_hwcap2.so.1   92197060  38918956   53278105  43% /lib/libc.so.1
swap                             20378824      9232   20369592   1% /tmp
swap                             20369632        40   20369592   1% /var/run
/dev/dsk/c1t0d0p1                   56068         6      56062   1% /diagpart
Sun_2540                       1014272819        25 1014272794   1% /Sun_2540
Sun_2540/media                 1325177643 310904849 1014272794  24% /Sun_2540/media
Sun_2540/usr                     11100531        18   11100513   1% /Sun_2540/usr
Sun_2540/zfstest               1014272821        27 1014272794   1% /Sun_2540/zfstest
Sun_2540/zfstest/8k            1014272844        50 1014272794   1% /Sun_2540/zfstest/8k
Sun_2540/zfstest/defaults      1014272861        68 1014272794   1% /Sun_2540/zfstest/defaults
Sun_2540/zfstest/lzjb          1014272826        32 1014272794   1% /Sun_2540/zfstest/lzjb
Sun_2540/zfstest/noatime       1014272823        29 1014272794   1% /Sun_2540/zfstest/noatime
Sun_2540/zfstest/nochecksum    1014272825        31 1014272794   1% /Sun_2540/zfstest/nochecksum
Sun_2540/zfstest/sha256        1014272821        27 1014272794   1% /Sun_2540/zfstest/sha256
USB_Pool                        106030420        23  106030397   1% /USB_Pool
USB_Pool/backup                 279737913 173707516  106030397  63% /USB_Pool/backup
USB_Pool/recover                111361750   5331353  106030397   5% /USB_Pool/recover
Sun_2540/home                    48187240        61   48187179   1% /home
[SNIP]
rpool                            53278148        43   53278105   1% /rpool
Sun_2540/scratch                172142260        30  172142230   1% /scratch
[SNIP]
Sun_2540/spot                  1014879552    606758 1014272794   1% /spot
Sun_2540/usr/local               18335276   7234764   11100513  40% /usr/local
Sun_2540/usr/local64             11639587    539074   11100513   5% /usr/local64
blade:/var/mail                  40814040     69663   40744378   1% /var/mail
+ cat
+ gcc -std=gnu99 -shared -fPIC -ldl -O2 k.c -o k.so
+ LD_PRELOAD=./k.so
+ df
./df/no-mtab-status: line 50: 28561 Segmentation Fault      (core dumped) LD_PRELOAD=./k.so df
+ test -f x
+ LD_PRELOAD=./k.so
+ df .
./df/no-mtab-status: line 54: 28848 Segmentation Fault      (core dumped) LD_PRELOAD=./k.so df '.'
+ fail=1
+ LD_PRELOAD=./k.so
+ df -i .
./df/no-mtab-status: line 55: 29102 Segmentation Fault      (core dumped) LD_PRELOAD=./k.so df -i '.'
+ fail=1
+ LD_PRELOAD=./k.so
+ df -T .
./df/no-mtab-status: line 56: 29469 Segmentation Fault      (core dumped) LD_PRELOAD=./k.so df -T '.'
+ fail=1
+ LD_PRELOAD=./k.so
+ df -Ti .
./df/no-mtab-status: line 57: 29754 Segmentation Fault      (core dumped) LD_PRELOAD=./k.so df -Ti '.'
+ fail=1
+ LD_PRELOAD=./k.so
+ df --total .
./df/no-mtab-status: line 58:    28 Segmentation Fault      (core dumped) LD_PRELOAD=./k.so df --total '.'
+ fail=1
+ LD_PRELOAD=./k.so
+ df
./df/no-mtab-status: line 61:   377 Segmentation Fault      (core dumped) LD_PRELOAD=./k.so df
+ LD_PRELOAD=./k.so
+ df -i
./df/no-mtab-status: line 62:   680 Segmentation Fault      (core dumped) LD_PRELOAD=./k.so df -i
+ LD_PRELOAD=./k.so
+ df -T
./df/no-mtab-status: line 63:  1008 Segmentation Fault      (core dumped) LD_PRELOAD=./k.so df -T
+ LD_PRELOAD=./k.so
+ df -Ti
./df/no-mtab-status: line 64:  1322 Segmentation Fault      (core dumped) LD_PRELOAD=./k.so df -Ti
+ LD_PRELOAD=./k.so
+ df --total
./df/no-mtab-status: line 65:  1586 Segmentation Fault      (core dumped) LD_PRELOAD=./k.so df --total
+ LD_PRELOAD=./k.so
+ df -a
./df/no-mtab-status: line 67:  1949 Segmentation Fault      (core dumped) LD_PRELOAD=./k.so df -a
+ LD_PRELOAD=./k.so
+ df -a .
./df/no-mtab-status: line 68:  2219 Segmentation Fault      (core dumped) LD_PRELOAD=./k.so df -a '.'
+ LD_PRELOAD=./k.so
+ df -l
./df/no-mtab-status: line 70:  2539 Segmentation Fault      (core dumped) LD_PRELOAD=./k.so df -l
+ LD_PRELOAD=./k.so
+ df -l .
./df/no-mtab-status: line 71:  2860 Segmentation Fault      (core dumped) LD_PRELOAD=./k.so df -l '.'
+ LD_PRELOAD=./k.so
+ df -t hello
./df/no-mtab-status: line 73:  3173 Segmentation Fault      (core dumped) LD_PRELOAD=./k.so df -t hello
+ LD_PRELOAD=./k.so
+ df -t hello .
./df/no-mtab-status: line 74:  3464 Segmentation Fault      (core dumped) LD_PRELOAD=./k.so df -t hello '.'
+ LD_PRELOAD=./k.so
+ df -x hello
./df/no-mtab-status: line 76:  3783 Segmentation Fault      (core dumped) LD_PRELOAD=./k.so df -x hello
+ LD_PRELOAD=./k.so
+ df -x hello .
./df/no-mtab-status: line 77:  4077 Segmentation Fault      (core dumped) LD_PRELOAD=./k.so df -x hello '.'
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ remove_tmp_
+ __st=1
+ cleanup_
+ :
+ cd /home/latta/tmp/coreutils-8.18.10-46444/tests
+ chmod -R u+rwx /home/latta/tmp/coreutils-8.18.10-46444/tests/gt-no-mtab-status.XrJh
+ rm -rf /home/latta/tmp/coreutils-8.18.10-46444/tests/gt-no-mtab-status.XrJh
+ exit 1

-*-*-*-

The config.log is attached (compressed).  Let me know if you need more information.

Regards,
  Stefano