From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24836 invoked by alias); 11 Feb 2011 14:35:09 -0000 Received: (qmail 24636 invoked by uid 22791); 11 Feb 2011 14:35:08 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_MK X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 11 Feb 2011 14:35:02 +0000 From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/47694] Fortran read from named pipe fails to read all available data X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Fri, 11 Feb 2011 14:42:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-02/txt/msg01409.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47694 Tobias Burnus changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jvdelisle at gcc dot | |gnu.org --- Comment #1 from Tobias Burnus 2011-02-11 14:34:55 UTC --- Seems to work for me on x86-64-linux using gcc version 4.6.0 20110202 (experimental) [trunk revision 169512] $ mkfifo tmpfifo $ gfortran test.f90 $ ./a.out and then in a different terminal window: $ cat > tmpfifo All items I type there appear after I hit "enter" as output of "./a.out". * * * Hmm, seems as if I can reproduce the problem: If I paste (middle click) the following text into the "cat > tmpfifo" "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." (that's 4 lines with line breaks after "pipe", "such", "for") I get: "1 Using gfortran (4.6.0 20110209), this stops before reading all data in the pipe" if I then hit "enter" another time, I get: "2 unless it is further topped up from the other end ;) As written, no such" Expected: Lines 1 to 3 are shown right a way without waiting for two additional line breaks. That's what I also get with ifort.