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

Previous Next

Package: coreutils;

Reported by: Stefano Lattarini <stefano.lattarini <at> gmail.com>

Date: Sat, 18 Aug 2012 13:50:02 UTC

Severity: normal

Tags: fixed

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 12225 in the body.
You can then email your comments to 12225 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#12225; Package coreutils. (Sat, 18 Aug 2012 13:50:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stefano Lattarini <stefano.lattarini <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Sat, 18 Aug 2012 13:50:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Stefano Lattarini <stefano.lattarini <at> gmail.com>
To: bug-coreutils <at> gnu.org
Cc: Jim Meyering <jim <at> meyering.net>
Subject: One test failed on Solaris 10 (was: Re: [platform-testers] new
	snapshot available: coreutils-8.18.10-46444)
Date: Sat, 18 Aug 2012 15:49:05 +0200
[Message part 1 (text/plain, inline)]
$ 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
[config.log.xz (application/octet-stream, attachment)]

Information forwarded to bug-coreutils <at> gnu.org:
bug#12225; Package coreutils. (Sat, 18 Aug 2012 13:55:01 GMT) Full text and rfc822 format available.

Message #8 received at 12225 <at> debbugs.gnu.org (full text, mbox):

From: Stefano Lattarini <stefano.lattarini <at> gmail.com>
To: 12225 <at> debbugs.gnu.org
Cc: Jim Meyering <jim <at> meyering.net>
Subject: Re: bug#12225: One test failed on Solaris 10
Date: Sat, 18 Aug 2012 15:54:14 +0200
>
> $ make -j16 check
> ...
FAIL: df/no-mtab-status

And the same failure (and only that) takes place if the Sun C compiler
is used (version "Sun C 5.9 SunOS_i386 Patch 124868-15 2010/08/11").

Regards,
  Stefano




Information forwarded to bug-coreutils <at> gnu.org:
bug#12225; Package coreutils. (Sat, 18 Aug 2012 16:51:02 GMT) Full text and rfc822 format available.

Message #11 received at 12225 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Stefano Lattarini <stefano.lattarini <at> gmail.com>
Cc: 12225 <at> debbugs.gnu.org, Jim Meyering <jim <at> meyering.net>
Subject: Re: bug#12225: One test failed on Solaris 10
Date: Sat, 18 Aug 2012 09:50:36 -0700
I've reproduced that one test failing, and propose the
following patch.  Thanks for reporting it.

From b22895e213eab14a233f2e0d28d655aaf33e0fe9 Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert <at> cs.ucla.edu>
Date: Sat, 18 Aug 2012 09:46:39 -0700
Subject: [PATCH] tests: port df/no-mtab-status to Solaris

* tests/df/no-mtab-status: Include <mntent.h> in test program, so
that the getmntent hack compilation fails on Solaris, as it
should, since it's not compatible with Solaris.  Reported by
Stefano Lattarini in <http://bugs.gnu.org/12225>.
---
 tests/df/no-mtab-status |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/tests/df/no-mtab-status b/tests/df/no-mtab-status
index 6e07854..e434f5f 100755
--- a/tests/df/no-mtab-status
+++ b/tests/df/no-mtab-status
@@ -26,6 +26,7 @@ df || skip_ "df fails"
 cat > k.c <<'EOF' || framework_failure_
 #include <stdio.h>
 #include <errno.h>
