I am trying to plot a set of tangential component of receiver function, RFs, data on GMT Version 5.4.3 (r19528), but I got the lines of error message below.
Meanwhile, I had previously used the same script to plot for radial and tangential components of the same station, and it produced the plots.
The scripts to plot the radial component still works well and produce the plots. But, as I ran the scripts again on the tangential components of the RFs again for the same station and other stations, it brought out the error message.
Can you please advise? Thanks.
ERROR: Caught signal number 11 (Segmentation fault) at
/lib/x86_64-linux-gnu/libc.so.6(+0xb1426)[0x7f576c0c1426]
[0x4]
Stack backtrace:
/usr/lib/x86_64-linux-gnu/libgmt.so.5(sig_handler+0x2b1)[0x7f576c64bbf1]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x12980)[0x7f576c413980]
/lib/x86_64-linux-gnu/libc.so.6(+0xb1426)[0x7f576c0c1426]
/lib/x86_64-linux-gnu/libc.so.6(+0x5ab45)[0x7f576c06ab45]
/lib/x86_64-linux-gnu/libc.so.6(_IO_vfprintf+0x192a)[0x7f576c06cdba]
/lib/x86_64-linux-gnu/libc.so.6(__vsnprintf_chk+0xa9)[0x7f576c141ff9]
/usr/lib/x86_64-linux-gnu/libgmt.so.5(GMT_Report+0x1a2)[0x7f576c64fba2]
/usr/lib/x86_64-linux-gnu/gmt/plugins/supplements.so(GMT_pssac+0x2e6b)[0x7f5757570dcb]
/usr/lib/x86_64-linux-gnu/libgmt.so.5(GMT_Call_Module+0xc6)[0x7f576c657296]
gmt(main+0x8ae)[0x5588496c061e]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7)[0x7f576c031bf7]
gmt(_start+0x2a)[0x5588496c089a]
We need more than that. We need a little WORKING example that reproduces the error.Can you isolate one file where the crash occurs and make it available to us?
Of you real want to help, instead of reviving and old thread with a low info post, you should show us a full working example where not removing a header line in file leads to a crash
Excuse me, I had the same problem today and I stumbled upon this post where you didn’t know the answer. I just wanted to help based on solution I found
Here the “full working example”
The file called menegrande.txt with header
year
month
day
hour
minute
sec
rloc
lat
lon
depth
age
nsta
rms
mag
2025
9
4
01
42
31.5
L
9.474
-69.798
14.4
FUN
3
0.4
2.3
2025
9
4
03
22
32.0
L
8.885
-70.759
12.0
FUN
5
0.1
3.6
2025
9
4
03
22
33.5
L
8.915
-70.579
4.2
FUN
7
0.2
3.6
The comand line
gawk ‘{print $9, $8, $10}’ sismos_menegrande.txt | project -C$center -A$azimuth -Fxyzpqrs -W$width -L$length -V > vigia_07_13.tmp
Output Error
ERROR: Caught signal number 11 (Segmentation fault) at
/usr/local/lib/libgmt.so.6(GMT_project+0x1625)[0x7fb3056b8da5]
[0x0]
Stack backtrace:
/usr/local/lib/libgmt.so.6(sig_handler+0x2b1)[0x7fb30549b5e1]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x12980)[0x7fb305255980]
/usr/local/lib/libgmt.so.6(GMT_project+0x1625)[0x7fb3056b8da5]
/usr/local/lib/libgmt.so.6(GMT_Call_Module+0xc6)[0x7fb3054b0ee6]
project(main+0x5fb)[0x557cd11f331b]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7)[0x7fb304e73c87]
project(_start+0x2a)[0x557cd11f383a]
The file without header
2025
9
4
01
42
31.5
L
9.474
-69.798
14.4
FUN
3
0.4
2.3
2025
9
4
03
22
32.0
L
8.885
-70.759
12.0
FUN
5
0.1
3.6
2025
9
4
03
22
33.5
L
8.915
-70.579
4.2
FUN
7
0.2
3.6
2025
9
4
04
26
0.6
L
8.806
-70.720
13.1
FUN
3
0.0
2.5
2025
9
10
04
01
46.9
L
10.753
-70.176
23.7
FUN
7
0.3
2.9
2025
9
12
10
48
15.3
L
8.741
-70.693
17.1
FUN
3
0.1
2.6
2025
9
12
23
41
56.3
L
9.954
-69.923
5.0
FUN
4
0.2
2.4
The same line command
gawk ‘{print $9, $8, $10}’ sismos_menegrande.txt | project -C$center -A$azimuth -Fxyzpqrs -W$width -L$length -V > vigia_07_13.tmp
Ok as there might be an issue. Technically you are expected to do approximately the following:
save example data to a separate file like below. If it is actually the header line that causes the crash, first 10 lines should be more than enough:
gawk '{print $9, $8, $10}' sismos_menegrande.txt | head > data.txt
print out your project call from the original script - with all the script variables substituted by the values, something like below (output redirection does not matter):
if the crash is still there (confirm this by manually running the project call on data.txt): post data.txt and the crashing project call here. You can attach a file by drag-and-dropping it into the post editing window.
maybe a short apology to @Joaquim, cause it’s him who’s gonna be checking and fixing the codes in case there’s an issue.