This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/30162] [4.7/4.8 Regression] I/O with named pipes does not work
- From: "tkoenig at netcologne dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 22 Dec 2012 15:38:08 +0000
- Subject: [Bug libfortran/30162] [4.7/4.8 Regression] I/O with named pipes does not work
- Auto-submitted: auto-generated
- References: <bug-30162-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30162
--- Comment #35 from tkoenig at netcologne dot de <tkoenig at netcologne dot de> 2012-12-22 15:38:08 UTC ---
> I still see
>
> status from open is 0
> status from open is 0
> At line 7 of file pr30162_1.f (unit = 20, file = 'np')
> Fortran runtime error: Illegal seek
>
> [1] Exit 2 a.exe
> At line 8 of file pr30162_2.f (unit = 21, file = 'np')
> Fortran runtime error: I/O past end of record on unformatted file
>
> on x86_64-apple-darwin10 r194681.
This is strange.
Can you strace (or whatever) the code and tell me what lseek()
returns? Is it really EINVAL like the error message suggests?
If so, this would be strange, because
http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man2/lseek.2.html
tells me (as a return value)
[EINVAL] Whence is not a proper value.
[ESPIPE] Fildes is associated with a pipe, socket, or FIFO.
which indicates a bug in the library, but maybe I am looking
at the wrong manpage here.