public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/20236] New: Gfortran internal read error
@ 2005-02-28  0:19 blime at cox dot net
  2005-02-28  0:42 ` [Bug fortran/20236] " blime at cox dot net
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: blime at cox dot net @ 2005-02-28  0:19 UTC (permalink / raw)
  To: gcc-bugs

/sodsim/local/gcc-4.0-20050220#>gcc -v
Using built-in specs.
Target: sparc-sun-solaris2.8
Configured with: ../configure --enable-languages=c,f95
Thread model: posix
gcc version 4.0.0 20050220 (experimental)
Build with no problems.
This little test program was created as a result of a runtime error on
a large program used to test gfortran. G77 does not have this problem.   
************************************************************************
      program ntst

      character*16 bufld
      character*142 line
      
      open (10,file='bumsls',status='old')
     
 32   read (10,'(a)',end=33) line
      if (line(1:1) .eq. '.') goto 32

      write(*,*) 'write values on the line ',line
      write(*,*)

      read (line,79) bufld,budelt
 79   format (t43,a16,t61,f8.0)

      write(*,*) 'write 2 values from the line ',bufld,budelt
      write(*,*)
      
 33   continue
       
      end
************************************************************************
At line 14 of file ntst.f
Fortran runtime error: Bad value during floating point read

bumsls file contents 3 lines
*****************************************************************************
.
. ----  ------  ---  --------- ---------  ----------------  --------  ----  -----
     1  axxxx     1    54.3000   35.3000  rrrabcrbbbbxxxxb     1200.  13p3  33333

-- 
           Summary: Gfortran internal read error
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: blime at cox dot net
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20236


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug fortran/20236] Gfortran internal read error
  2005-02-28  0:19 [Bug fortran/20236] New: Gfortran internal read error blime at cox dot net
@ 2005-02-28  0:42 ` blime at cox dot net
  2005-02-28  2:21 ` tobi at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: blime at cox dot net @ 2005-02-28  0:42 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
OtherBugsDependingO|                            |20235
              nThis|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20236


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug fortran/20236] Gfortran internal read error
  2005-02-28  0:19 [Bug fortran/20236] New: Gfortran internal read error blime at cox dot net
  2005-02-28  0:42 ` [Bug fortran/20236] " blime at cox dot net
@ 2005-02-28  2:21 ` tobi at gcc dot gnu dot org
  2005-02-28  2:48 ` [Bug fortran/20236] runtime error reading float tobi at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: tobi at gcc dot gnu dot org @ 2005-02-28  2:21 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From tobi at gcc dot gnu dot org  2005-02-27 18:34 -------
*** Bug 20235 has been marked as a duplicate of this bug. ***

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20236


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug fortran/20236] runtime error reading float
  2005-02-28  0:19 [Bug fortran/20236] New: Gfortran internal read error blime at cox dot net
  2005-02-28  0:42 ` [Bug fortran/20236] " blime at cox dot net
  2005-02-28  2:21 ` tobi at gcc dot gnu dot org
@ 2005-02-28  2:48 ` tobi at gcc dot gnu dot org
  2005-03-23 22:58 ` [Bug libfortran/20236] " fxcoudert at gcc dot gnu dot org
  2005-06-01  9:44 ` fxcoudert at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: tobi at gcc dot gnu dot org @ 2005-02-28  2:48 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From tobi at gcc dot gnu dot org  2005-02-27 18:41 -------
Fixed form testcase which doesn't need the data file:
      program ntst

      character*16 bufld
      character*142 line

      line = '     1  axxxx     1    54.3000   35.3000  rrrabcrbbbbxxxx'
     1     //'b     1200.  13p3  33333'

      write(*,*) 'write values on the line ',line
      write(*,*)

      read (line,79) bufld,budelt
 79   format (t43,a16,t61,f8.0)

      write(*,*) 'write 2 values from the line ',bufld,budelt
      write(*,*)
      
 33   continue
       
      end

Works with g77, output:
 write values on the line
      1  axxxx     1    54.3000   35.3000  rrrabcrbbbbxxxxb     1200.  13p3  33333

 write 2 values from the line rrrabcrbbbbxxxxb  1200.

Runtime error with gfortran.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-02-27 18:41:12
               date|                            |
            Summary|Gfortran internal read error|runtime error reading float


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20236


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug libfortran/20236] runtime error reading float
  2005-02-28  0:19 [Bug fortran/20236] New: Gfortran internal read error blime at cox dot net
                   ` (2 preceding siblings ...)
  2005-02-28  2:48 ` [Bug fortran/20236] runtime error reading float tobi at gcc dot gnu dot org
@ 2005-03-23 22:58 ` fxcoudert at gcc dot gnu dot org
  2005-06-01  9:44 ` fxcoudert at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2005-03-23 22:58 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From fxcoudert at gcc dot gnu dot org  2005-03-23 22:58 -------
Using testcase from comment #2, I don't get a runtime error but the program
hangs out forever:

Program received signal SIGINT, Interrupt.
0x0806b971 in memset ()
Current language:  auto; currently asm
(gdb) where
#0  0x0806b971 in memset ()
#1  0x08048ba1 in *_gfortrani_read_block (length=0xbffff7a4)
    at ../../../gcc/libgfortran/io/transfer.c:153
#2  0x080529b8 in *_gfortrani_read_x (f=0x0)
    at ../../../gcc/libgfortran/io/read.c:726
#3  0x08049b72 in formatted_transfer (type=BT_CHARACTER, p=0xbffff8e4, len=16)
    at ../../../gcc/libgfortran/io/transfer.c:684
#4  0x08048f77 in *_gfortran_transfer_character (p=0xbffff8d4, len=16)
    at ../../../gcc/libgfortran/io/transfer.c:820
#5  0x080482e9 in MAIN__ ()
#6  0x080483b8 in main (argc=1, argv=0xbffffb54)
    at ../../../gcc/libgfortran/fmain.c:18


This behavior is, I think, due to the T edit descriptor. From what I have seen,
T and TL descriptors are incorrectly handled in library (see PR16436).

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fxcoudert at gcc dot gnu dot
                   |                            |org
   Last reconfirmed|2005-02-27 18:41:12         |2005-03-23 22:58:22
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20236


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug libfortran/20236] runtime error reading float
  2005-02-28  0:19 [Bug fortran/20236] New: Gfortran internal read error blime at cox dot net
                   ` (3 preceding siblings ...)
  2005-03-23 22:58 ` [Bug libfortran/20236] " fxcoudert at gcc dot gnu dot org
@ 2005-06-01  9:44 ` fxcoudert at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2005-06-01  9:44 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From fxcoudert at gcc dot gnu dot org  2005-06-01 09:44 -------
As I suggested in comment #3, this is a duplicate of PR16436. Patch from
http://gcc.gnu.org/ml/fortran/2005-05/msg00439.html fixes both.

*** This bug has been marked as a duplicate of 16436 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20236


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-06-01  9:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-28  0:19 [Bug fortran/20236] New: Gfortran internal read error blime at cox dot net
2005-02-28  0:42 ` [Bug fortran/20236] " blime at cox dot net
2005-02-28  2:21 ` tobi at gcc dot gnu dot org
2005-02-28  2:48 ` [Bug fortran/20236] runtime error reading float tobi at gcc dot gnu dot org
2005-03-23 22:58 ` [Bug libfortran/20236] " fxcoudert at gcc dot gnu dot org
2005-06-01  9:44 ` fxcoudert 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).