Bug #1150

Possible bug in gmtconvert

Added by Mike 9 days ago.

Status:NewStart date:2017-09-12
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-
Affected version:5.x-svn Platform:

Description

Seg fault in gmtconvert when using -o and -bo simultaneously. See the example below. test.xyd is attached.

[lele:~/]% gmtconvert test.xyd -bi3
-176.869 -6.31645 -6037.55
-176.87 -6.3158 -6015.27
-176.871 -6.3152 -5996.67
-176.872 -6.31464 -6000.1
-176.874 -6.31407 -5994.71
-176.875 -6.31354 -5990.77
-176.876 -6.31302 -6006.2
-176.877 -6.31248 -6016.98
-176.878 -6.31194 -6020.9
-176.879 -6.31138 -6037.64
[lele:~/]% gmtconvert test.xyd -bi3 -o2
-6037.55
-6015.27
-5996.67
-6000.1
-5994.71
-5990.77
-6006.2
-6016.98
-6020.9
-6037.64
[lele:~/]% gmtconvert test.xyd -bi3 -o2 -bo >! test.d
ERROR: Caught signal number 11 (Segmentation fault) at
0 ? 0x0000000000000000 0x0 + 0
1 ?
0x0000000000000000 0x0 + 0
Stack backtrace:
0 libgmt.6.dylib 0x000000010440e919 sig_handler + 569
1 libsystem_platform.dylib 0x00007fff92d9252a _sigtramp + 26
2 ? 0x0000000000000000 0x0 + 0
3 libgmt.6.dylib 0x0000000104471b40 gmtio_write_table + 3568
4 libgmt.6.dylib 0x000000010447028c gmtlib_write_dataset + 2476
5 libgmt.6.dylib 0x0000000104440316 api_export_data + 9462
6 libgmt.6.dylib 0x0000000104421c85 api_put_data + 677
7 libgmt.6.dylib 0x00000001044181bb GMT_Write_Data + 1291
8 libgmt.6.dylib 0x00000001045b60bf GMT_gmtconvert + 11359
9 libgmt.6.dylib 0x0000000104429027 GMT_Call_Module + 567
10 gmtconvert 0x0000000104403fb9 main + 1017
11 libdyld.dylib 0x00007fff862fe5ad start + 1
12 ?
0x0000000000000005 0x0 + 5
[lele:~/]% gmtconvert --version
6.0.0_r18825M

test.xyd - binary lon lat depth file (240 Bytes) Mike, 2017-09-12 16:40

Also available in: Atom PDF