[Bug libfortran/30162] [4.7/4.8 Regression] I/O with named pipes does not work

tkoenig at netcologne dot de gcc-bugzilla@gcc.gnu.org
Sat Dec 22 15:38:00 GMT 2012


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.



More information about the Gcc-bugs mailing list