GenericMappingTools / gmt

The Generic Mapping Tools
https://www.generic-mapping-tools.org
Other
861 stars 359 forks source link

Memory issue with sphdistance -D #6089

Closed maxrjones closed 2 years ago

maxrjones commented 2 years ago

Description of the problem

There is a memory corruption issue with sphdistance -D.

Full script that generated the error

gmt sphdistance @gshhs_c.txt -Rg -I1 -Gtt.nc -Lk -D

Full error message

sphdistance [WARNING]: Skipped 21 duplicate points in segments
malloc: Heap corruption detected, free list is damaged 

System information

PaulWessel commented 2 years ago

Can you tell more if you run in xcode with all the malloc guards on?

maxrjones commented 2 years ago

Can you tell more if you run in xcode with all the malloc guards on?

Yes. I found this while trying to put together fun figures for the PyGMT agu poster and opened the issue to not forget about it. I will debug after finishing a few figures for the poster.