http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30162
--- Comment #41 from tkoenig at netcologne dot de <tkoenig at netcologne dot de> 2012-12-23 15:09:59 UTC --- Am 23.12.2012 15:16, schrieb dominiq at lps dot ens.fr: > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30162 > > --- Comment #40 from Dominique d'Humieres <dominiq at lps dot ens.fr> > 2012-12-23 14:16:52 UTC --- >> Unfortunately, I cannot really debug this without access to a machine >> where it fails. > > Would it be possible to write a simple C test that can be run on the different > platforms in order to check the behavior of lseek? The tests that you ran with the patchlet show that the error is not in setting errno on the lseek. It has to be somewhere else. If you still have the time, could you attach the truss output of program main open (10,file="pipe",status="old") write (10,'(A)') 'Hello, world!' end program main where pipe is a FIFO, and the same for program read character(len=100) c open (10,file="pipe", status="old") read (10,'(A)') c print *,trim(c) end program read (first starting read, then write).