This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Segfault
- From: Thomas Koenig <Thomas dot Koenig at online dot de>
- To: Salvatore Filippone <salvatore dot filippone at uniroma2 dot it>
- Cc: fortran at gcc dot gnu dot org
- Date: Thu, 18 Jan 2007 20:05:40 +0100
- Subject: Re: Segfault
- References: <1169141894.25056.7.camel@localhost.localdomain>
Hi Salvatore,
> I am seeing the following:
> #2 0x0011dc17 in allocate_size (size=1067645825, stat=0x2c9120)
> at ../../../gcc-4.2-20061226/libgfortran/runtime/memory.c:182
> #3 0x0011ddcb in *_gfortran_allocate_array (mem=0x0, size=48964,
> stat=0xbfc6c4e0)
> at ../../../gcc-4.2-20061226/libgfortran/runtime/memory.c:237
> #4 0x080a5271 in __psb_realloc_mod__psb_dreallocate1i
> (len=@0xbfc6c7fc,
> rrax=@0xa59c340, info=@0xbfc6cffc, pad=0x0, lb=0x0)
> at psb_realloc_mod.F90:608
>
> Looks exceedingly strange: if size is 48964 upon entering
> gfortran_allocate_array, how can it become (size=1067645825, in
> allocate_size ????
I agree, this looks strange. Also, the pointer to stat is
different. Maybe gdb is confused about something.
> What on earth am I doing wrong?????
You're not providing a test case so we can check for ourselves :-)
Thomas