+#include <mntent.h>
 
 struct mntent *getmntent (FILE *fp)
 {
@@ -44,7 +45,7 @@ EOF
 
 # Then compile/link it:
 $CC -shared -fPIC -ldl -O2 k.c -o k.so \
-  || framework_failure_ 'failed to compile with -shared -fPIC'
+  || skip_ "getmntent hack does not work on this platform"
 
 # Test if LD_PRELOAD works:
 LD_PRELOAD=./k.so df
-- 
1.7.6.5





Information forwarded to bug-coreutils <at> gnu.org:
bug#12225; Package coreutils. (Sun, 19 Aug 2012 19:52:02 GMT) Full text and rfc822 format available.

Message #14 received at 12225 <at> debbugs.gnu.org (full text, mbox):

From: Jim Meyering <jim <at> meyering.net>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 12225 <at> debbugs.gnu.org, Stefano Lattarini <stefano.lattarini <at> gmail.com>
Subject: Re: bug#12225: One test failed on Solaris 10
Date: Sun, 19 Aug 2012 21:51:10 +0200
Paul Eggert wrote:
> I've reproduced that one test failing, and propose the
> following patch.  Thanks for reporting it.
>
> Subject: [PATCH] tests: port df/no-mtab-status to Solaris
>
> * tests/df/no-mtab-status: Include <mntent.h> in test program, so
> that the getmntent hack compilation fails on Solaris, as it
> should, since it's not compatible with Solaris.  Reported by
> Stefano Lattarini in <http://bugs.gnu.org/12225>.
> ---
>  tests/df/no-mtab-status |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/tests/df/no-mtab-status b/tests/df/no-mtab-status
> index 6e07854..e434f5f 100755
> --- a/tests/df/no-mtab-status
> +++ b/tests/df/no-mtab-status
> @@ -26,6 +26,7 @@ df || skip_ "df fails"
>  cat > k.c <<'EOF' || framework_failure_
>  #include <stdio.h>
>  #include <errno.h>
> +#include <mntent.h>
>
>  struct mntent *getmntent (FILE *fp)
>  {
> @@ -44,7 +45,7 @@ EOF
>
>  # Then compile/link it:
>  $CC -shared -fPIC -ldl -O2 k.c -o k.so \
> -  || framework_failure_ 'failed to compile with -shared -fPIC'
> +  || skip_ "getmntent hack does not work on this platform"

Thanks Stefano and Paul.
That looks good for 8.19.  Please push.




Information forwarded to bug-coreutils <at> gnu.org:
bug#12225; Package coreutils. (Sun, 19 Aug 2012 20:34:02 GMT) Full text and rfc822 format available.

Message #17 received at 12225 <at> debbugs.gnu.org (full text, mbox):

From: Jim Meyering <jim <at> meyering.net>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 12225 <at> debbugs.gnu.org, Stefano Lattarini <stefano.lattarini <at> gmail.com>
Subject: Re: bug#12225: One test failed on Solaris 10
Date: Sun, 19 Aug 2012 22:33:01 +0200
Jim Meyering wrote:
> Paul Eggert wrote:
>> I've reproduced that one test failing, and propose the
>> following patch.  Thanks for reporting it.
>>
>> Subject: [PATCH] tests: port df/no-mtab-status to Solaris
>>
>> * tests/df/no-mtab-status: Include <mntent.h> in test program, so
>> that the getmntent hack compilation fails on Solaris, as it
>> should, since it's not compatible with Solaris.  Reported by
>> Stefano Lattarini in <http://bugs.gnu.org/12225>.
>> ---
>>  tests/df/no-mtab-status |    3 ++-
>>  1 files changed, 2 insertions(+), 1 deletions(-)
>>
>> diff --git a/tests/df/no-mtab-status b/tests/df/no-mtab-status
>> index 6e07854..e434f5f 100755
>> --- a/tests/df/no-mtab-status
>> +++ b/tests/df/no-mtab-status
>> @@ -26,6 +26,7 @@ df || skip_ "df fails"
>>  cat > k.c <<'EOF' || framework_failure_
>>  #include <stdio.h>
>>  #include <errno.h>
>> +#include <mntent.h>
>>
>>  struct mntent *getmntent (FILE *fp)
>>  {
>> @@ -44,7 +45,7 @@ EOF
>>
>>  # Then compile/link it:
>>  $CC -shared -fPIC -ldl -O2 k.c -o k.so \
>> -  || framework_failure_ 'failed to compile with -shared -fPIC'
>> +  || skip_ "getmntent hack does not work on this platform"
>
> Thanks Stefano and Paul.
> That looks good for 8.19.  Please push.

FYI, I've just pushed this.  no problem.




Added tag(s) fixed. Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Mon, 15 Oct 2018 17:35:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 12225 <at> debbugs.gnu.org and Stefano Lattarini <stefano.lattarini <at> gmail.com> Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Mon, 15 Oct 2018 17:35:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 13 Nov 2018 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 165 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.