How to debug "Access not within mapped region" runtime error
Jerry DeLisle
jvdelisle@verizon.net
Thu Aug 16 09:07:00 GMT 2007
Florian wrote:
> Florian wrote:
>> Jerry DeLisle wrote:
>>> Florian wrote:
>>>>
>>>> I have a piece of code causing runtime troubles with gfortran
>>>> (compiling problems are solved thanks to your quick patchings). It
>>>> works with NAG, lahey, and intel fortran compiler, so I guess the
>>>> troubles are related with gfortran, that's why I would ask for
>>>> advice here how to debug the situation.
>>>>
>
>
> I could reduce my test case a lot now to show where the gdb seg fault
> comes from. I believe that this might be also the solution to the actual
> problem, though I am not sure yet.
>
> This produces a seg fault in gdb when setting a breakpoint to
> chartestmod.f90:5 and trying to print startdate:
>
>
... SNIP ...
>
>
> Now, change in chartestmod.f90 'LEN=*' to 'LEN=19' and gdb does not
> segfault anymore. I somehow think that this is related to my actual
> problem, so: any ideas if this is related to a gfortran bug?
>
> thanks, florian
I can not reproduce the problem. What operating system are you using and what
hardware platform?.
Can you send the complete result of 'gfortran -v' output. This will give us
some configuration and build information.
Jerry
More information about the Fortran
mailing list