Pslegend crash with a segmentation faults

Hello there!
I’m having an issue pslegend. It’s returning a Segmentation fault (see below)

[Session gmt (0)]: Error returned from GMT API: GMT_READ_ONCE (70)
[Session gmt (0)]: Error returned from GMT API: GMT_READ_ONCE (70)
[Session gmt (0)]: Error returned from GMT API: GMT_READ_ONCE (70)
ERROR: Caught signal number 11 (Segmentation fault) at
/usr/local/lib/libgmt.so.5(gmtlib_free_dataset_ptr+0x2f)[0x7fd92938333f]
[0x0]
Stack backtrace:
/usr/local/lib/libgmt.so.5(sig_handler+0x2ab)[0x7fd929318bdb]
/lib/x86_64-linux-gnu/libc.so.6(+0x43090)[0x7fd929123090]
/usr/local/lib/libgmt.so.5(gmtlib_free_dataset_ptr+0x2f)[0x7fd92938333f]
/usr/local/lib/libgmt.so.5(+0x33e03)[0x7fd92931ae03]
/usr/local/lib/libgmt.so.5(gmtapi_garbage_collection+0x394)[0x7fd92931d484]
/usr/local/lib/libgmt.so.5(gmt_end_module+0x70)[0x7fd929421610]
/usr/local/lib/libgmt.so.5(GMT_pslegend+0x15d0)[0x7fd9295e70b0]
/usr/local/lib/libgmt.so.5(GMT_Call_Module+0x12b)[0x7fd92932632b]
gmt(main+0x5ae)[0x7fd92972a80e]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0x7fd929104083]
gmt(_start+0x2e)[0x7fd92972adce]

I comment on some of the lines in the text file to see which one makes the problem (in bold below). I really don’t understand where the problem is, I use this line several times before and it never happens

L - - C Geological features :
G 0.2c
S 0.2c f0.5+l+t 0.5 black 1 0.75 Main thrust
G 0.1c
S 0.2c f0.2/0.15+l+f 0.5 black 1 0.75 Normal Fault
G 0.1c
S 0.2c f-1/0.3+r+s45 0.5 black 1 0.75 Transfert fault
G 0.1c

If you want feedback it is usually a good idea to post a small example that fails, not just saying that X fails