public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/25697]  New: libfortran - Segmentation fault/ Bad Address on unformatted read
@ 2006-01-06 18:24 dir at lanl dot gov
  2006-01-06 20:11 ` [Bug libfortran/25697] " dir at lanl dot gov
                   ` (17 more replies)
  0 siblings, 18 replies; 19+ messages in thread
From: dir at lanl dot gov @ 2006-01-06 18:24 UTC (permalink / raw)
  To: gcc-bugs

On the Macintosh this program gives a "Segmentation fault" on Linux it gives
"Fortran runtime error: Bad address"

dranta:~/tests/gfortran-D] dir% gfortran -o write19 write19.f
[dranta:~/tests/gfortran-D] dir% write19
Segmentation fault
[dranta:~/tests/gfortran-D] dir% cat write19.f
      integer data(500)
      do i = 1,500
        data(i)=-1
      enddo
      open(unit=11,status='scratch',form='unformatted')
       read(11,end=        1000 )data
 1000  continue
       backspace 11
       write(11)data
       read(11,end=        1001 )data
 1001  continue
       backspace 11
       backspace 11
       write(11)data
       rewind 11
       backspace 11
       read(11,end=        1002 )data
 1002  continue
       read(11,end=        1003 )data
 1003  continue
       close(11)
       end

dranta:~/tests/gfortran-D] dir% gfortran --v
Using built-in specs.
Target: powerpc-apple-darwin8.3.0
Configured with: ../gcc/configure --prefix=/Users/dir/gfortran
--enable-languages=c,f95
Thread model: posix
gcc version 4.2.0 20060106 (experimental)
[dranta:~/tests/gfortran-D] dir%


-- 
           Summary: libfortran - Segmentation fault/ Bad Address on
                    unformatted read
           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


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



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

end of thread, other threads:[~2006-01-25  7:41 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-06 18:24 [Bug libfortran/25697] New: libfortran - Segmentation fault/ Bad Address on unformatted read dir at lanl dot gov
2006-01-06 20:11 ` [Bug libfortran/25697] " dir at lanl dot gov
2006-01-07  0:59 ` jvdelisle at gcc dot gnu dot org
2006-01-08  9:40 ` jvdelisle at gcc dot gnu dot org
2006-01-09  1:53 ` dir at lanl dot gov
2006-01-09  5:27 ` jvdelisle at gcc dot gnu dot org
2006-01-09 18:18 ` dir at lanl dot gov
2006-01-11  3:45 ` jvdelisle at gcc dot gnu dot org
2006-01-11 15:34 ` dir at lanl dot gov
2006-01-11 16:02 ` dir at lanl dot gov
2006-01-11 16:50 ` dir at lanl dot gov
2006-01-12  6:46 ` jvdelisle at gcc dot gnu dot org
2006-01-18  6:21 ` jvdelisle at gcc dot gnu dot org
2006-01-18  6:23 ` jvdelisle at gcc dot gnu dot org
2006-01-18  6:41 ` jvdelisle at gcc dot gnu dot org
2006-01-18  6:42 ` jvdelisle at gcc dot gnu dot org
2006-01-21  7:19 ` jvdelisle at gcc dot gnu dot org
2006-01-21  7:21 ` jvdelisle at gcc dot gnu dot org
2006-01-25  7:41 ` 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).