public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/23154] New: Bad floating point in formatted read
@ 2005-07-31 2:24 jvdelisle at gcc dot gnu dot org
2005-07-31 6:07 ` [Bug libfortran/23154] " jvdelisle at gcc dot gnu dot org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2005-07-31 2:24 UTC (permalink / raw)
To: gcc-bugs
The following test case results in a floating point read error.
DOUBLE PRECISION XIN, YIN, ZIN, WIN, QIN
CHARACTER*4 SID, RID, RID2, REN, IUP
CHARACTER*5 A
CHARACTER*132 COMLYN
COMLYN = " abcd efgh jklmn 1.2345.678 21.765 2.34
& 3.45xxxxxxWXYZ"
PRINT *, COMLYN
READ(COMLYN,'(12X,A4,1X,A4,1X,A5,3X,3F8.3,F6.2,F6.2,6X,A4)'
& ) IUP,REN,A,XIN,YIN,ZIN,QIN,WIN,SID
STOP
end
Possibly related to NIST formatted I/O and pr22570
--
Summary: Bad floating point in formatted read
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libfortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jvdelisle at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23154
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug libfortran/23154] Bad floating point in formatted read
2005-07-31 2:24 [Bug libfortran/23154] New: Bad floating point in formatted read jvdelisle at gcc dot gnu dot org
@ 2005-07-31 6:07 ` jvdelisle at gcc dot gnu dot org
2005-07-31 6:47 ` 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-07-31 6:07 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From jvdelisle at gcc dot gnu dot org 2005-07-31 05:52 -------
I have instrumented a few places in transfer.c. In particular looking at the
string at 'q' in sf_read. The original string is corrupted before getting to
the first read.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23154
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug libfortran/23154] Bad floating point in formatted read
2005-07-31 2:24 [Bug libfortran/23154] New: Bad floating point in formatted read jvdelisle at gcc dot gnu dot org
2005-07-31 6:07 ` [Bug libfortran/23154] " jvdelisle at gcc dot gnu dot org
@ 2005-07-31 6:47 ` jvdelisle at gcc dot gnu dot org
2005-07-31 7:04 ` 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-07-31 6:47 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From jvdelisle at gcc dot gnu dot org 2005-07-31 06:15 -------
Created an attachment (id=9389)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9389&action=view)
Revised test case to honor 72 column magic
The revised test case here, remembering not to exceed 72 columns with the
important text no longer shows the problem. So this testcase does not reflect
the situation in the original problem.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23154
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug libfortran/23154] Bad floating point in formatted read
2005-07-31 2:24 [Bug libfortran/23154] New: Bad floating point in formatted read jvdelisle at gcc dot gnu dot org
2005-07-31 6:07 ` [Bug libfortran/23154] " jvdelisle at gcc dot gnu dot org
2005-07-31 6:47 ` jvdelisle at gcc dot gnu dot org
@ 2005-07-31 7:04 ` jvdelisle at gcc dot gnu dot org
2005-07-31 7:24 ` [Bug libfortran/23154] Currupt string and segfault " 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-07-31 7:04 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From jvdelisle at gcc dot gnu dot org 2005-07-31 06:47 -------
Reference information on this thread:
http://gcc.gnu.org/ml/fortran/2005-07/msg00495.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23154
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug libfortran/23154] Currupt string and segfault in formatted read.
2005-07-31 2:24 [Bug libfortran/23154] New: Bad floating point in formatted read jvdelisle at gcc dot gnu dot org
` (2 preceding siblings ...)
2005-07-31 7:04 ` jvdelisle at gcc dot gnu dot org
@ 2005-07-31 7:24 ` jvdelisle at gcc dot gnu dot org
2005-08-09 1:56 ` cvs-commit 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 @ 2005-07-31 7:24 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|Bad floating point in |Currupt string and segfault
|formatted read |in formatted read.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23154
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug libfortran/23154] Currupt string and segfault in formatted read.
2005-07-31 2:24 [Bug libfortran/23154] New: Bad floating point in formatted read jvdelisle at gcc dot gnu dot org
` (3 preceding siblings ...)
2005-07-31 7:24 ` [Bug libfortran/23154] Currupt string and segfault " jvdelisle at gcc dot gnu dot org
@ 2005-08-09 1:56 ` cvs-commit at gcc dot gnu dot org
2005-08-09 2:58 ` cvs-commit at gcc dot gnu dot org
2005-08-09 4:35 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-08-09 1:56 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-08-09 01:56 -------
Subject: Bug 23154
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: jvdelisle@gcc.gnu.org 2005-08-09 01:56:04
Modified files:
libgfortran : ChangeLog
libgfortran/io : transfer.c
Log message:
2005-08-08 Jerry DeLisle <jvdelisle@verizon.net>
PR libfortran/23154
* io/transfer.c (data_transfer_init): Initialize
current_unit->bytes_left for a read.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/ChangeLog.diff?cvsroot=gcc&r1=1.280&r2=1.281
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/io/transfer.c.diff?cvsroot=gcc&r1=1.51&r2=1.52
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23154
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug libfortran/23154] Currupt string and segfault in formatted read.
2005-07-31 2:24 [Bug libfortran/23154] New: Bad floating point in formatted read jvdelisle at gcc dot gnu dot org
` (4 preceding siblings ...)
2005-08-09 1:56 ` cvs-commit at gcc dot gnu dot org
@ 2005-08-09 2:58 ` cvs-commit at gcc dot gnu dot org
2005-08-09 4:35 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-08-09 2:58 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-08-09 02:58 -------
Subject: Bug 23154
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-4_0-branch
Changes by: jvdelisle@gcc.gnu.org 2005-08-09 02:57:59
Modified files:
libgfortran : ChangeLog
libgfortran/io : transfer.c
Log message:
2005-08-08 Jerry DeLisle <jvdelisle@verizon.net>
PR libfortran/23154
* io/transfer.c (data_transfer_init): Initialize
current_unit->bytes_left for a read.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.163.2.74&r2=1.163.2.75
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/io/transfer.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.32.2.11&r2=1.32.2.12
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23154
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug libfortran/23154] Currupt string and segfault in formatted read.
2005-07-31 2:24 [Bug libfortran/23154] New: Bad floating point in formatted read jvdelisle at gcc dot gnu dot org
` (5 preceding siblings ...)
2005-08-09 2:58 ` cvs-commit at gcc dot gnu dot org
@ 2005-08-09 4:35 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-09 4:35 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-09 04:35 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.0.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23154
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2005-08-09 4:35 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-31 2:24 [Bug libfortran/23154] New: Bad floating point in formatted read jvdelisle at gcc dot gnu dot org
2005-07-31 6:07 ` [Bug libfortran/23154] " jvdelisle at gcc dot gnu dot org
2005-07-31 6:47 ` jvdelisle at gcc dot gnu dot org
2005-07-31 7:04 ` jvdelisle at gcc dot gnu dot org
2005-07-31 7:24 ` [Bug libfortran/23154] Currupt string and segfault " jvdelisle at gcc dot gnu dot org
2005-08-09 1:56 ` cvs-commit at gcc dot gnu dot org
2005-08-09 2:58 ` cvs-commit at gcc dot gnu dot org
2005-08-09 4:35 ` 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).