Skip to content

Segmentation fault in coast using -JE and -R+r modifier #9073

Description

@biggle1856

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

Image

System information

  • Operating system: Fedora 44
  • GMT version (gmt --version): 6.7.0_ac580b2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions