public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/16080] New: segmentation fault when reading empty string
@ 2004-06-19 13:47 wieferink at freenet dot de
  2004-06-19 16:31 ` [Bug libfortran/16080] " bdavis at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: wieferink at freenet dot de @ 2004-06-19 13:47 UTC (permalink / raw)
  To: gcc-bugs

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


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

* [Bug libfortran/16080] segmentation fault when reading empty string
  2004-06-19 13:47 [Bug libfortran/16080] New: segmentation fault when reading empty string wieferink at freenet dot de
@ 2004-06-19 16:31 ` bdavis at gcc dot gnu dot org
  2004-06-19 16:34 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: bdavis at gcc dot gnu dot org @ 2004-06-19 16:31 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bdavis at gcc dot gnu dot org  2004-06-19 16:31 -------
proposed patch here:

http://gcc.gnu.org/ml/fortran/2004-06/msg00207.html

-- 


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


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

* [Bug libfortran/16080] segmentation fault when reading empty string
  2004-06-19 13:47 [Bug libfortran/16080] New: segmentation fault when reading empty string wieferink at freenet dot de
  2004-06-19 16:31 ` [Bug libfortran/16080] " bdavis at gcc dot gnu dot org
@ 2004-06-19 16:34 ` pinskia at gcc dot gnu dot org
  2004-06-19 16:42 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-19 16:34 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-06-19 16:34 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |patch
   Last reconfirmed|0000-00-00 00:00:00         |2004-06-19 16:34:56
               date|                            |
            Version|unknown                     |3.5.0


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


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

* [Bug libfortran/16080] segmentation fault when reading empty string
  2004-06-19 13:47 [Bug libfortran/16080] New: segmentation fault when reading empty string wieferink at freenet dot de
  2004-06-19 16:31 ` [Bug libfortran/16080] " bdavis at gcc dot gnu dot org
  2004-06-19 16:34 ` pinskia at gcc dot gnu dot org
@ 2004-06-19 16:42 ` cvs-commit at gcc dot gnu dot org
  2004-06-19 17:03 ` pinskia at gcc dot gnu dot org
  2004-06-19 17:03 ` cvs-commit at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-06-19 16:42 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-06-19 16:42 -------
Subject: Bug 16080

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	bdavis@gcc.gnu.org	2004-06-19 16:42:06

Modified files:
	gcc/testsuite  : ChangeLog 
	libgfortran    : ChangeLog 
	libgfortran/io : list_read.c 
Added files:
	gcc/testsuite/gfortran.fortran-torture/execute: 
	                                                read_null_string.f90 

Log message:
	2004-06-19  Bud Davis  <bdavis9659@comcast.net>
	
	PR gfortran/16080
	* gfortran.fortran-torture/execute/read_null_string.f90: New file.
	* io/list_read.c(set_value): don't copy if the string is null.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3875&r2=1.3876
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.fortran-torture/execute/read_null_string.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/ChangeLog.diff?cvsroot=gcc&r1=1.36&r2=1.37
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/io/list_read.c.diff?cvsroot=gcc&r1=1.2&r2=1.3



-- 


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


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

* [Bug libfortran/16080] segmentation fault when reading empty string
  2004-06-19 13:47 [Bug libfortran/16080] New: segmentation fault when reading empty string wieferink at freenet dot de
                   ` (3 preceding siblings ...)
  2004-06-19 17:03 ` pinskia at gcc dot gnu dot org
@ 2004-06-19 17:03 ` cvs-commit at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-06-19 17:03 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-06-19 17:03 -------
Subject: Bug 16080

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	bdavis@gcc.gnu.org	2004-06-19 17:03:16

Modified files:
	libgfortran    : ChangeLog 
	libgfortran/io : list_read.c 

Log message:
	2004-06-19  Bud Davis  <bdavis9659@comcast.net>
	
	PR gfortran/16080
	* io/list_read.c(set_value): fixed spelling.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/ChangeLog.diff?cvsroot=gcc&r1=1.37&r2=1.38
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/io/list_read.c.diff?cvsroot=gcc&r1=1.3&r2=1.4



-- 


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


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

* [Bug libfortran/16080] segmentation fault when reading empty string
  2004-06-19 13:47 [Bug libfortran/16080] New: segmentation fault when reading empty string wieferink at freenet dot de
                   ` (2 preceding siblings ...)
  2004-06-19 16:42 ` cvs-commit at gcc dot gnu dot org
@ 2004-06-19 17:03 ` pinskia at gcc dot gnu dot org
  2004-06-19 17:03 ` cvs-commit at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-19 17:03 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-06-19 17:03 -------
Fixed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |3.5.0


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


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

end of thread, other threads:[~2004-06-19 17:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-19 13:47 [Bug libfortran/16080] New: segmentation fault when reading empty string wieferink at freenet dot de
2004-06-19 16:31 ` [Bug libfortran/16080] " bdavis at gcc dot gnu dot org
2004-06-19 16:34 ` pinskia at gcc dot gnu dot org
2004-06-19 16:42 ` cvs-commit at gcc dot gnu dot org
2004-06-19 17:03 ` pinskia at gcc dot gnu dot org
2004-06-19 17:03 ` cvs-commit 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).