Re: Run-time error with gfortran -fbounds-check
- From: route6@xxxxxxxxxxx
- Date: Thu, 06 Sep 2007 07:49:06 -0700
ok, I found something interesting: I have another segmentation fault
with a modified version of the same code compiled with gfortran 4.2.2,
which now occurs when testing a logical variable during the sixth call
of a subroutine:
141 IF(efield) then
(gdb) print efield
$8 = @0x3cb7fc4ea1b4ca47: Cannot access memory at address
0x3cb7fc4ea1b4ca47
Doesn't it look like a memory leak?
All the code is static, except one subroutine, where I have declared:
COMPLEX(KIND=8), ALLOCATABLE, DIMENSION(:) :: ksigma_ommu,alpha,r
.../..
ALLOCATE(ksigma_ommu(0:nl1),alpha(0:nl1),r(0:nl))
.../..
DEALLOCATE(ksigma_ommu,alpha,r)
nl and nl1 are well-defined integers, and these arrays are passed to
subroutines in which arguments are declared with statements like
COMPLEX(KIND=8), INTENT(OUT), DIMENSION(0:) :: ALPHA
But even when I replace the allocatable arrays by static ones, the
program still terminates with a segmentation fault! Is there anything
else which could cause memory problems besides allocatable arrays?
.
- Follow-Ups:
- Re: Run-time error with gfortran -fbounds-check
- From: glen herrmannsfeldt
- Re: Run-time error with gfortran -fbounds-check
- From: Steven G. Kargl
- Re: Run-time error with gfortran -fbounds-check
- From: Richard Maine
- Re: Run-time error with gfortran -fbounds-check
- References:
- Run-time error with gfortran -fbounds-check
- From: route6
- Re: Run-time error with gfortran -fbounds-check
- From: FX
- Re: Run-time error with gfortran -fbounds-check
- From: route6
- Re: Run-time error with gfortran -fbounds-check
- From: alexei . matveev
- Re: Run-time error with gfortran -fbounds-check
- From: Richard Maine
- Re: Run-time error with gfortran -fbounds-check
- From: route6
- Run-time error with gfortran -fbounds-check
- Prev by Date: Re: read or write "how to convert integer to string?"
- Next by Date: two complaints by Intel Fortran
- Previous by thread: Re: Run-time error with gfortran -fbounds-check
- Next by thread: Re: Run-time error with gfortran -fbounds-check
- Index(es):
Relevant Pages
|