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

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).