public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/47694] New: Fortran read from named pipe fails to read all available data
@ 2011-02-11  7:34 David.Duffy at qimr dot edu.au
  2011-02-11 14:42 ` [Bug fortran/47694] " burnus at gcc dot gnu.org
                   ` (29 more replies)
  0 siblings, 30 replies; 31+ messages in thread
From: David.Duffy at qimr dot edu.au @ 2011-02-11  7:34 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: Fortran read from named pipe fails to read all
                    available data
           Product: gcc
           Version: fortran-dev
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: David.Duffy@qimr.edu.au


I am mucking around with named pipes and read().

program testpipe
  integer :: ios, n
  character (len=1024) :: lin
  open(7, file='tmpfifo')
  n=0
  do
    read(7,'(a)', iostat=ios) lin
    if (ios /= 0) exit
    n=n+1
    write(*,*) n, trim(lin)
  end do
end program testpipe

Using gfortran (4.6.0 20110209), this stops before reading all data in the pipe
unless it is further topped up from the other end ;) As written, no such
problem with sunf95, g95, openf95 (runs until pipe emptied, then waits for
more).  I presume it is a buffering problem somewhere.

Linux tinonee 2.6.32-27-generic #49-Ubuntu SMP Wed Dec 1 23:52:12 UTC 2010 i686
GNU/Linux

Cheers, David Duffy.


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

end of thread, other threads:[~2011-03-07  3:17 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-11  7:34 [Bug fortran/47694] New: Fortran read from named pipe fails to read all available data David.Duffy at qimr dot edu.au
2011-02-11 14:42 ` [Bug fortran/47694] " burnus at gcc dot gnu.org
2011-02-11 20:12 ` jvdelisle at gcc dot gnu.org
2011-02-11 20:40 ` burnus at gcc dot gnu.org
2011-02-11 22:01 ` [Bug fortran/47694] [4.3/4.4/4.5/4.6 Regression] " burnus at gcc dot gnu.org
2011-02-14 14:55 ` burnus at gcc dot gnu.org
2011-02-14 15:33 ` burnus at gcc dot gnu.org
2011-02-14 21:32 ` burnus at gcc dot gnu.org
2011-02-14 22:08 ` burnus at gcc dot gnu.org
2011-02-15  1:24 ` jvdelisle at gcc dot gnu.org
2011-02-15  9:14 ` burnus at gcc dot gnu.org
2011-02-15  9:50 ` jb at gcc dot gnu.org
2011-02-17  1:13 ` jvdelisle at gcc dot gnu.org
2011-02-17 12:14 ` jb at gcc dot gnu.org
2011-02-17 13:16 ` jvdelisle at gcc dot gnu.org
2011-02-19  0:23 ` jvdelisle at gcc dot gnu.org
2011-02-22 19:59 ` jb at gcc dot gnu.org
2011-02-23  7:12 ` jb at gcc dot gnu.org
2011-02-23  7:53 ` jb at gcc dot gnu.org
2011-02-24 13:18 ` burnus at gcc dot gnu.org
2011-02-24 14:24 ` burnus at gcc dot gnu.org
2011-02-24 15:08 ` jb at gcc dot gnu.org
2011-02-24 15:23 ` jb at gcc dot gnu.org
2011-03-04 14:43 ` jvdelisle at gcc dot gnu.org
2011-03-05  0:06 ` jvdelisle at gcc dot gnu.org
2011-03-05  0:21 ` jvdelisle at gcc dot gnu.org
2011-03-05  9:54 ` burnus at gcc dot gnu.org
2011-03-05 15:40 ` jvdelisle at gcc dot gnu.org
2011-03-07  3:09 ` jvdelisle at gcc dot gnu.org
2011-03-07  3:16 ` jvdelisle at gcc dot gnu.org
2011-03-07  3:17 ` jvdelisle at gcc dot gnu.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).