public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/42900]  New: gfortran.dg/stat_[12].f90 may fail on NFS filesystems
@ 2010-01-29 20:11 ro at gcc dot gnu dot org
  2010-01-29 22:35 ` [Bug fortran/42900] " rguenth at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: ro at gcc dot gnu dot org @ 2010-01-29 20:11 UTC (permalink / raw)
  To: gcc-bugs

I've noticed that all the gfortran.dg/stat_[12].f90 fail for me on all
platforms
(i.e. sparc-sun-solaris2, alpha-dec-osf, mips-sgi-irix).

FAIL: gfortran.dg/stat_1.f90  -O0  execution test

at all optimization levels.  Running it under gdb reveals that it aborts here:

#4  0x000110f0 in MAIN__ ()
    at /vol/gcc/src/hg/trunk/solaris/gcc/testsuite/gfortran.dg/stat_1.f90:19
19        if (s1(6) /= getgid() .and. getgid() /= 0) call abort

Unfortunately, the test is bogus: at least on NFS with either the sgid bit set
on the parent directory or with the filesystem mounted with the grpid option,
newly created files are created with the gid of the directory, not the primary
group of the owner.

I don't know how best to fix this (maybe check if the file's group is in the 
set of supplemental groups, if libgfortran supports getgroups).


-- 
           Summary: gfortran.dg/stat_[12].f90 may fail on NFS filesystems
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ro at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42900


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug fortran/42900] gfortran.dg/stat_[12].f90 may fail on NFS filesystems
  2010-01-29 20:11 [Bug fortran/42900] New: gfortran.dg/stat_[12].f90 may fail on NFS filesystems ro at gcc dot gnu dot org
@ 2010-01-29 22:35 ` rguenth at gcc dot gnu dot org
  2010-02-01  9:21 ` ro at CeBiTec dot Uni-Bielefeld dot DE
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-01-29 22:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rguenth at gcc dot gnu dot org  2010-01-29 22:35 -------
I'd say add a comment to the testcase and WONTFIX.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42900


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug fortran/42900] gfortran.dg/stat_[12].f90 may fail on NFS filesystems
  2010-01-29 20:11 [Bug fortran/42900] New: gfortran.dg/stat_[12].f90 may fail on NFS filesystems ro at gcc dot gnu dot org
  2010-01-29 22:35 ` [Bug fortran/42900] " rguenth at gcc dot gnu dot org
@ 2010-02-01  9:21 ` ro at CeBiTec dot Uni-Bielefeld dot DE
  2010-03-01 12:26 ` ro at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: ro at CeBiTec dot Uni-Bielefeld dot DE @ 2010-02-01  9:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from ro at CeBiTec dot Uni-Bielefeld dot DE  2010-02-01 09:21 -------
Subject: Re:  gfortran.dg/stat_[12].f90 may fail on NFS filesystems

> ------- Comment #1 from rguenth at gcc dot gnu dot org  2010-01-29 22:35 -------
> I'd say add a comment to the testcase and WONTFIX.

I don't think this is a good idea: this part of the testcase tests a
condition that doesn't necessarily hold, and is outside the control of
the testsuite.  I'd rather remove that part of the test than have this
confusing noise in many reports.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42900


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug fortran/42900] gfortran.dg/stat_[12].f90 may fail on NFS filesystems
  2010-01-29 20:11 [Bug fortran/42900] New: gfortran.dg/stat_[12].f90 may fail on NFS filesystems ro at gcc dot gnu dot org
  2010-01-29 22:35 ` [Bug fortran/42900] " rguenth at gcc dot gnu dot org
  2010-02-01  9:21 ` ro at CeBiTec dot Uni-Bielefeld dot DE
@ 2010-03-01 12:26 ` ro at gcc dot gnu dot org
  2010-03-01 18:19 ` ro at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: ro at gcc dot gnu dot org @ 2010-03-01 12:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from ro at gcc dot gnu dot org  2010-03-01 12:25 -------
Subject: Bug 42900

Author: ro
Date: Mon Mar  1 12:25:34 2010
New Revision: 157135

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=157135
Log:
        PR fortran/42900
        * gfortran.dg/stat_1.f90: Accept 'testfile' gid == parent dir gid.
        Explain this.
        * gfortran.dg/stat_2.f90: Likewise.

Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gfortran.dg/stat_1.f90
    trunk/gcc/testsuite/gfortran.dg/stat_2.f90


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42900


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug fortran/42900] gfortran.dg/stat_[12].f90 may fail on NFS filesystems
  2010-01-29 20:11 [Bug fortran/42900] New: gfortran.dg/stat_[12].f90 may fail on NFS filesystems ro at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2010-03-01 18:19 ` ro at gcc dot gnu dot org
@ 2010-03-01 18:19 ` ro at gcc dot gnu dot org
  2010-06-02 16:35 ` ro at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: ro at gcc dot gnu dot org @ 2010-03-01 18:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from ro at gcc dot gnu dot org  2010-03-01 18:19 -------
Fixed for 4.5.0:

http://gcc.gnu.org/ml/gcc-patches/2010-02/msg00992.html


-- 

ro at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42900


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug fortran/42900] gfortran.dg/stat_[12].f90 may fail on NFS filesystems
  2010-01-29 20:11 [Bug fortran/42900] New: gfortran.dg/stat_[12].f90 may fail on NFS filesystems ro at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2010-03-01 12:26 ` ro at gcc dot gnu dot org
@ 2010-03-01 18:19 ` ro at gcc dot gnu dot org
  2010-03-01 18:19 ` ro at gcc dot gnu dot org
  2010-06-02 16:35 ` ro at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: ro at gcc dot gnu dot org @ 2010-03-01 18:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from ro at gcc dot gnu dot org  2010-03-01 18:19 -------
Mine.


-- 

ro at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |ro at gcc dot gnu dot org
                   |dot org                     |
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2010-03-01 18:19:00
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42900


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug fortran/42900] gfortran.dg/stat_[12].f90 may fail on NFS filesystems
  2010-01-29 20:11 [Bug fortran/42900] New: gfortran.dg/stat_[12].f90 may fail on NFS filesystems ro at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2010-03-01 18:19 ` ro at gcc dot gnu dot org
@ 2010-06-02 16:35 ` ro at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: ro at gcc dot gnu dot org @ 2010-06-02 16:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from ro at gcc dot gnu dot org  2010-06-02 16:35 -------
Subject: Bug 42900

Author: ro
Date: Wed Jun  2 16:35:15 2010
New Revision: 160161

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=160161
Log:
        Backport from mainline:
        2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

        PR fortran/42900
        * gfortran.dg/stat_1.f90: Accept 'testfile' gid == parent dir gid.
        Explain this.
        * gfortran.dg/stat_2.f90: Likewise.

Modified:
    branches/gcc-4_4-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_4-branch/gcc/testsuite/gfortran.dg/stat_1.f90
    branches/gcc-4_4-branch/gcc/testsuite/gfortran.dg/stat_2.f90


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42900


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-06-02 16:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-29 20:11 [Bug fortran/42900] New: gfortran.dg/stat_[12].f90 may fail on NFS filesystems ro at gcc dot gnu dot org
2010-01-29 22:35 ` [Bug fortran/42900] " rguenth at gcc dot gnu dot org
2010-02-01  9:21 ` ro at CeBiTec dot Uni-Bielefeld dot DE
2010-03-01 12:26 ` ro at gcc dot gnu dot org
2010-03-01 18:19 ` ro at gcc dot gnu dot org
2010-03-01 18:19 ` ro at gcc dot gnu dot org
2010-06-02 16:35 ` ro at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).