public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/26464] New: Runtime I/O error/invald argument on READ
@ 2006-02-25 1:24 jvdelisle at gcc dot gnu dot org
2006-02-25 1:56 ` [Bug libfortran/26464] " jvdelisle at gcc dot gnu dot org
` (10 more replies)
0 siblings, 11 replies; 12+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-02-25 1:24 UTC (permalink / raw)
To: gcc-bugs
With the following test case: Either an invalid argument or abort triggered on
READ depending on datasize. Initial test case from Dale Ranta Comment #15 of
pr26423. Seems to trigger for datasize less then 1022.
program test
integer,parameter :: datasize = 1020
dimension idata(datasize)
idata(1) = -1
idata( datasize) = -2
write(11)idata
idata(1) = -2
idata( datasize) = -3
write(11)idata
idata(1) = -3
idata( datasize) = -4
write(11)idata
idata(1) = -4
idata( datasize) = -5
write(11)idata
read(11,end= 1000 )idata
call abort()
1000 continue
backspace 11
backspace 11
backspace 11
read(11,end= 1001 )idata
if(idata(1).ne. -3.or.idata( datasize).ne. -4)then
write(6,*)idata(1),idata( datasize)
call abort()
endif
stop
1001 continue
print *, "Read Error."
1010 stop
end
--
Summary: Runtime I/O error/invald argument on READ
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libfortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jvdelisle at gcc dot gnu dot org
GCC host triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26464
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug libfortran/26464] Runtime I/O error/invald argument on READ
2006-02-25 1:24 [Bug libfortran/26464] New: Runtime I/O error/invald argument on READ jvdelisle at gcc dot gnu dot org
@ 2006-02-25 1:56 ` jvdelisle at gcc dot gnu dot org
2006-02-25 3:09 ` jvdelisle at gcc dot gnu dot org
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-02-25 1:56 UTC (permalink / raw)
To: gcc-bugs
--
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 |2006-02-25 01:26:30
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26464
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug libfortran/26464] Runtime I/O error/invald argument on READ
2006-02-25 1:24 [Bug libfortran/26464] New: Runtime I/O error/invald argument on READ jvdelisle at gcc dot gnu dot org
2006-02-25 1:56 ` [Bug libfortran/26464] " jvdelisle at gcc dot gnu dot org
@ 2006-02-25 3:09 ` jvdelisle at gcc dot gnu dot org
2006-02-26 22:16 ` jvdelisle at gcc dot gnu dot org
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-02-25 3:09 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from jvdelisle at gcc dot gnu dot org 2006-02-25 03:03 -------
This does not fail with 4.0.2 , so it is a regression after all, but farther
back.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26464
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug libfortran/26464] Runtime I/O error/invald argument on READ
2006-02-25 1:24 [Bug libfortran/26464] New: Runtime I/O error/invald argument on READ jvdelisle at gcc dot gnu dot org
2006-02-25 1:56 ` [Bug libfortran/26464] " jvdelisle at gcc dot gnu dot org
2006-02-25 3:09 ` jvdelisle at gcc dot gnu dot org
@ 2006-02-26 22:16 ` jvdelisle at gcc dot gnu dot org
2006-02-27 2:26 ` patchapp at dberlin dot org
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-02-26 22:16 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jvdelisle at gcc dot gnu dot org 2006-02-26 21:38 -------
It turns out that this bug is related pr26835. The patch I am about to submit
for review removes the flush from st_read_done added to fix pr26835 and
modifies backspace to do the flush as necessary there instead. (which fixes
case in Comment this PR as well)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26464
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug libfortran/26464] Runtime I/O error/invald argument on READ
2006-02-25 1:24 [Bug libfortran/26464] New: Runtime I/O error/invald argument on READ jvdelisle at gcc dot gnu dot org
` (2 preceding siblings ...)
2006-02-26 22:16 ` jvdelisle at gcc dot gnu dot org
@ 2006-02-27 2:26 ` patchapp at dberlin dot org
2006-02-27 15:55 ` dir at lanl dot gov
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: patchapp at dberlin dot org @ 2006-02-27 2:26 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from patchapp at dberlin dot org 2006-02-26 23:55 -------
Subject: Bug number PR26464
A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2006-02/msg01951.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26464
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug libfortran/26464] Runtime I/O error/invald argument on READ
2006-02-25 1:24 [Bug libfortran/26464] New: Runtime I/O error/invald argument on READ jvdelisle at gcc dot gnu dot org
` (3 preceding siblings ...)
2006-02-27 2:26 ` patchapp at dberlin dot org
@ 2006-02-27 15:55 ` dir at lanl dot gov
2006-02-28 2:07 ` jvdelisle at gcc dot gnu dot org
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: dir at lanl dot gov @ 2006-02-27 15:55 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from dir at lanl dot gov 2006-02-27 14:55 -------
It looks like you got it this time. I tried all of the previous tests with good
results and I randomly tested a few hundred different I/O blocks size between 2
and 10000 with out finding any errors.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26464
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug libfortran/26464] Runtime I/O error/invald argument on READ
2006-02-25 1:24 [Bug libfortran/26464] New: Runtime I/O error/invald argument on READ jvdelisle at gcc dot gnu dot org
` (4 preceding siblings ...)
2006-02-27 15:55 ` dir at lanl dot gov
@ 2006-02-28 2:07 ` jvdelisle at gcc dot gnu dot org
2006-02-28 2:13 ` jvdelisle at gcc dot gnu dot org
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-02-28 2:07 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from jvdelisle at gcc dot gnu dot org 2006-02-28 02:07 -------
Subject: Bug 26464
Author: jvdelisle
Date: Tue Feb 28 02:07:00 2006
New Revision: 111506
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=111506
Log:
2006-02-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/26464
* io/file_pos.c (st_backspace): Flush and truncate file
when in AFTER_ENDFILE condition.
* io/transfer.c (st_read_done): Remove flush, no longer needed.
Modified:
trunk/libgfortran/ChangeLog
trunk/libgfortran/io/file_pos.c
trunk/libgfortran/io/transfer.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26464
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug libfortran/26464] Runtime I/O error/invald argument on READ
2006-02-25 1:24 [Bug libfortran/26464] New: Runtime I/O error/invald argument on READ jvdelisle at gcc dot gnu dot org
` (5 preceding siblings ...)
2006-02-28 2:07 ` jvdelisle at gcc dot gnu dot org
@ 2006-02-28 2:13 ` jvdelisle at gcc dot gnu dot org
2006-02-28 3:02 ` jvdelisle at gcc dot gnu dot org
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-02-28 2:13 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from jvdelisle at gcc dot gnu dot org 2006-02-28 02:11 -------
Subject: Bug 26464
Author: jvdelisle
Date: Tue Feb 28 02:11:47 2006
New Revision: 111507
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=111507
Log:
2006-02-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/26464
* gfortran.dg/backspace_5.f: New test.
* gfortran.dg/backspace_6.f: New test.
Added:
trunk/gcc/testsuite/gfortran.dg/backspace_5.f
trunk/gcc/testsuite/gfortran.dg/backspace_6.f
Modified:
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26464
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug libfortran/26464] Runtime I/O error/invald argument on READ
2006-02-25 1:24 [Bug libfortran/26464] New: Runtime I/O error/invald argument on READ jvdelisle at gcc dot gnu dot org
` (6 preceding siblings ...)
2006-02-28 2:13 ` jvdelisle at gcc dot gnu dot org
@ 2006-02-28 3:02 ` jvdelisle at gcc dot gnu dot org
2006-03-03 5:13 ` jvdelisle at gcc dot gnu dot org
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-02-28 3:02 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from jvdelisle at gcc dot gnu dot org 2006-02-28 02:19 -------
Fixed on 4.2, waiting for thaw on 4.1
--
jvdelisle at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.1.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26464
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug libfortran/26464] Runtime I/O error/invald argument on READ
2006-02-25 1:24 [Bug libfortran/26464] New: Runtime I/O error/invald argument on READ jvdelisle at gcc dot gnu dot org
` (7 preceding siblings ...)
2006-02-28 3:02 ` jvdelisle at gcc dot gnu dot org
@ 2006-03-03 5:13 ` jvdelisle at gcc dot gnu dot org
2006-03-03 5:21 ` jvdelisle at gcc dot gnu dot org
2006-03-03 5:44 ` jvdelisle at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-03-03 5:13 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from jvdelisle at gcc dot gnu dot org 2006-03-03 05:13 -------
Subject: Bug 26464
Author: jvdelisle
Date: Fri Mar 3 05:13:06 2006
New Revision: 111669
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=111669
Log:
2006-03-02 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/26464
* io/file_pos.c (st_backspace): Flush and truncate file
when in AFTER_ENDFILE condition.
* io/transfer.c (st_read_done): Remove flush, no longer needed.
Modified:
branches/gcc-4_1-branch/libgfortran/ChangeLog
branches/gcc-4_1-branch/libgfortran/io/file_pos.c
branches/gcc-4_1-branch/libgfortran/io/transfer.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26464
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug libfortran/26464] Runtime I/O error/invald argument on READ
2006-02-25 1:24 [Bug libfortran/26464] New: Runtime I/O error/invald argument on READ jvdelisle at gcc dot gnu dot org
` (8 preceding siblings ...)
2006-03-03 5:13 ` jvdelisle at gcc dot gnu dot org
@ 2006-03-03 5:21 ` jvdelisle at gcc dot gnu dot org
2006-03-03 5:44 ` jvdelisle at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-03-03 5:21 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from jvdelisle at gcc dot gnu dot org 2006-03-03 05:21 -------
Subject: Bug 26464
Author: jvdelisle
Date: Fri Mar 3 05:21:52 2006
New Revision: 111670
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=111670
Log:
2006-03-02 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/26464
* gfortran.dg/backspace_5.f: New test.
* gfortran.dg/backspace_6.f: New test.
Added:
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/backspace_5.f
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/backspace_6.f
Modified:
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26464
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug libfortran/26464] Runtime I/O error/invald argument on READ
2006-02-25 1:24 [Bug libfortran/26464] New: Runtime I/O error/invald argument on READ jvdelisle at gcc dot gnu dot org
` (9 preceding siblings ...)
2006-03-03 5:21 ` jvdelisle at gcc dot gnu dot org
@ 2006-03-03 5:44 ` jvdelisle at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-03-03 5:44 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from jvdelisle at gcc dot gnu dot org 2006-03-03 05:44 -------
Fixed now in 4.1.1
--
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=26464
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2006-03-03 5:44 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-25 1:24 [Bug libfortran/26464] New: Runtime I/O error/invald argument on READ jvdelisle at gcc dot gnu dot org
2006-02-25 1:56 ` [Bug libfortran/26464] " jvdelisle at gcc dot gnu dot org
2006-02-25 3:09 ` jvdelisle at gcc dot gnu dot org
2006-02-26 22:16 ` jvdelisle at gcc dot gnu dot org
2006-02-27 2:26 ` patchapp at dberlin dot org
2006-02-27 15:55 ` dir at lanl dot gov
2006-02-28 2:07 ` jvdelisle at gcc dot gnu dot org
2006-02-28 2:13 ` jvdelisle at gcc dot gnu dot org
2006-02-28 3:02 ` jvdelisle at gcc dot gnu dot org
2006-03-03 5:13 ` jvdelisle at gcc dot gnu dot org
2006-03-03 5:21 ` jvdelisle at gcc dot gnu dot org
2006-03-03 5:44 ` jvdelisle 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).