Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gmt math crashes uneccesarily #7654

Closed
PaulWessel opened this issue Jul 18, 2023 · 0 comments · Fixed by #7658
Closed

gmt math crashes uneccesarily #7654

PaulWessel opened this issue Jul 18, 2023 · 0 comments · Fixed by #7658
Assignees
Labels
bug Something isn't working
Milestone

Comments

@PaulWessel
Copy link
Member

This script yields SEG for wrong OPERATPR:

echo 1 2 > a.txt
cat << EOF > b.txt
40.712	-74.007
47.562	-52.712
37.742	-25.696
38.776	-9.135
45.503	12.342
EOF
gmt math a.txt b.txt POINT =

ERROR: Caught signal number 11 (Segmentation fault: 11) at
0   libsystem_platform.dylib            0x000000018370a7e8 _platform_memmove + 424
1   ???                                 0x40436353f7ced917 0x0 + 4630654054157965591
Stack backtrace:
0   libgmt.6.5.0.dylib                  0x0000000104d1eb5c gmt_sig_handler_unix + 192
1   libsystem_platform.dylib            0x000000018370aa24 _sigtramp + 56
2   libgmt.6.5.0.dylib                  0x0000000104e0fdd8 gmtmath_load_column + 104
3   libgmt.6.5.0.dylib                  0x0000000104e0acec GMT_gmtmath + 9876
4   libgmt.6.5.0.dylib                  0x0000000104c2460c GMT_Call_Module + 2268
5   libgmt.6.5.0.dylib                  0x0000000104c23eec GMT_Call_Module + 444
6   gmt                                 0x00000001045de4c4 main + 1472
7   dyld                                0x0000000183383f28 start + 2236

@PaulWessel PaulWessel added the bug Something isn't working label Jul 18, 2023
@PaulWessel PaulWessel added this to the 6.5.0 milestone Jul 18, 2023
@PaulWessel PaulWessel self-assigned this Jul 18, 2023
PaulWessel added a commit that referenced this issue Jul 19, 2023
PaulWessel added a commit that referenced this issue Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant