Repository navigation
Closed
Labels
bugSomething isn't working
Description
Description of the problem
Trying to draw an Azimuthal equidistant projection based on Singapore in order to show the full extent of SIA's route network.
Segmentation fault in coast (and only in coast) when I use the -R+r modifier
Full script that generated the error
gmt coast -Vd -R6.97229795181/-37.0769712136/278.20744191/7.44518494882r -JE103.989333/1.359211/17.7c -Glightgrey -pdf t
Full error message
coast [INFORMATION]: Selected ice front line as Antarctica coastline
coast [INFORMATION]: GSHHG version 2.3.7
coast [INFORMATION]: Derived from World Vector Shoreline, CIA WDB-II, and Atlas of the Cryosphere
coast [INFORMATION]: Processed by Paul Wessel and Walter H. F. Smith, 1994-2017
coast [DEBUG]: Running in PS mode modern
coast [DEBUG]: Use PS filename /home/jch/.gmt/sessions/gmt_session.88313/gmt_0.ps-
coast [DEBUG]: Create hidden PS file /home/jch/.gmt/sessions/gmt_session.88313/gmt_0.ps-
coast [DEBUG]: No figure file /home/jch/.gmt/sessions/gmt_session.88313/gmt.figures - nothing to do
coast [DEBUG]: Got session name as t and default graphics formats as pdf
coast [DEBUG]: Basemap order: Frame = above Grid = above Tick/Annot = below
pscoast (gmtlib_lonpath): Could not reallocate memory [68719476736.00 Gb, 9223372036854775809 items of 8 bytes]
pscoast (gmtlib_lonpath): Could not reallocate memory [68719476736.00 Gb, 9223372036854775809 items of 8 bytes]
ERROR: Caught signal number 11 (Segmentation fault) at
/usr/local/lib64/libgmt.so.6(gmtlib_lonpath+0x1ea) [0x7f88d5da3eaa]
[0x0]
Stack backtrace:
/usr/local/lib64/libgmt.so.6(gmt_sig_handler_unix+0xbd) [0x7f88d5d3ba6d]
/lib64/libc.so.6(+0x1a0b0) [0x7f88d2c210b0]
/usr/local/lib64/libgmt.so.6(gmtlib_lonpath+0x1ea) [0x7f88d5da3eaa]
/usr/local/lib64/libgmt.so.6(gmt_assemble_shore+0xc7f) [0x7f88d5cb5c9f]
/usr/local/lib64/libgmt.so.6(GMT_pscoast+0x56ae) [0x7f88d5f8ff9e]
/usr/local/lib64/libgmt.so.6(GMT_Call_Module+0x49e) [0x7f88d5c2ab5e]
gmt() [0x400b01]
/lib64/libc.so.6(+0x3681) [0x7f88d2c0a681]
/lib64/libc.so.6(__libc_start_main+0x88) [0x7f88d2c0a798]
gmt() [0x401855]
Actual outcome
Expected outcome
The above is a mwe of the error. The full script under GMT 6.6.0 produces
System information
- Operating system: Fedora 44
- GMT version (
gmt --version): 6.7.0_ac580b2
Metadata
Metadata
Assignees
Labels
bugSomething isn't working
Activity
github-actions commentedon Jun 26, 2026
👋 Thanks for opening your first issue here! Please make sure you filled out the template with as much detail as possible. We appreciate that you took the time to contribute!
Please make sure you read our Contributing Guide and abide by our Code of Conduct.
joa-quim commentedon Jun 26, 2026
You
coastcommand doesn't crash for me (I'm on Windows) but it shows one of those stray gray edges running from the coastlines (see the right side. And this is -D dependent.joa-quim commentedon Jun 26, 2026
Hmmm, this smells so much to #9071
Esteban82 commentedon Jun 26, 2026
It crashes for me on Linux.
Patch the crash reported in #9073 (#9104)
joa-quim commentedon Jul 15, 2026
I'm closing this because #9104 works around the problem and avoids the crash. But root cause is still to be found.