public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/13919] New: Runtime 'internal error' in IO on i686-pc-linux-gnu only
@ 2004-01-29 11:17 Mart dot Rentmeester at sci dot kun dot nl
2004-01-29 15:40 ` [Bug libfortran/13919] [gfortran] " pinskia at gcc dot gnu dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: Mart dot Rentmeester at sci dot kun dot nl @ 2004-01-29 11:17 UTC (permalink / raw)
To: gcc-bugs
When I run the program below, and feed it a file with less
than 10 records (just a list of reals), i.e., the 'end=2'
redirection in the read statement should be followed,
generates an internal error on a linux pc (i686-pc-linux-gnu)
about recursive library calls not being allowed (see below).
However, when I remove the 'close(78)' line the internal
error mysteriously disappears.
On a hp pa-risc machine (hppa2.0w-hp-hpux11.11) this program
just runs as expected.
gfortran -dumpversion:
GNU Fortran 95 (GCC 3.5-tree-ssa 20040119 (merged 20040102))
Sample session:
############################################################
Give filename
Ppp
1
2
3
4
5
At line 21 of file x.f
Internal Error: Recursive library calls not allowed
############################################################
program phs
implicit none
integer n,r
real e(10)
character(10) file
write(6,*) 'Give filename'
read(5,*) file
open(78,file=file)
n = 0
1 continue
n = n + 1
write(6,*) n
if (n > 10) goto 3
read(78,*,end=2) e(n)
goto 1
2 continue
write(6,*) 'end reached'
3 continue
n = n - 1
close(78)
end
############################################################
--
Summary: Runtime 'internal error' in IO on i686-pc-linux-gnu only
Product: gcc
Version: tree-ssa
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: Mart dot Rentmeester at sci dot kun dot nl
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13919
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libfortran/13919] [gfortran] Runtime 'internal error' in IO on i686-pc-linux-gnu only
2004-01-29 11:17 [Bug fortran/13919] New: Runtime 'internal error' in IO on i686-pc-linux-gnu only Mart dot Rentmeester at sci dot kun dot nl
@ 2004-01-29 15:40 ` pinskia at gcc dot gnu dot org
2004-02-03 16:04 ` reichelt at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-29 15:40 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-01-29 15:40 -------
It does not happen on powerpc-apple-darwin either, I have not tried i686-pc-linux-gnu yet.
--
What |Removed |Added
----------------------------------------------------------------------------
Component|fortran |libfortran
Summary|Runtime 'internal error' in |[gfortran] Runtime 'internal
|IO on i686-pc-linux-gnu only|error' in IO on i686-pc-
| |linux-gnu only
Target Milestone|--- |tree-ssa
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13919
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libfortran/13919] [gfortran] Runtime 'internal error' in IO on i686-pc-linux-gnu only
2004-01-29 11:17 [Bug fortran/13919] New: Runtime 'internal error' in IO on i686-pc-linux-gnu only Mart dot Rentmeester at sci dot kun dot nl
2004-01-29 15:40 ` [Bug libfortran/13919] [gfortran] " pinskia at gcc dot gnu dot org
@ 2004-02-03 16:04 ` reichelt at gcc dot gnu dot org
2004-02-28 14:53 ` bdavis9659 at comcast dot net
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-02-03 16:04 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2004-02-03 16:04 -------
Confirmed on i686-pc-linux-gnu.
Here's a slightly reduced version with hardcoded input filename.
Runs fine with g77, but crashes with gfortran.
If the input file is empty one gets a segfault instead of the error message.
======================================
program foo
integer i
open(78,file='data.txt')
1 continue
read(78,*,end=2) i
write(6,*) i
goto 1
2 continue
close(78)
end
======================================
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-02-03 16:04:11
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13919
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libfortran/13919] [gfortran] Runtime 'internal error' in IO on i686-pc-linux-gnu only
2004-01-29 11:17 [Bug fortran/13919] New: Runtime 'internal error' in IO on i686-pc-linux-gnu only Mart dot Rentmeester at sci dot kun dot nl
2004-01-29 15:40 ` [Bug libfortran/13919] [gfortran] " pinskia at gcc dot gnu dot org
2004-02-03 16:04 ` reichelt at gcc dot gnu dot org
@ 2004-02-28 14:53 ` bdavis9659 at comcast dot net
2004-03-24 12:14 ` cvs-commit at gcc dot gnu dot org
2004-03-24 16:01 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: bdavis9659 at comcast dot net @ 2004-02-28 14:53 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bdavis9659 at comcast dot net 2004-02-28 14:53 -------
Proposed patch:
http://gcc.gnu.org/ml/fortran/2004-02/msg00053.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13919
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libfortran/13919] [gfortran] Runtime 'internal error' in IO on i686-pc-linux-gnu only
2004-01-29 11:17 [Bug fortran/13919] New: Runtime 'internal error' in IO on i686-pc-linux-gnu only Mart dot Rentmeester at sci dot kun dot nl
` (2 preceding siblings ...)
2004-02-28 14:53 ` bdavis9659 at comcast dot net
@ 2004-03-24 12:14 ` cvs-commit at gcc dot gnu dot org
2004-03-24 16:01 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-03-24 12:14 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-03-24 12:14 -------
Subject: Bug 13919
CVSROOT: /cvs/gcc
Module name: gcc
Branch: tree-ssa-20020619-branch
Changes by: pbrook@gcc.gnu.org 2004-03-24 12:14:03
Modified files:
gcc/testsuite : ChangeLog.tree-ssa
libgfortran : ChangeLog
libgfortran/io : io.h list_read.c transfer.c
Added files:
gcc/testsuite/gfortran.fortran-torture/execute: csqrt_1.f90
read_eof.f90
Log message:
PR 13919
* io/io.h (global_t):
* io/list_read.c (next_char,list_formatted_read,ist_formatted_read):
Move eof_jmp to a global structure.
* io/transfer.c(finalize_transfer) : Set up eof_jump for callers.
testsuite
* gfortran.fortran-torture/execute/read_eof.f90: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.tree-ssa.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.198&r2=1.1.2.199
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.fortran-torture/execute/csqrt_1.f90.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.fortran-torture/execute/read_eof.f90.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/ChangeLog.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.33&r2=1.1.2.34
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/io/io.h.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.5&r2=1.1.2.6
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/io/list_read.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.6&r2=1.1.2.7
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/io/transfer.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.8&r2=1.1.2.9
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13919
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libfortran/13919] [gfortran] Runtime 'internal error' in IO on i686-pc-linux-gnu only
2004-01-29 11:17 [Bug fortran/13919] New: Runtime 'internal error' in IO on i686-pc-linux-gnu only Mart dot Rentmeester at sci dot kun dot nl
` (3 preceding siblings ...)
2004-03-24 12:14 ` cvs-commit at gcc dot gnu dot org
@ 2004-03-24 16:01 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-24 16:01 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-03-24 16:01 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13919
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2004-03-24 16:01 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-29 11:17 [Bug fortran/13919] New: Runtime 'internal error' in IO on i686-pc-linux-gnu only Mart dot Rentmeester at sci dot kun dot nl
2004-01-29 15:40 ` [Bug libfortran/13919] [gfortran] " pinskia at gcc dot gnu dot org
2004-02-03 16:04 ` reichelt at gcc dot gnu dot org
2004-02-28 14:53 ` bdavis9659 at comcast dot net
2004-03-24 12:14 ` cvs-commit at gcc dot gnu dot org
2004-03-24 16:01 ` 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).