public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/25550] New: file data corrupted after reading end of file
@ 2005-12-23 17:29 dir at lanl dot gov
2005-12-27 4:00 ` [Bug libfortran/25550] " jvdelisle at gcc dot gnu dot org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: dir at lanl dot gov @ 2005-12-23 17:29 UTC (permalink / raw)
To: gcc-bugs
After the end of file is read, the file data is corrupted -
[dranta:~/tests/gfortran-D] dir% gfortran -o write17 write17.f
[dranta:~/tests/gfortran-D] dir% write17
538976288
Abort
[dranta:~/tests/gfortran-D] dir% cat write17.f
integer data
data=-1
open(unit=11,status='scratch',form='unformatted')
write(11)data
read(11,end= 1000 )data
1000 continue
rewind 11
read(11,end= 1001 )data
1001 continue
if(data.ne.-1)then
write(6,*)data
call abort
endif
close(11)
end
--
Summary: file data corrupted after reading end of file
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libfortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dir at lanl dot gov
GCC host triplet: powerpc-apple-darwin8.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25550
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug libfortran/25550] file data corrupted after reading end of file
2005-12-23 17:29 [Bug libfortran/25550] New: file data corrupted after reading end of file dir at lanl dot gov
@ 2005-12-27 4:00 ` jvdelisle at gcc dot gnu dot org
2005-12-28 7:20 ` jvdelisle at gcc dot gnu dot org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2005-12-27 4:00 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from jvdelisle at gcc dot gnu dot org 2005-12-27 04:00 -------
I have a fix for this. Will submit shortly.
--
jvdelisle at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jvdelisle at gcc dot gnu dot
|dot org |org
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2005-12-27 04:00:30
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25550
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug libfortran/25550] file data corrupted after reading end of file
2005-12-23 17:29 [Bug libfortran/25550] New: file data corrupted after reading end of file dir at lanl dot gov
2005-12-27 4:00 ` [Bug libfortran/25550] " jvdelisle at gcc dot gnu dot org
@ 2005-12-28 7:20 ` jvdelisle at gcc dot gnu dot org
2005-12-28 7:21 ` jvdelisle at gcc dot gnu dot org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2005-12-28 7:20 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jvdelisle at gcc dot gnu dot org 2005-12-28 07:20 -------
Subject: Bug 25550
Author: jvdelisle
Date: Wed Dec 28 07:20:19 2005
New Revision: 109101
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109101
Log:
2005-12-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/25550
* io/file_pos.c (st_rewind): Reset bytes left so no error occurs in
next_record_r.
Modified:
trunk/libgfortran/ChangeLog
trunk/libgfortran/io/file_pos.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25550
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug libfortran/25550] file data corrupted after reading end of file
2005-12-23 17:29 [Bug libfortran/25550] New: file data corrupted after reading end of file dir at lanl dot gov
2005-12-27 4:00 ` [Bug libfortran/25550] " jvdelisle at gcc dot gnu dot org
2005-12-28 7:20 ` jvdelisle at gcc dot gnu dot org
@ 2005-12-28 7:21 ` jvdelisle at gcc dot gnu dot org
2006-01-01 4:16 ` jvdelisle at gcc dot gnu dot org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2005-12-28 7:21 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jvdelisle at gcc dot gnu dot org 2005-12-28 07:21 -------
Subject: Bug 25550
Author: jvdelisle
Date: Wed Dec 28 07:21:20 2005
New Revision: 109102
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109102
Log:
2005-12-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/25550
* gfortran.dg/endfile.f: New test.
Added:
trunk/gcc/testsuite/gfortran.dg/endfile.f
Modified:
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25550
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug libfortran/25550] file data corrupted after reading end of file
2005-12-23 17:29 [Bug libfortran/25550] New: file data corrupted after reading end of file dir at lanl dot gov
` (2 preceding siblings ...)
2005-12-28 7:21 ` jvdelisle at gcc dot gnu dot org
@ 2006-01-01 4:16 ` jvdelisle at gcc dot gnu dot org
2006-01-01 4:20 ` jvdelisle at gcc dot gnu dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-01-01 4:16 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from jvdelisle at gcc dot gnu dot org 2006-01-01 04:16 -------
Subject: Bug 25550
Author: jvdelisle
Date: Sun Jan 1 04:16:39 2006
New Revision: 109214
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109214
Log:
2005-12-31 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/25550
* io/file_pos.c (st_rewind): Reset bytes left so no error occurs in
next_record_r.
Modified:
branches/gcc-4_1-branch/libgfortran/ChangeLog
branches/gcc-4_1-branch/libgfortran/io/file_pos.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25550
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug libfortran/25550] file data corrupted after reading end of file
2005-12-23 17:29 [Bug libfortran/25550] New: file data corrupted after reading end of file dir at lanl dot gov
` (3 preceding siblings ...)
2006-01-01 4:16 ` jvdelisle at gcc dot gnu dot org
@ 2006-01-01 4:20 ` jvdelisle at gcc dot gnu dot org
2006-01-01 5:19 ` jvdelisle at gcc dot gnu dot org
2006-01-01 5:20 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-01-01 4:20 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from jvdelisle at gcc dot gnu dot org 2006-01-01 04:20 -------
Subject: Bug 25550
Author: jvdelisle
Date: Sun Jan 1 04:20:41 2006
New Revision: 109215
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109215
Log:
2005-12-31 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/25550
* gfortran.dg/endfile.f: New test.
Added:
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/endfile.f
Modified:
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25550
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug libfortran/25550] file data corrupted after reading end of file
2005-12-23 17:29 [Bug libfortran/25550] New: file data corrupted after reading end of file dir at lanl dot gov
` (4 preceding siblings ...)
2006-01-01 4:20 ` jvdelisle at gcc dot gnu dot org
@ 2006-01-01 5:19 ` jvdelisle at gcc dot gnu dot org
2006-01-01 5:20 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-01-01 5:19 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from jvdelisle at gcc dot gnu dot org 2006-01-01 05:19 -------
Fixed on 4.1 and 4.2
--
jvdelisle at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25550
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug libfortran/25550] file data corrupted after reading end of file
2005-12-23 17:29 [Bug libfortran/25550] New: file data corrupted after reading end of file dir at lanl dot gov
` (5 preceding siblings ...)
2006-01-01 5:19 ` jvdelisle at gcc dot gnu dot org
@ 2006-01-01 5:20 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-01 5:20 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25550
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2006-01-01 5:20 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-23 17:29 [Bug libfortran/25550] New: file data corrupted after reading end of file dir at lanl dot gov
2005-12-27 4:00 ` [Bug libfortran/25550] " jvdelisle at gcc dot gnu dot org
2005-12-28 7:20 ` jvdelisle at gcc dot gnu dot org
2005-12-28 7:21 ` jvdelisle at gcc dot gnu dot org
2006-01-01 4:16 ` jvdelisle at gcc dot gnu dot org
2006-01-01 4:20 ` jvdelisle at gcc dot gnu dot org
2006-01-01 5:19 ` jvdelisle at gcc dot gnu dot org
2006-01-01 5:20 ` pinskia at gcc dot gnu dot 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).