This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libfortran/16080] New: segmentation fault when reading empty string


The Fortran95-file 
<snip> 
program test 
  implicit none 
  integer                             :: save_type 
  character(250)                      :: temp_name 
  read(5, *) save_type 
  read(5, *) temp_name 
end program test 
</snip> 
compiled with 
<snip> 
wiefer@ferdinand:~/temp/empty_string> f95-gfortran -v empty_string.f90 
Driving: f95-gfortran -v empty_string.f90 -lgfortranbegin -lgfortran -lm -shared-libgcc 
Lese Spezifikationen von /usr/local/lib/gcc/i686-pc-linux-gnu/3.5.0/specs 
Konfiguriert mit: ../gcc/configure --program-prefix=f95- --enable-languages=c,c++,f95 
Thread-Modell: posix 
gcc-Version 3.5.0 20040619 (experimental) 
 /usr/local/libexec/gcc/i686-pc-linux-gnu/3.5.0/f951 empty_string.f90 -quiet -dumpbase 
empty_string.f90 -mtune=pentiumpro -auxbase empty_string -version -o /tmp/ccm2xJrT.s 
GNU F95 version 3.5.0 20040619 (experimental) (i686-pc-linux-gnu) 
        compiled by GNU C version 3.5.0 20040619 (experimental). 
GGC-Heuristik: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 
 as --traditional-format -V -Qy -o /tmp/ccSosg4E.o /tmp/ccm2xJrT.s 
GNU assembler version 2.13.90.0.18 (i486-suse-linux) using BFD version 2.13.90.0.18 
20030121 (SuSE Linux) 
 /usr/local/libexec/gcc/i686-pc-linux-gnu/3.5.0/collect2 --eh-frame-hdr -m elf_i386 
-dynamic-linker /lib/ld-linux.so.2 /usr/lib/crt1.o /usr/lib/crti.o 
/usr/local/lib/gcc/i686-pc-linux-gnu/3.5.0/crtbegin.o -L/usr/local/lib/gcc/i686-pc-linux-gnu/3.5.0 
-L/usr/local/lib/gcc/i686-pc-linux-gnu/3.5.0/../../.. /tmp/ccSosg4E.o -lgfortranbegin -lgfortran -lm 
-lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/local/lib/gcc/i686-pc-linux-gnu/3.5.0/crtend.o /usr/lib/crtn.o 
</snip> 
produces a segmentation fault on the input file 
<snip> 
 1 
 "" 
</snip>

-- 
           Summary: segmentation fault when reading empty string
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libfortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: wieferink at freenet dot de
                CC: gcc-bugs at gcc dot gnu dot org


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]