[MITgcm-support] Segmentation fault trying to capture location in ptracers array.
Jonathan Lauderdale
jml1 at mit.edu
Wed Jun 10 12:55:25 EDT 2015
Thanks to everyone who provided suggestions: I used the -fppe-trap flag and gdb to track the error to a diagnostic that I added in a completely different subroutine that I thought was fine. Works fine now!
Jon
> On Jun 10, 2015, at 03:12, Martin Losch <Martin.Losch at awi.de> wrote:
>
> Hi Jon,
>
> generally I would use these flags for easier debugging with gfortran:
>
> -g -fbounds-check -ffpe-trap=invalid,zero,overflow -finit-real=inf
>
> You should then get more information as to where the model crashes. using gdb or the “print hallo”-debugger also helps (see Michael’s post).
>
> M.
>
>
>> On 10 Jun 2015, at 01:33, Jonathan Lauderdale <jml1 at mit.edu> wrote:
>>
>> Thanks for your reply, I am using gfortran (gcc49 on an iMac 10.10) with -g and -C and that is all the output I get, but I will check for specific version flags, etc….
>>
>
>
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-support
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1587 bytes
Desc: not available
URL: <http://mitgcm.org/pipermail/mitgcm-support/attachments/20150610/fb323325/attachment.p7s>
More information about the MITgcm-support
mailing list