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 fortran/30321] program crash for SUM applied to zero-size array



------- Comment #1 from tkoenig at gcc dot gnu dot org  2006-12-28 21:20 -------
Confirmed, the crash is within the library:

$ gfortran -g xzero_size_array.f90
$ gdb ./a.out
GNU gdb 6.4.90-debian
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...Using host libthread_db library
"/lib/tls/i686/cmov/libthread_db.so.1".

(gdb) r
Starting program: /home/ig25/Krempel/a.out
Failed to read a valid object file image from memory.

Program received signal SIGSEGV, Segmentation fault.
0xb7f57b70 in *_gfortran_sum_i4 (retarray=0xbfbe19c0, array=0xbfbe1998,
    pdim=0x8048974) at ../../../../gcc/trunk/libgfortran/generated/sum_i4.c:125
125               *dest = 0;
(gdb) p dest
$1 = (GFC_INTEGER_4 *) 0x0


-- 

tkoenig at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tkoenig at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-12-28 21:20:56
               date|                            |


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


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