Discussion:
grdmath problems
Branden Christensen
2013-11-26 02:25:23 UTC
Permalink
Hi all:


I have spent a few days trying to solve this now. Time for some
professional input.

I have been trying to upgrade my ShakeMap installation to Ubuntu 12.04
64-bit. It is stumbling on grdmath.

What would produce grdmath errors like?:

*** buffer overflow detected ***: /usr/lib/gmt/bin/grdmath terminated

&

grdmath: Not a supported grid format


I am running GMT-4.5.6 with GSHHS2.1.1.

Thanks for any input, suggestions, solutions.


Best regards from Panama,


*Branden Christensen*
The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
Take a Virtual Tour: http://www.osop.com.pa/tour

To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
Paul Wessel
2013-11-26 02:33:17 UTC
Permalink
Hi Brandon-

That is not clear, but for starters you should upgrade to 4.5.11 first as we cannot debug obsolete versions.
You could then try again, this time with verbose output from your script so we can see what the commands are.
-p

On Nov 25, 2013, at 4:25 PM, Branden Christensen <***@OSOP.COM.PA> wrote:

> Hi all:
>
>
> I have spent a few days trying to solve this now. Time for some professional input.
>
> I have been trying to upgrade my ShakeMap installation to Ubuntu 12.04 64-bit. It is stumbling on grdmath.
>
> What would produce grdmath errors like?:
>
> *** buffer overflow detected ***: /usr/lib/gmt/bin/grdmath terminated
>
> &
>
> grdmath: Not a supported grid format
>
>
> I am running GMT-4.5.6 with GSHHS2.1.1.
>
> Thanks for any input, suggestions, solutions.
>
>
> Best regards from Panama,
>
>
> Branden Christensen
> The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
> Take a Virtual Tour: http://www.osop.com.pa/tour
> To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu


To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
Branden Christensen
2013-11-26 02:48:08 UTC
Permalink
Paul:


Than you for your immediate response.

Boy that is tough news. If upgrading is anything like downgrading (I spent
the weekend...the whole weekend rolling back to 4.5.1 which I knew worked
with shakemap on Ubuntu 10.04 to test), then I am in for another challenge.
In Ubuntu 12.04, sudo apt-get install gmt gets you 4.5.6. And Ubuntu 12.04
will long long outlast newer versions of Ubuntu which are either
experimental (the October releases) or not LTS (odd years like 2013).

Here is the full output in case you spot something interesting. Otherwise,
I will put my fingers to upgrading:
***@osop-displays2:/opt/shakemap/bin$ ./grind -event 9583161 -xml -qtm
-verbose -lonspan 20.0
Using Borcherdt-style site corrections.
Map bound: -128.900000/-108.900000/26.323000/42.803000
GMT_grd_is_global: no!
GMT_boundcond_param_prep determined edgeinfo: gn = 0, gs = 0, nxp = 0, nyp
= 0
GMT_grd_is_global: no!
/opt/shakemap/bin/../bin/topo2grd 9583161
-128.900000/-108.900000/26.323000/42.803000 0.025/0.025 regime=active
Using /opt/shakemap/dem. Final resolution fixed at 0.025.
/opt/shakemap/dem/dem2grd.pl -128.900000/-108.900000/26.323000/42.803000
tmp.topo2grd.3979 0.025
HELLO WORLD. I am /opt/shakemap/dem/dem2grd.pl
EXTRACTING w140n90.grd W:-128.900000 E:-108.900000 S:40 N:42.8083333333333
/usr/lib/gmt/bin//grdcut -R-128.900000/-108.900000/40/42.8083333333333
w140n90.grd -Gtmp.3980.w140n90
/usr/lib/gmt/bin//grdcut -R-128.900000/-108.900000/40/42.8083333333333
w140n90.grd -Gtmp.3980.w140n90
mv tmp.3980.w140n90 tmp.3980.w140
EXTRACTING w140n40.grd W:-128.900000 E:-108.900000 S:26.3083333333333 N:40
/usr/lib/gmt/bin//grdcut -R-128.900000/-108.900000/26.3083333333333/40
w140n40.grd -Gtmp.3980.w140n40
/usr/lib/gmt/bin//grdcut -R-128.900000/-108.900000/26.3083333333333/40
w140n40.grd -Gtmp.3980.w140n40
/usr/lib/gmt/bin//grdpaste tmp.3980.w140 tmp.3980.w140n40
-Gtmp.3980.w140.tmp
mv tmp.3980.w140.tmp tmp.3980.w140
mv tmp.3980.w140 tmp.topo2grd.3979.grd
Done with pasting.
FINAL BOUNDS: -R-128.900000/-108.900000/26.3083333333333/42.8083333333333
cp tmp.topo2grd.3979.grd tmp.topo2grd.3979.grd.1
/usr/lib/gmt/bin//grdsample tmp.topo2grd.3979.grd.1 -Gtmp.topo2grd.3979.grd
-I0.025
/usr/lib/gmt/bin/grdlandmask -R-129.525000/-108.275000/25.683333/43.433333
-I0.025 -G/opt/shakemap/bin/../data/9583161/output/topo_data.grd.landmask
-Df -N-9999/NaN -F
/usr/lib/gmt/bin/grdsample
/opt/shakemap/bin/../data/9583161/output/topo_data.grd.landmask
-G/opt/shakemap/bin/../data/9583161/output/topo_data.grd.landmask
-R-128.900000/-108.900000/26.3083333333333/42.8083333333333 -I0.025
/usr/lib/gmt/bin/grdmath
/opt/shakemap/bin/../data/9583161/output/topo_data.grd.landmask
/opt/shakemap/bin/../data/9583161/output/topo_data.grd.grad AND =
/opt/shakemap/bin/../data/9583161/output/topo_data.grd.grad.1
Using active tectonic factors.
Using Shake::GMICE::WGRW11 for PGM2MI function
Using Shake::GMICE::WGRW11 for Inverse PGM2MI function
Using Shake::GMPE::Zhao06_intraslab for GMPE
2013-11-25 21:43:02 : grind: Bias -1.31 -0.93
2013-11-25 21:43:02 : grind: 26 amps flagged out this iteration
2013-11-25 21:43:04 : grind: Bias -1.31 -0.92
2013-11-25 21:43:04 : grind: 0 amps flagged out this iteration
Using DefaultIPE for IPE
Using Shake::GMPE::Zhao06_intraslab for GMPE
Using Shake::GMICE::WGRW11 for PGM2MI function
Using Shake::GMICE::WGRW11 for Inverse PGM2MI function
Intensity Bias=-0.69
0 amps flagged out this iteration
**** buffer overflow detected ***: /usr/lib/gmt/bin/grdmath terminated*
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x7fed03aa4807]
/lib/x86_64-linux-gnu/libc.so.6(+0x109700)[0x7fed03aa3700]
/lib/x86_64-linux-gnu/libc.so.6(+0x1085d3)[0x7fed03aa25d3]
/usr/lib/libgmt.so.4(GMT_grd_init+0x106)[0x7fed0407d2e6]
/usr/lib/gmt/bin/grdmath[0x40528b]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7fed039bb76d]
/usr/lib/gmt/bin/grdmath[0x4077a9]
======= Memory map: ========
00400000-0041c000 r-xp 00000000 08:01 5904758
/usr/lib/gmt/bin/grdmath
0061b000-0061c000 r--p 0001b000 08:01 5904758
/usr/lib/gmt/bin/grdmath
0061c000-0061d000 rw-p 0001c000 08:01 5904758
/usr/lib/gmt/bin/grdmath
02452000-02494000 rw-p 00000000 00:00 0
[heap]
7fecfe349000-7fecfe35e000 r-xp 00000000 08:01 11010093
/lib/x86_64-linux-gnu/libgcc_s.so.1
7fecfe35e000-7fecfe55d000 ---p 00015000 08:01 11010093
/lib/x86_64-linux-gnu/libgcc_s.so.1
7fecfe55d000-7fecfe55e000 r--p 00014000 08:01 11010093
/lib/x86_64-linux-gnu/libgcc_s.so.1
7fecfe55e000-7fecfe55f000 rw-p 00015000 08:01 11010093
/lib/x86_64-linux-gnu/libgcc_s.so.1
7fecfe55f000-7fecfe568000 r-xp 00000000 08:01 11010866
/lib/x86_64-linux-gnu/libcrypt-2.15.so
7fecfe568000-7fecfe768000 ---p 00009000 08:01 11010866
/lib/x86_64-linux-gnu/libcrypt-2.15.so
7fecfe768000-7fecfe769000 r--p 00009000 08:01 11010866
/lib/x86_64-linux-gnu/libcrypt-2.15.so
7fecfe769000-7fecfe76a000 rw-p 0000a000 08:01 11010866
/lib/x86_64-linux-gnu/libcrypt-2.15.so
7fecfe76a000-7fecfe798000 rw-p 00000000 00:00 0
7fecfe798000-7fecfe836000 r-xp 00000000 08:01 5786858
/usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
7fecfe836000-7fecfea36000 ---p 0009e000 08:01 5786858
/usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
7fecfea36000-7fecfea38000 r--p 0009e000 08:01 5786858
/usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
7fecfea38000-7fecfea3a000 rw-p 000a0000 08:01 5786858
/usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
7fecfea3a000-7fecfea3b000 rw-p 00000000 00:00 0
7fecfea3b000-7fecfea80000 r-xp 00000000 08:01 5773595
/usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
7fecfea80000-7fecfec80000 ---p 00045000 08:01 5773595
/usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
7fecfec80000-7fecfec82000 r--p 00045000 08:01 5773595
/usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
7fecfec82000-7fecfec84000 rw-p 00047000 08:01 5773595
/usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
7fecfec84000-7fecfec85000 rw-p 00000000 00:00 0
7fecfec85000-7fecfec93000 r-xp 00000000 08:01 5773589
/usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
7fecfec93000-7fecfee92000 ---p 0000e000 08:01 5773589
/usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
7fecfee92000-7fecfee93000 r--p 0000d000 08:01 5773589
/usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
7fecfee93000-7fecfee94000 rw-p 0000e000 08:01 5773589
/usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
7fecfee94000-7fecfeebc000 r-xp 00000000 08:01 5773592
/usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
7fecfeebc000-7fecff0bb000 ---p 00028000 08:01 5773592
/usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
7fecff0bb000-7fecff0bc000 r--p 00027000 08:01 5773592
/usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
7fecff0bc000-7fecff0bd000 rw-p 00028000 08:01 5773592
/usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
7fecff0bd000-7fecff0c0000 r-xp 00000000 08:01 11010397
/lib/x86_64-linux-gnu/libkeyutils.so.1.4
7fecff0c0000-7fecff2bf000 ---p 00003000 08:01 11010397
/lib/x86_64-linux-gnu/libkeyutils.so.1.4
7fecff2bf000-7fecff2c0000 r--p 00002000 08:01 11010397
/lib/x86_64-linux-gnu/libkeyutils.so.1.4
7fecff2c0000-7fecff2c1000 rw-p 00003000 08:01 11010397
/lib/x86_64-linux-gnu/libkeyutils.so.1.4
7fecff2c1000-7fecff2d5000 r-xp 00000000 08:01 5773571
/usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
7fecff2d5000-7fecff4d4000 ---p 00014000 08:01 5773571
/usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
7fecff4d4000-7fecff4d5000 r--p 00013000 08:01 5773571
/usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
7fecff4d5000-7fecff4d6000 rw-p 00014000 08:01 5773571
/usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
7fecff4d6000-7fecff507000 r-xp 00000000 08:01 5773586
/usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
7fecff507000-7fecff707000 ---p 00031000 08:01 5773586
/usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
7fecff707000-7fecff708000 r--p 00031000 08:01 5773586
/usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
7fecff708000-7fecff709000 rw-p 00032000 08:01 5773586
/usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
7fecff709000-7fecff70a000 rw-p 00000000 00:00 0
7fecff70a000-7fecff7a5000 r-xp 00000000 08:01 5773574
/usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
7fecff7a5000-7fecff9a4000 ---p 0009b000 08:01 5773574
/usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
7fecff9a4000-7fecff9a6000 r--p 0009a000 08:01 5773574
/usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
7fecff9a6000-7fecff9aa000 rw-p 0009c000 08:01 5773574
/usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
7fecff9aa000-7fecffa2a000 r-xp 00000000 08:01 5773598
/usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
7fecffa2a000-7fecffc2a000 ---p 00080000 08:01 5773598
/usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
7fecffc2a000-7fecffc2c000 r--p 00080000 08:01 5773598
/usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
7fecffc2c000-7fecffc30000 rw-p 00082000 08:01 5773598
/usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
7fecffc30000-7fecffc36000 r-xp 00000000 08:01 5773601
/usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
7fecffc36000-7fecffe35000 ---p 00006000 08:01 5773601
/usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
7fecffe35000-7fecffe36000 r--p 00005000 08:01 5773601
/usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
7fecffe36000-7fecffe37000 rw-p 00006000 08:01 5773601
/usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
7fecffe37000-7fecffe39000 r-xp 00000000 08:01 11010847
/lib/x86_64-linux-gnu/libdl-2.15.so
7fecffe39000-7fed00039000 ---p 00002000 08:01 11010847
/lib/x86_64-linux-gnu/libdl-2.15.so
7fed00039000-7fed0003a000 r--p 00002000 08:01 11010847
/lib/x86_64-linux-gnu/libdl-2.15.so
7fed0003a000-7fed0003b000 rw-p 00003000 08:01 11010847
/lib/x86_64-linux-gnu/libdl-2.15.so
7fed0003b000-7fed0003e000 r-xp 00000000 08:01 11010342
/lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
7fed0003e000-7fed0023d000 ---p 00003000 08:01 11010342
/lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
7fed0023d000-7fed0023e000 r--p 00002000 08:01 11010342
/lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
7fed0023e000-7fed0023f000 rw-p 00003000 08:01 11010342
/lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
7fed0023f000-7fed00250000 r-xp 00000000 08:01 5773577
/usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
7fed00250000-7fed0044f000 ---p 00011000 08:01 5773577
/usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
7fed0044f000-7fed00450000 r--p 00010000 08:01 5773577
/usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
7fed00450000-7fed00451000 rw-p 00011000 08:01 5773577
/usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
7fed00451000-7fed00461000 r-xp 00000000 08:01 5771972
/usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.12
7fed00461000-7fed00660000 ---p 00010000 08:01 5771972
/usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.12
7fed00660000-7fed00661000 r--p 0000f000 08:01 5771972
/usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.12
7fed00661000-7fed00662000 rw-p 00010000 08:01 5771972
/usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.12
7fed00662000-7fed00669000 r-xp 00000000 08:01 5772636
/usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
7fed00669000-7fed00868000 ---p 00007000 08:01 5772636
/usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
7fed00868000-7fed00869000 r--p 00006000 08:01 5772636
/usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
7fed00869000-7fed0086a000 rw-p 00007000 08:01 5772636
/usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
7fed0086a000-7fed0086d000 r-xp 00000000 08:01 11010057
/lib/x86_64-linux-gnu/libcom_err.so.2.1
7fed0086d000-7fed00a6c000 ---p 00003000 08:01 11010057
/lib/x86_64-linux-gnu/libcom_err.so.2.1
7fed00a6c000-7fed00a6d000 r--p 00002000 08:01 11010057
/lib/x86_64-linux-gnu/libcom_err.so.2.1
7fed00a6d000-7fed00a6e000 rw-p 00003000 08:01 11010057
/lib/x86_64-linux-gnu/libcom_err.so.2.1
7fed00a6e000-7fed00a93000 r-xp 00000000 08:01 5773583
/usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
7fed00a93000-7fed00c93000 ---p 00025000 08:01 5773583
/usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
7fed00c93000-7fed00c94000 r--p 00025000 08:01 5773583
/usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
7fed00c94000-7fed00c95000 rw-p 00026000 08:01 5773583
/usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
7fed00c95000-7fed00c96000 rw-p 00000000 00:00 0
7fed00c96000-7fed00d5a000 r-xp 00000000 08:01 5786863
/usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
7fed00d5a000-7fed00f59000 ---p 000c4000 08:01 5786863
/usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
7fed00f59000-7fed00f63000 r--p 000c3000 08:01 5786863
/usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
7fed00f63000-7fed00f64000 rw-p 000cd000 08:01 5786863
/usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
7fed00f64000-7fed00f9e000 r-xp 00000000 08:01 5773604
/usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
7fed00f9e000-7fed0119e000 ---p 0003a000 08:01 5773604
/usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
7fed0119e000-7fed0119f000 r--p 0003a000 08:01 5773604
/usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
7fed0119f000-7fed011a2000 rw-p 0003b000 08:01 5773604
/usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
7fed011a2000-7fed011bc000 r-xp 00000000 08:01 5773607
/usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
7fed011bc000-7fed013bb000 ---p 0001a000 08:01 5773607
/usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
7fed013bb000-7fed013bc000 r--p 00019000 08:01 5773607
/usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
7fed013bc000-7fed013bd000 rw-p 0001a000 08:01 5773607
/usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
7fed013bd000-7fed013d5000 r-xp 00000000 08:01 11010858
/lib/x86_64-linux-gnu/libresolv-2.15.so
7fed013d5000-7fed015d5000 ---p 00018000 08:01 11010858
/lib/x86_64-linux-gnu/libresolv-2.15.so
7fed015d5000-7fed015d6000 r--p 00018000 08:01 11010858
/lib/x86_64-linux-gnu/libresolv-2.15.so
7fed015d6000-7fed015d7000 rw-p 00019000 08:01 11010858
/lib/x86_64-linux-gnu/libresolv-2.15.so
7fed015d7000-7fed015d9000 rw-p 00000000 00:00 0
7fed015d9000-7fed015f1000 r-xp 00000000 08:01 11010853
/lib/x86_64-linux-gnu/libpthread-2.15.so
7fed015f1000-7fed017f0000 ---p 00018000 08:01 11010853
/lib/x86_64-linux-gnu/libpthread-2.15.so
7fed017f0000-7fed017f1000 r--p 00017000 08:01 11010853
/lib/x86_64-linux-gnu/libpthread-2.15.so
7fed017f1000-7fed017f2000 rw-p 00018000 08:01 11010853
/lib/x86_64-linux-gnu/libpthread-2.15.so
7fed017f2000-7fed017f6000 rw-p 00000000 00:00 0
7fed017f6000-7fed0180e000 r-xp 00000000 08:01 5773616
/usr/lib/x86_64-linux-gnu/librtmp.so.0
7fed0180e000-7fed01a0e000 ---p 00018000 08:01 5773616
/usr/lib/x86_64-linux-gnu/librtmp.so.0
7fed01a0e000-7fed01a0f000 r--p 00018000 08:01 5773616
/usr/lib/x86_64-linux-gnu/librtmp.so.0
7fed01a0f000-7fed01a10000 rw-p 00019000 08:01 5773616
/usr/lib/x86_64-linux-gnu/librtmp.so.0
7fed01a10000-7fed01a8a000 r-xp 00000000 08:01 11010063
/lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
7fed01a8a000-7fed01c8a000 ---p 0007a000 08:01 11010063
/lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
7fed01c8a000-7fed01c8b000 r--p 0007a000 08:01 11010063
/lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
7fed01c8b000-7fed01c8e000 rw-p 0007b000 08:01 11010063
/lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
7fed01c8e000-7fed01d42000 r-xp 00000000 08:01 5786861
/usr/lib/x86_64-linux-gnu/libgnutls.so.26.21.8
7fed01d42000-7fed01f42000 ---p 000b4000 08:01 5786861
/usr/lib/x86_64-linux-gnu/libgnutls.so.26.21.8
7fed01f42000-7fed01f48000 r--p 000b4000 08:01 5786861
/usr/lib/x86_64-linux-gnu/libgnutls.so.26.21.8
7fed01f48000-7fed01f49000 rw-p 000ba000 08:01 5786861
/usr/lib/x86_64-linux-gnu/libgnutls.so.26.21.8
7fed01f49000-7fed01f4a000 rw-p 00000000 00:00 0
7fed01f4a000-7fed01f60000 r-xp 00000000 08:01 11010218
/lib/x86_64-linux-gnu/libz.so.1.2.3.4
7fed01f60000-7fed0215f000 ---p 00016000 08:01 11010218
/lib/x86_64-linux-gnu/libz.so.1.2.3.4
7fed0215f000-7fed02160000 r--p 00015000 08:01 11010218
/lib/x86_64-linux-gnu/libz.so.1.2.3.4
7fed02160000-7fed02161000 rw-p 00016000 08:01 11010218
/lib/x86_64-linux-gnu/libz.so.1.2.3.4
7fed02161000-7fed0219c000 r-xp 00000000 08:01 5772630
/usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
7fed0219c000-7fed0239c000 ---p 0003b000 08:01 5772630
/usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
7fed0239c000-7fed0239d000 r--p 0003b000 08:01 5772630
/usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
7fed0239d000-7fed0239f000 rw-p 0003c000 08:01 5772630
/usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
7fed0239f000-7fed023a6000 r-xp 00000000 08:01 11010856
/lib/x86_64-linux-gnu/librt-2.15.so
7fed023a6000-7fed025a5000 ---p 00007000 08:01 11010856
/lib/x86_64-linux-gnu/librt-2.15.so
7fed025a5000-7fed025a6000 r--p 00006000 08:01 11010856
/lib/x86_64-linux-gnu/librt-2.15.so
7fed025a6000-7fed025a7000 rw-p 00007000 08:01 11010856
/lib/x86_64-linux-gnu/librt-2.15.so
7fed025a7000-7fed025f2000 r-xp 00000000 08:01 5772626
/usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.8.1
7fed025f2000-7fed027f1000 ---p 0004b000 08:01 5772626
/usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.8.1
7fed027f1000-7fed027f3000 r--p 0004a000 08:01 5772626
/usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.8.1
7fed027f3000-7fed027f4000 rw-p 0004c000 08:01 5772626
/usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.8.1
7fed027f4000-7fed027f6000 rw-p 00000000 00:00 0
7fed027f6000-7fed02803000 r-xp 00000000 08:01 5786866
/usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.8.1
7fed02803000-7fed02a02000 ---p 0000d000 08:01 5786866
/usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.8.1
7fed02a02000-7fed02a03000 r--p 0000c000 08:01 5786866
/usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.8.1
7fed02a03000-7fed02a04000 rw-p 0000d000 08:01 5786866
/usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.8.1
7fed02a04000-7fed02a36000 r-xp 00000000 08:01 5773087
/usr/lib/x86_64-linux-gnu/libidn.so.11.6.6
7fed02a36000-7fed02c35000 ---p 00032000 08:01 5773087
/usr/lib/x86_64-linux-gnu/libidn.so.11.6.6
7fed02c35000-7fed02c36000 r--p 00031000 08:01 5773087
/usr/lib/x86_64-linux-gnu/libidn.so.11.6.6
7fed02c36000-7fed02c37000 rw-p 00032000 08:01 5773087
/usr/lib/x86_64-linux-gnu/libidn.so.11.6.6
7fed02c37000-7fed02fc9000 r-xp 00000000 08:01 5786767
/usr/lib/libhdf5.so.6.0.3
7fed02fc9000-7fed031c8000 ---p 00392000 08:01 5786767
/usr/lib/libhdf5.so.6.0.3
7fed031c8000-7fed031cd000 r--p 00391000 08:01 5786767
/usr/lib/libhdf5.so.6.0.3
7fed031cd000-7fed031d1000 rw-p 00396000 08:01 5786767
/usr/lib/libhdf5.so.6.0.3
7fed031d1000-7fed031d2000 rw-p 00000000 00:00 0
7fed031d2000-7fed031f2000 r-xp 00000000 08:01 5786770
/usr/lib/libhdf5_hl.so.6.0.3
7fed031f2000-7fed033f1000 ---p 00020000 08:01 5786770
/usr/lib/libhdf5_hl.so.6.0.3
7fed033f1000-7fed033f2000 r--p 0001f000 08:01 5786770
/usr/lib/libhdf5_hl.so.6.0.3
7fed033f2000-7fed033f3000 rw-p 00020000 08:01 5786770
/usr/lib/libhdf5_hl.so.6.0.3
7fed033f3000-7fed03404000 rw-p 00000000 00:00 0
7fed03404000-7fed03459000 r-xp 00000000 08:01 5773609
/usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.2.0
7fed03459000-7fed03659000 ---p 00055000 08:01 5773609
/usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.2.0
7fed03659000-7fed0365b000 r--p 00055000 08:01 5773609
/usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.2.0
7fed0365b000-7fed0365c000 rw-p 00057000 08:01 5773609
/usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.2.0
7fed0365c000-7fed0373f000 r-xp 00000000 08:01 5789585
/usr/lib/libnetcdf.so.6.0.0
7fed0373f000-7fed0393f000 ---p 000e3000 08:01 5789585
/usr/lib/libnetcdf.so.6.0.0
7fed0393f000-7fed0398d000 r--p 000e3000 08:01 5789585
/usr/lib/libnetcdf.so.6.0.0
7fed0398d000-7fed0398f000 rw-p 00131000 08:01 5789585
/usr/lib/libnetcdf.so.6.0.0
7fed0398f000-7fed0399a000 rw-p 00000000 00:00 0
7fed0399a000-7fed03b4f000 r-xp 00000000 08:01 11010850
/lib/x86_64-linux-gnu/libc-2.15.so
7fed03b4f000-7fed03d4e000 ---p 001b5000 08:01 11010850
/lib/x86_64-linux-gnu/libc-2.15.so
7fed03d4e000-7fed03d52000 r--p 001b4000 08:01 11010850
/lib/x86_64-linux-gnu/libc-2.15.so
7fed03d52000-7fed03d54000 rw-p 001b8000 08:01 11010850
/lib/x86_64-linux-gnu/libc-2.15.so
7fed03d54000-7fed03d59000 rw-p 00000000 00:00 0
7fed03d59000-7fed03e54000 r-xp 00000000 08:01 11010864
/lib/x86_64-linux-gnu/libm-2.15.so
7fed03e54000-7fed04053000 ---p 000fb000 08:01 11010864
/lib/x86_64-linux-gnu/libm-2.15.so
7fed04053000-7fed04054000 r--p 000fa000 08:01 11010864
/lib/x86_64-linux-gnu/libm-2.15.so
7fed04054000-7fed04055000 rw-p 000fb000 08:01 11010864
/lib/x86_64-linux-gnu/libm-2.15.so
7fed04055000-7fed04116000 r-xp 00000000 08:01 5789952
/usr/lib/libgmt.so.4
7fed04116000-7fed04316000 ---p 000c1000 08:01 5789952
/usr/lib/libgmt.so.4
7fed04316000-7fed04317000 r--p 000c1000 08:01 5789952
/usr/lib/libgmt.so.4
7fed04317000-7fed0433c000 rw-p 000c2000 08:01 5789952
/usr/lib/libgmt.so.4
7fed0433c000-7fed04368000 rw-p 00000000 00:00 0
7fed04368000-7fed0438a000 r-xp 00000000 08:01 11010876
/lib/x86_64-linux-gnu/ld-2.15.so
7fed04557000-7fed0456a000 rw-p 00000000 00:00 0
7fed04587000-7fed0458a000 rw-p 00000000 00:00 0
7fed0458a000-7fed0458b000 r--p 00022000 08:01 11010876
/lib/x86_64-linux-gnu/ld-2.15.so
7fed0458b000-7fed0458d000 rw-p 00023000 08:01 11010876
/lib/x86_64-linux-gnu/ld-2.15.so
7fff0b75b000-7fff0b78f000 rw-p 00000000 00:00 0
[stack]
7fff0b7ff000-7fff0b800000 r-xp 00000000 00:00 0
[vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0
[vsyscall]
*grdmath: Not a supported grid format
[/opt/shakemap/bin/../data/9583161/output/MGU7BgDk82.grd]*
**** buffer overflow detected ***: /usr/lib/gmt/bin/grdmath terminated*
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x7f898eaa2807]
/lib/x86_64-linux-gnu/libc.so.6(+0x109700)[0x7f898eaa1700]
/lib/x86_64-linux-gnu/libc.so.6(+0x1085d3)[0x7f898eaa05d3]
/usr/lib/libgmt.so.4(GMT_grd_init+0x106)[0x7f898f07b2e6]
/usr/lib/gmt/bin/grdmath[0x40528b]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7f898e9b976d]
/usr/lib/gmt/bin/grdmath[0x4077a9]
======= Memory map: ========
00400000-0041c000 r-xp 00000000 08:01 5904758
/usr/lib/gmt/bin/grdmath
0061b000-0061c000 r--p 0001b000 08:01 5904758
/usr/lib/gmt/bin/grdmath
0061c000-0061d000 rw-p 0001c000 08:01 5904758
/usr/lib/gmt/bin/grdmath
019b7000-019f9000 rw-p 00000000 00:00 0
[heap]
7f8989347000-7f898935c000 r-xp 00000000 08:01 11010093
/lib/x86_64-linux-gnu/libgcc_s.so.1
7f898935c000-7f898955b000 ---p 00015000 08:01 11010093
/lib/x86_64-linux-gnu/libgcc_s.so.1
7f898955b000-7f898955c000 r--p 00014000 08:01 11010093
/lib/x86_64-linux-gnu/libgcc_s.so.1
7f898955c000-7f898955d000 rw-p 00015000 08:01 11010093
/lib/x86_64-linux-gnu/libgcc_s.so.1
7f898955d000-7f8989566000 r-xp 00000000 08:01 11010866
/lib/x86_64-linux-gnu/libcrypt-2.15.so
7f8989566000-7f8989766000 ---p 00009000 08:01 11010866
/lib/x86_64-linux-gnu/libcrypt-2.15.so
7f8989766000-7f8989767000 r--p 00009000 08:01 11010866
/lib/x86_64-linux-gnu/libcrypt-2.15.so
7f8989767000-7f8989768000 rw-p 0000a000 08:01 11010866
/lib/x86_64-linux-gnu/libcrypt-2.15.so
7f8989768000-7f8989796000 rw-p 00000000 00:00 0
7f8989796000-7f8989834000 r-xp 00000000 08:01 5786858
/usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
7f8989834000-7f8989a34000 ---p 0009e000 08:01 5786858
/usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
7f8989a34000-7f8989a36000 r--p 0009e000 08:01 5786858
/usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
7f8989a36000-7f8989a38000 rw-p 000a0000 08:01 5786858
/usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
7f8989a38000-7f8989a39000 rw-p 00000000 00:00 0
7f8989a39000-7f8989a7e000 r-xp 00000000 08:01 5773595
/usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
7f8989a7e000-7f8989c7e000 ---p 00045000 08:01 5773595
/usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
7f8989c7e000-7f8989c80000 r--p 00045000 08:01 5773595
/usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
7f8989c80000-7f8989c82000 rw-p 00047000 08:01 5773595
/usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
7f8989c82000-7f8989c83000 rw-p 00000000 00:00 0
7f8989c83000-7f8989c91000 r-xp 00000000 08:01 5773589
/usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
7f8989c91000-7f8989e90000 ---p 0000e000 08:01 5773589
/usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
7f8989e90000-7f8989e91000 r--p 0000d000 08:01 5773589
/usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
7f8989e91000-7f8989e92000 rw-p 0000e000 08:01 5773589
/usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
7f8989e92000-7f8989eba000 r-xp 00000000 08:01 5773592
/usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
7f8989eba000-7f898a0b9000 ---p 00028000 08:01 5773592
/usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
7f898a0b9000-7f898a0ba000 r--p 00027000 08:01 5773592
/usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
7f898a0ba000-7f898a0bb000 rw-p 00028000 08:01 5773592
/usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
7f898a0bb000-7f898a0be000 r-xp 00000000 08:01 11010397
/lib/x86_64-linux-gnu/libkeyutils.so.1.4
7f898a0be000-7f898a2bd000 ---p 00003000 08:01 11010397
/lib/x86_64-linux-gnu/libkeyutils.so.1.4
7f898a2bd000-7f898a2be000 r--p 00002000 08:01 11010397
/lib/x86_64-linux-gnu/libkeyutils.so.1.4
7f898a2be000-7f898a2bf000 rw-p 00003000 08:01 11010397
/lib/x86_64-linux-gnu/libkeyutils.so.1.4
7f898a2bf000-7f898a2d3000 r-xp 00000000 08:01 5773571
/usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
7f898a2d3000-7f898a4d2000 ---p 00014000 08:01 5773571
/usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
7f898a4d2000-7f898a4d3000 r--p 00013000 08:01 5773571
/usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
7f898a4d3000-7f898a4d4000 rw-p 00014000 08:01 5773571
/usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
7f898a4d4000-7f898a505000 r-xp 00000000 08:01 5773586
/usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
7f898a505000-7f898a705000 ---p 00031000 08:01 5773586
/usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
7f898a705000-7f898a706000 r--p 00031000 08:01 5773586
/usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
7f898a706000-7f898a707000 rw-p 00032000 08:01 5773586
/usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
7f898a707000-7f898a708000 rw-p 00000000 00:00 0
7f898a708000-7f898a7a3000 r-xp 00000000 08:01 5773574
/usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
7f898a7a3000-7f898a9a2000 ---p 0009b000 08:01 5773574
/usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
7f898a9a2000-7f898a9a4000 r--p 0009a000 08:01 5773574
/usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
7f898a9a4000-7f898a9a8000 rw-p 0009c000 08:01 5773574
/usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
7f898a9a8000-7f898aa28000 r-xp 00000000 08:01 5773598
/usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
7f898aa28000-7f898ac28000 ---p 00080000 08:01 5773598
/usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
7f898ac28000-7f898ac2a000 r--p 00080000 08:01 5773598
/usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
7f898ac2a000-7f898ac2e000 rw-p 00082000 08:01 5773598
/usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
7f898ac2e000-7f898ac34000 r-xp 00000000 08:01 5773601
/usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
7f898ac34000-7f898ae33000 ---p 00006000 08:01 5773601
/usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
7f898ae33000-7f898ae34000 r--p 00005000 08:01 5773601
/usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
7f898ae34000-7f898ae35000 rw-p 00006000 08:01 5773601
/usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
7f898ae35000-7f898ae37000 r-xp 00000000 08:01 11010847
/lib/x86_64-linux-gnu/libdl-2.15.so
7f898ae37000-7f898b037000 ---p 00002000 08:01 11010847
/lib/x86_64-linux-gnu/libdl-2.15.so
7f898b037000-7f898b038000 r--p 00002000 08:01 11010847
/lib/x86_64-linux-gnu/libdl-2.15.so
7f898b038000-7f898b039000 rw-p 00003000 08:01 11010847
/lib/x86_64-linux-gnu/libdl-2.15.so
7f898b039000-7f898b03c000 r-xp 00000000 08:01 11010342
/lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
7f898b03c000-7f898b23b000 ---p 00003000 08:01 11010342
/lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
7f898b23b000-7f898b23c000 r--p 00002000 08:01 11010342
/lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
7f898b23c000-7f898b23d000 rw-p 00003000 08:01 11010342
/lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
7f898b23d000-7f898b24e000 r-xp 00000000 08:01 5773577
/usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
7f898b24e000-7f898b44d000 ---p 00011000 08:01 5773577
/usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
7f898b44d000-7f898b44e000 r--p 00010000 08:01 5773577
/usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
7f898b44e000-7f898b44f000 rw-p 00011000 08:01 5773577
/usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
7f898b44f000-7f898b45f000 r-xp 00000000 08:01 5771972
/usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.12
7f898b45f000-7f898b65e000 ---p 00010000 08:01 5771972
/usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.12
7f898b65e000-7f898b65f000 r--p 0000f000 08:01 5771972
/usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.12
7f898b65f000-7f898b660000 rw-p 00010000 08:01 5771972
/usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.12
7f898b660000-7f898b667000 r-xp 00000000 08:01 5772636
/usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
7f898b667000-7f898b866000 ---p 00007000 08:01 5772636
/usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
7f898b866000-7f898b867000 r--p 00006000 08:01 5772636
/usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
7f898b867000-7f898b868000 rw-p 00007000 08:01 5772636
/usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
7f898b868000-7f898b86b000 r-xp 00000000 08:01 11010057
/lib/x86_64-linux-gnu/libcom_err.so.2.1
7f898b86b000-7f898ba6a000 ---p 00003000 08:01 11010057
/lib/x86_64-linux-gnu/libcom_err.so.2.1
7f898ba6a000-7f898ba6b000 r--p 00002000 08:01 11010057
/lib/x86_64-linux-gnu/libcom_err.so.2.1
7f898ba6b000-7f898ba6c000 rw-p 00003000 08:01 11010057
/lib/x86_64-linux-gnu/libcom_err.so.2.1
7f898ba6c000-7f898ba91000 r-xp 00000000 08:01 5773583
/usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
7f898ba91000-7f898bc91000 ---p 00025000 08:01 5773583
/usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
7f898bc91000-7f898bc92000 r--p 00025000 08:01 5773583
/usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
7f898bc92000-7f898bc93000 rw-p 00026000 08:01 5773583
/usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
7f898bc93000-7f898bc94000 rw-p 00000000 00:00 0
7f898bc94000-7f898bd58000 r-xp 00000000 08:01 5786863
/usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
7f898bd58000-7f898bf57000 ---p 000c4000 08:01 5786863
/usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
7f898bf57000-7f898bf61000 r--p 000c3000 08:01 5786863
/usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
7f898bf61000-7f898bf62000 rw-p 000cd000 08:01 5786863
/usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
7f898bf62000-7f898bf9c000 r-xp 00000000 08:01 5773604
/usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
7f898bf9c000-7f898c19c000 ---p 0003a000 08:01 5773604
/usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
7f898c19c000-7f898c19d000 r--p 0003a000 08:01 5773604
/usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
7f898c19d000-7f898c1a0000 rw-p 0003b000 08:01 5773604
/usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
7f898c1a0000-7f898c1ba000 r-xp 00000000 08:01 5773607
/usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
7f898c1ba000-7f898c3b9000 ---p 0001a000 08:01 5773607
/usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
7f898c3b9000-7f898c3ba000 r--p 00019000 08:01 5773607
/usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
7f898c3ba000-7f898c3bb000 rw-p 0001a000 08:01 5773607
/usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
7f898c3bb000-7f898c3d3000 r-xp 00000000 08:01 11010858
/lib/x86_64-linux-gnu/libresolv-2.15.so
7f898c3d3000-7f898c5d3000 ---p 00018000 08:01 11010858
/lib/x86_64-linux-gnu/libresolv-2.15.so
7f898c5d3000-7f898c5d4000 r--p 00018000 08:01 11010858
/lib/x86_64-linux-gnu/libresolv-2.15.so
7f898c5d4000-7f898c5d5000 rw-p 00019000 08:01 11010858
/lib/x86_64-linux-gnu/libresolv-2.15.so
7f898c5d5000-7f898c5d7000 rw-p 00000000 00:00 0
7f898c5d7000-7f898c5ef000 r-xp 00000000 08:01 11010853
/lib/x86_64-linux-gnu/libpthread-2.15.so
7f898c5ef000-7f898c7ee000 ---p 00018000 08:01 11010853
/lib/x86_64-linux-gnu/libpthread-2.15.so
7f898c7ee000-7f898c7ef000 r--p 00017000 08:01 11010853
/lib/x86_64-linux-gnu/libpthread-2.15.so
7f898c7ef000-7f898c7f0000 rw-p 00018000 08:01 11010853
/lib/x86_64-linux-gnu/libpthread-2.15.so
7f898c7f0000-7f898c7f4000 rw-p 00000000 00:00 0
7f898c7f4000-7f898c80c000 r-xp 00000000 08:01 5773616
/usr/lib/x86_64-linux-gnu/librtmp.so.0
7f898c80c000-7f898ca0c000 ---p 00018000 08:01 5773616
/usr/lib/x86_64-linux-gnu/librtmp.so.0
7f898ca0c000-7f898ca0d000 r--p 00018000 08:01 5773616
/usr/lib/x86_64-linux-gnu/librtmp.so.0
7f898ca0d000-7f898ca0e000 rw-p 00019000 08:01 5773616
/usr/lib/x86_64-linux-gnu/librtmp.so.0
7f898ca0e000-7f898ca88000 r-xp 00000000 08:01 11010063
/lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
7f898ca88000-7f898cc88000 ---p 0007a000 08:01 11010063
/lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
7f898cc88000-7f898cc89000 r--p 0007a000 08:01 11010063
/lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
7f898cc89000-7f898cc8c000 rw-p 0007b000 08:01 11010063
/lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
7f898cc8c000-7f898cd40000 r-xp 00000000 08:01 5786861
/usr/lib/x86_64-linux-gnu/libgnutls.so.26.21.8
7f898cd40000-7f898cf40000 ---p 000b4000 08:01 5786861
/usr/lib/x86_64-linux-gnu/libgnutls.so.26.21.8
7f898cf40000-7f898cf46000 r--p 000b4000 08:01 5786861
/usr/lib/x86_64-linux-gnu/libgnutls.so.26.21.8
7f898cf46000-7f898cf47000 rw-p 000ba000 08:01 5786861
/usr/lib/x86_64-linux-gnu/libgnutls.so.26.21.8
7f898cf47000-7f898cf48000 rw-p 00000000 00:00 0
7f898cf48000-7f898cf5e000 r-xp 00000000 08:01 11010218
/lib/x86_64-linux-gnu/libz.so.1.2.3.4
7f898cf5e000-7f898d15d000 ---p 00016000 08:01 11010218
/lib/x86_64-linux-gnu/libz.so.1.2.3.4
7f898d15d000-7f898d15e000 r--p 00015000 08:01 11010218
/lib/x86_64-linux-gnu/libz.so.1.2.3.4
7f898d15e000-7f898d15f000 rw-p 00016000 08:01 11010218
/lib/x86_64-linux-gnu/libz.so.1.2.3.4
7f898d15f000-7f898d19a000 r-xp 00000000 08:01 5772630
/usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
7f898d19a000-7f898d39a000 ---p 0003b000 08:01 5772630
/usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
7f898d39a000-7f898d39b000 r--p 0003b000 08:01 5772630
/usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
7f898d39b000-7f898d39d000 rw-p 0003c000 08:01 5772630
/usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
7f898d39d000-7f898d3a4000 r-xp 00000000 08:01 11010856
/lib/x86_64-linux-gnu/librt-2.15.so
7f898d3a4000-7f898d5a3000 ---p 00007000 08:01 11010856
/lib/x86_64-linux-gnu/librt-2.15.so
7f898d5a3000-7f898d5a4000 r--p 00006000 08:01 11010856
/lib/x86_64-linux-gnu/librt-2.15.so
7f898d5a4000-7f898d5a5000 rw-p 00007000 08:01 11010856
/lib/x86_64-linux-gnu/librt-2.15.so
7f898d5a5000-7f898d5f0000 r-xp 00000000 08:01 5772626
/usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.8.1
7f898d5f0000-7f898d7ef000 ---p 0004b000 08:01 5772626
/usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.8.1
7f898d7ef000-7f898d7f1000 r--p 0004a000 08:01 5772626
/usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.8.1
7f898d7f1000-7f898d7f2000 rw-p 0004c000 08:01 5772626
/usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.8.1
7f898d7f2000-7f898d7f4000 rw-p 00000000 00:00 0
7f898d7f4000-7f898d801000 r-xp 00000000 08:01 5786866
/usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.8.1
7f898d801000-7f898da00000 ---p 0000d000 08:01 5786866
/usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.8.1
7f898da00000-7f898da01000 r--p 0000c000 08:01 5786866
/usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.8.1
7f898da01000-7f898da02000 rw-p 0000d000 08:01 5786866
/usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.8.1
7f898da02000-7f898da34000 r-xp 00000000 08:01 5773087
/usr/lib/x86_64-linux-gnu/libidn.so.11.6.6
7f898da34000-7f898dc33000 ---p 00032000 08:01 5773087
/usr/lib/x86_64-linux-gnu/libidn.so.11.6.6
7f898dc33000-7f898dc34000 r--p 00031000 08:01 5773087
/usr/lib/x86_64-linux-gnu/libidn.so.11.6.6
7f898dc34000-7f898dc35000 rw-p 00032000 08:01 5773087
/usr/lib/x86_64-linux-gnu/libidn.so.11.6.6
7f898dc35000-7f898dfc7000 r-xp 00000000 08:01 5786767
/usr/lib/libhdf5.so.6.0.3
7f898dfc7000-7f898e1c6000 ---p 00392000 08:01 5786767
/usr/lib/libhdf5.so.6.0.3
7f898e1c6000-7f898e1cb000 r--p 00391000 08:01 5786767
/usr/lib/libhdf5.so.6.0.3
7f898e1cb000-7f898e1cf000 rw-p 00396000 08:01 5786767
/usr/lib/libhdf5.so.6.0.3
7f898e1cf000-7f898e1d0000 rw-p 00000000 00:00 0
7f898e1d0000-7f898e1f0000 r-xp 00000000 08:01 5786770
/usr/lib/libhdf5_hl.so.6.0.3
7f898e1f0000-7f898e3ef000 ---p 00020000 08:01 5786770
/usr/lib/libhdf5_hl.so.6.0.3
7f898e3ef000-7f898e3f0000 r--p 0001f000 08:01 5786770
/usr/lib/libhdf5_hl.so.6.0.3
7f898e3f0000-7f898e3f1000 rw-p 00020000 08:01 5786770
/usr/lib/libhdf5_hl.so.6.0.3
7f898e3f1000-7f898e402000 rw-p 00000000 00:00 0
7f898e402000-7f898e457000 r-xp 00000000 08:01 5773609
/usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.2.0
7f898e457000-7f898e657000 ---p 00055000 08:01 5773609
/usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.2.0
7f898e657000-7f898e659000 r--p 00055000 08:01 5773609
/usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.2.0
7f898e659000-7f898e65a000 rw-p 00057000 08:01 5773609
/usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.2.0
7f898e65a000-7f898e73d000 r-xp 00000000 08:01 5789585
/usr/lib/libnetcdf.so.6.0.0
7f898e73d000-7f898e93d000 ---p 000e3000 08:01 5789585
/usr/lib/libnetcdf.so.6.0.0
7f898e93d000-7f898e98b000 r--p 000e3000 08:01 5789585
/usr/lib/libnetcdf.so.6.0.0
7f898e98b000-7f898e98d000 rw-p 00131000 08:01 5789585
/usr/lib/libnetcdf.so.6.0.0
7f898e98d000-7f898e998000 rw-p 00000000 00:00 0
7f898e998000-7f898eb4d000 r-xp 00000000 08:01 11010850
/lib/x86_64-linux-gnu/libc-2.15.so
7f898eb4d000-7f898ed4c000 ---p 001b5000 08:01 11010850
/lib/x86_64-linux-gnu/libc-2.15.so
7f898ed4c000-7f898ed50000 r--p 001b4000 08:01 11010850
/lib/x86_64-linux-gnu/libc-2.15.so
7f898ed50000-7f898ed52000 rw-p 001b8000 08:01 11010850
/lib/x86_64-linux-gnu/libc-2.15.so
7f898ed52000-7f898ed57000 rw-p 00000000 00:00 0
7f898ed57000-7f898ee52000 r-xp 00000000 08:01 11010864
/lib/x86_64-linux-gnu/libm-2.15.so
7f898ee52000-7f898f051000 ---p 000fb000 08:01 11010864
/lib/x86_64-linux-gnu/libm-2.15.so
7f898f051000-7f898f052000 r--p 000fa000 08:01 11010864
/lib/x86_64-linux-gnu/libm-2.15.so
7f898f052000-7f898f053000 rw-p 000fb000 08:01 11010864
/lib/x86_64-linux-gnu/libm-2.15.so
7f898f053000-7f898f114000 r-xp 00000000 08:01 5789952
/usr/lib/libgmt.so.4
7f898f114000-7f898f314000 ---p 000c1000 08:01 5789952
/usr/lib/libgmt.so.4
7f898f314000-7f898f315000 r--p 000c1000 08:01 5789952
/usr/lib/libgmt.so.4
7f898f315000-7f898f33a000 rw-p 000c2000 08:01 5789952
/usr/lib/libgmt.so.4
7f898f33a000-7f898f366000 rw-p 00000000 00:00 0
7f898f366000-7f898f388000 r-xp 00000000 08:01 11010876
/lib/x86_64-linux-gnu/ld-2.15.so
7f898f555000-7f898f568000 rw-p 00000000 00:00 0
7f898f585000-7f898f588000 rw-p 00000000 00:00 0
7f898f588000-7f898f589000 r--p 00022000 08:01 11010876
/lib/x86_64-linux-gnu/ld-2.15.so
7f898f589000-7f898f58b000 rw-p 00023000 08:01 11010876
/lib/x86_64-linux-gnu/ld-2.15.so
7fff436ef000-7fff43723000 rw-p 00000000 00:00 0
[stack]
7fff437ff000-7fff43800000 r-xp 00000000 00:00 0
[vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0
[vsyscall]
*grdmath: Not a supported grid format
[/opt/shakemap/bin/../data/9583161/output/BeQLbKDM1a.grd]*
*grdmath: Not a supported grid format
[/opt/shakemap/bin/../data/9583161/output/mScnvFV9i7.grd]*
*grdmath: Not a supported grid format
[/opt/shakemap/bin/../data/9583161/output/sU3YUndBaC.grd]*
*grdmath: Not a supported grid format
[/opt/shakemap/bin/../data/9583161/output/eDQoJ6czSe.grd]*
*grdmath: GMT SYNTAX ERROR: /opt/shakemap/bin/../data/9583161/output/mi.grd
is not a number, operator or file name*
*grdmath: GMT SYNTAX ERROR: /opt/shakemap/bin/../data/9583161/output/mi.grd
is not a number, operator or file name*
grdinfo: Could not find file
[/opt/shakemap/bin/../data/9583161/output/mi.grd]
*grdmath: GMT SYNTAX ERROR: /opt/shakemap/bin/../data/9583161/output/mi.grd
is not a number, operator or file name*
grd2xyz: Could not find file
[/opt/shakemap/bin/../data/9583161/output/mi.grd]
Uncertainty computation skipped (no Intensity > 6.0)

also,
***@osop-displays2:/usr/lib/gmt/bin$ ./grdmath
grdmath 4.5.6 [64-bit]

As expected.


Best regards,


*Branden Christensen*
The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
Take a Virtual Tour: http://www.osop.com.pa/tour


On Tue, Nov 26, 2013 at 1:33 AM, Paul Wessel <***@hawaii.edu> wrote:

> Hi Brandon-
>
> That is not clear, but for starters you should upgrade to 4.5.11 first as
> we cannot debug obsolete versions.
> You could then try again, this time with verbose output from your script
> so we can see what the commands are.
> -p
>
> On Nov 25, 2013, at 4:25 PM, Branden Christensen <
> ***@OSOP.COM.PA> wrote:
>
> Hi all:
>
>
> I have spent a few days trying to solve this now. Time for some
> professional input.
>
> I have been trying to upgrade my ShakeMap installation to Ubuntu 12.04
> 64-bit. It is stumbling on grdmath.
>
> What would produce grdmath errors like?:
>
> *** buffer overflow detected ***: /usr/lib/gmt/bin/grdmath terminated
>
> &
>
> grdmath: Not a supported grid format
>
>
> I am running GMT-4.5.6 with GSHHS2.1.1.
>
> Thanks for any input, suggestions, solutions.
>
>
> Best regards from Panama,
>
>
> *Branden Christensen*
> The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
> Take a Virtual Tour: http://www.osop.com.pa/tour
> To unsubscribe, send the message "signoff gmt-help" to
> ***@lists.hawaii.edu
>
>
> To unsubscribe, send the message "signoff gmt-help" to
> ***@lists.hawaii.edu

To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
Paul Wessel
2013-11-26 03:00:02 UTC
Permalink
Hi Barndon-

No, looks like the crash is happening inside one of your scripts so I cannot see the call to grdmath. Could you turn verbose on for that script of something?
We've had some feedback from ubuntu maintainers. They treat 4.5.11 as a more unstable version of 4.5.6 despite the fact that those last numbers only go up when we fix bugs.... So there probably wont be a 4.5.11 for a while for ubuntu if that is how they think.
You could install form source, should be trivial.

-p


On Nov 25, 2013, at 4:48 PM, Branden Christensen <***@OSOP.COM.PA> wrote:

> Paul:
>
>
> Than you for your immediate response.
>
> Boy that is tough news. If upgrading is anything like downgrading (I spent the weekend...the whole weekend rolling back to 4.5.1 which I knew worked with shakemap on Ubuntu 10.04 to test), then I am in for another challenge. In Ubuntu 12.04, sudo apt-get install gmt gets you 4.5.6. And Ubuntu 12.04 will long long outlast newer versions of Ubuntu which are either experimental (the October releases) or not LTS (odd years like 2013).
>
> Here is the full output in case you spot something interesting. Otherwise, I will put my fingers to upgrading:
> ***@osop-displays2:/opt/shakemap/bin$ ./grind -event 9583161 -xml -qtm -verbose -lonspan 20.0
> Using Borcherdt-style site corrections.
> Map bound: -128.900000/-108.900000/26.323000/42.803000
> GMT_grd_is_global: no!
> GMT_boundcond_param_prep determined edgeinfo: gn = 0, gs = 0, nxp = 0, nyp = 0
> GMT_grd_is_global: no!
> /opt/shakemap/bin/../bin/topo2grd 9583161 -128.900000/-108.900000/26.323000/42.803000 0.025/0.025 regime=active
> Using /opt/shakemap/dem. Final resolution fixed at 0.025.
> /opt/shakemap/dem/dem2grd.pl -128.900000/-108.900000/26.323000/42.803000 tmp.topo2grd.3979 0.025
> HELLO WORLD. I am /opt/shakemap/dem/dem2grd.pl
> EXTRACTING w140n90.grd W:-128.900000 E:-108.900000 S:40 N:42.8083333333333
> /usr/lib/gmt/bin//grdcut -R-128.900000/-108.900000/40/42.8083333333333 w140n90.grd -Gtmp.3980.w140n90
> /usr/lib/gmt/bin//grdcut -R-128.900000/-108.900000/40/42.8083333333333 w140n90.grd -Gtmp.3980.w140n90
> mv tmp.3980.w140n90 tmp.3980.w140
> EXTRACTING w140n40.grd W:-128.900000 E:-108.900000 S:26.3083333333333 N:40
> /usr/lib/gmt/bin//grdcut -R-128.900000/-108.900000/26.3083333333333/40 w140n40.grd -Gtmp.3980.w140n40
> /usr/lib/gmt/bin//grdcut -R-128.900000/-108.900000/26.3083333333333/40 w140n40.grd -Gtmp.3980.w140n40
> /usr/lib/gmt/bin//grdpaste tmp.3980.w140 tmp.3980.w140n40 -Gtmp.3980.w140.tmp
> mv tmp.3980.w140.tmp tmp.3980.w140
> mv tmp.3980.w140 tmp.topo2grd.3979.grd
> Done with pasting.
> FINAL BOUNDS: -R-128.900000/-108.900000/26.3083333333333/42.8083333333333
> cp tmp.topo2grd.3979.grd tmp.topo2grd.3979.grd.1
> /usr/lib/gmt/bin//grdsample tmp.topo2grd.3979.grd.1 -Gtmp.topo2grd.3979.grd -I0.025
> /usr/lib/gmt/bin/grdlandmask -R-129.525000/-108.275000/25.683333/43.433333 -I0.025 -G/opt/shakemap/bin/../data/9583161/output/topo_data.grd.landmask -Df -N-9999/NaN -F
> /usr/lib/gmt/bin/grdsample /opt/shakemap/bin/../data/9583161/output/topo_data.grd.landmask -G/opt/shakemap/bin/../data/9583161/output/topo_data.grd.landmask -R-128.900000/-108.900000/26.3083333333333/42.8083333333333 -I0.025
> /usr/lib/gmt/bin/grdmath /opt/shakemap/bin/../data/9583161/output/topo_data.grd.landmask /opt/shakemap/bin/../data/9583161/output/topo_data.grd.grad AND = /opt/shakemap/bin/../data/9583161/output/topo_data.grd.grad.1
> Using active tectonic factors.
> Using Shake::GMICE::WGRW11 for PGM2MI function
> Using Shake::GMICE::WGRW11 for Inverse PGM2MI function
> Using Shake::GMPE::Zhao06_intraslab for GMPE
> 2013-11-25 21:43:02 : grind: Bias -1.31 -0.93
> 2013-11-25 21:43:02 : grind: 26 amps flagged out this iteration
> 2013-11-25 21:43:04 : grind: Bias -1.31 -0.92
> 2013-11-25 21:43:04 : grind: 0 amps flagged out this iteration
> Using DefaultIPE for IPE
> Using Shake::GMPE::Zhao06_intraslab for GMPE
> Using Shake::GMICE::WGRW11 for PGM2MI function
> Using Shake::GMICE::WGRW11 for Inverse PGM2MI function
> Intensity Bias=-0.69
> 0 amps flagged out this iteration
> *** buffer overflow detected ***: /usr/lib/gmt/bin/grdmath terminated
> ======= Backtrace: =========
> /lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x7fed03aa4807]
> /lib/x86_64-linux-gnu/libc.so.6(+0x109700)[0x7fed03aa3700]
> /lib/x86_64-linux-gnu/libc.so.6(+0x1085d3)[0x7fed03aa25d3]
> /usr/lib/libgmt.so.4(GMT_grd_init+0x106)[0x7fed0407d2e6]
> /usr/lib/gmt/bin/grdmath[0x40528b]
> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7fed039bb76d]
> /usr/lib/gmt/bin/grdmath[0x4077a9]
> ======= Memory map: ========
> 00400000-0041c000 r-xp 00000000 08:01 5904758 /usr/lib/gmt/bin/grdmath
> 0061b000-0061c000 r--p 0001b000 08:01 5904758 /usr/lib/gmt/bin/grdmath
> 0061c000-0061d000 rw-p 0001c000 08:01 5904758 /usr/lib/gmt/bin/grdmath
> 02452000-02494000 rw-p 00000000 00:00 0 [heap]
> 7fecfe349000-7fecfe35e000 r-xp 00000000 08:01 11010093 /lib/x86_64-linux-gnu/libgcc_s.so.1
> 7fecfe35e000-7fecfe55d000 ---p 00015000 08:01 11010093 /lib/x86_64-linux-gnu/libgcc_s.so.1
> 7fecfe55d000-7fecfe55e000 r--p 00014000 08:01 11010093 /lib/x86_64-linux-gnu/libgcc_s.so.1
> 7fecfe55e000-7fecfe55f000 rw-p 00015000 08:01 11010093 /lib/x86_64-linux-gnu/libgcc_s.so.1
> 7fecfe55f000-7fecfe568000 r-xp 00000000 08:01 11010866 /lib/x86_64-linux-gnu/libcrypt-2.15.so
> 7fecfe568000-7fecfe768000 ---p 00009000 08:01 11010866 /lib/x86_64-linux-gnu/libcrypt-2.15.so
> 7fecfe768000-7fecfe769000 r--p 00009000 08:01 11010866 /lib/x86_64-linux-gnu/libcrypt-2.15.so
> 7fecfe769000-7fecfe76a000 rw-p 0000a000 08:01 11010866 /lib/x86_64-linux-gnu/libcrypt-2.15.so
> 7fecfe76a000-7fecfe798000 rw-p 00000000 00:00 0
> 7fecfe798000-7fecfe836000 r-xp 00000000 08:01 5786858 /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
> 7fecfe836000-7fecfea36000 ---p 0009e000 08:01 5786858 /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
> 7fecfea36000-7fecfea38000 r--p 0009e000 08:01 5786858 /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
> 7fecfea38000-7fecfea3a000 rw-p 000a0000 08:01 5786858 /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
> 7fecfea3a000-7fecfea3b000 rw-p 00000000 00:00 0
> 7fecfea3b000-7fecfea80000 r-xp 00000000 08:01 5773595 /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
> 7fecfea80000-7fecfec80000 ---p 00045000 08:01 5773595 /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
> 7fecfec80000-7fecfec82000 r--p 00045000 08:01 5773595 /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
> 7fecfec82000-7fecfec84000 rw-p 00047000 08:01 5773595 /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
> 7fecfec84000-7fecfec85000 rw-p 00000000 00:00 0
> 7fecfec85000-7fecfec93000 r-xp 00000000 08:01 5773589 /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
> 7fecfec93000-7fecfee92000 ---p 0000e000 08:01 5773589 /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
> 7fecfee92000-7fecfee93000 r--p 0000d000 08:01 5773589 /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
> 7fecfee93000-7fecfee94000 rw-p 0000e000 08:01 5773589 /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
> 7fecfee94000-7fecfeebc000 r-xp 00000000 08:01 5773592 /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
> 7fecfeebc000-7fecff0bb000 ---p 00028000 08:01 5773592 /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
> 7fecff0bb000-7fecff0bc000 r--p 00027000 08:01 5773592 /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
> 7fecff0bc000-7fecff0bd000 rw-p 00028000 08:01 5773592 /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
> 7fecff0bd000-7fecff0c0000 r-xp 00000000 08:01 11010397 /lib/x86_64-linux-gnu/libkeyutils.so.1.4
> 7fecff0c0000-7fecff2bf000 ---p 00003000 08:01 11010397 /lib/x86_64-linux-gnu/libkeyutils.so.1.4
> 7fecff2bf000-7fecff2c0000 r--p 00002000 08:01 11010397 /lib/x86_64-linux-gnu/libkeyutils.so.1.4
> 7fecff2c0000-7fecff2c1000 rw-p 00003000 08:01 11010397 /lib/x86_64-linux-gnu/libkeyutils.so.1.4
> 7fecff2c1000-7fecff2d5000 r-xp 00000000 08:01 5773571 /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
> 7fecff2d5000-7fecff4d4000 ---p 00014000 08:01 5773571 /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
> 7fecff4d4000-7fecff4d5000 r--p 00013000 08:01 5773571 /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
> 7fecff4d5000-7fecff4d6000 rw-p 00014000 08:01 5773571 /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
> 7fecff4d6000-7fecff507000 r-xp 00000000 08:01 5773586 /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
> 7fecff507000-7fecff707000 ---p 00031000 08:01 5773586 /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
> 7fecff707000-7fecff708000 r--p 00031000 08:01 5773586 /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
> 7fecff708000-7fecff709000 rw-p 00032000 08:01 5773586 /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
> 7fecff709000-7fecff70a000 rw-p 00000000 00:00 0
> 7fecff70a000-7fecff7a5000 r-xp 00000000 08:01 5773574 /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
> 7fecff7a5000-7fecff9a4000 ---p 0009b000 08:01 5773574 /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
> 7fecff9a4000-7fecff9a6000 r--p 0009a000 08:01 5773574 /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
> 7fecff9a6000-7fecff9aa000 rw-p 0009c000 08:01 5773574 /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
> 7fecff9aa000-7fecffa2a000 r-xp 00000000 08:01 5773598 /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
> 7fecffa2a000-7fecffc2a000 ---p 00080000 08:01 5773598 /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
> 7fecffc2a000-7fecffc2c000 r--p 00080000 08:01 5773598 /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
> 7fecffc2c000-7fecffc30000 rw-p 00082000 08:01 5773598 /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
> 7fecffc30000-7fecffc36000 r-xp 00000000 08:01 5773601 /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
> 7fecffc36000-7fecffe35000 ---p 00006000 08:01 5773601 /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
> 7fecffe35000-7fecffe36000 r--p 00005000 08:01 5773601 /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
> 7fecffe36000-7fecffe37000 rw-p 00006000 08:01 5773601 /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
> 7fecffe37000-7fecffe39000 r-xp 00000000 08:01 11010847 /lib/x86_64-linux-gnu/libdl-2.15.so
> 7fecffe39000-7fed00039000 ---p 00002000 08:01 11010847 /lib/x86_64-linux-gnu/libdl-2.15.so
> 7fed00039000-7fed0003a000 r--p 00002000 08:01 11010847 /lib/x86_64-linux-gnu/libdl-2.15.so
> 7fed0003a000-7fed0003b000 rw-p 00003000 08:01 11010847 /lib/x86_64-linux-gnu/libdl-2.15.so
> 7fed0003b000-7fed0003e000 r-xp 00000000 08:01 11010342 /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
> 7fed0003e000-7fed0023d000 ---p 00003000 08:01 11010342 /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
> 7fed0023d000-7fed0023e000 r--p 00002000 08:01 11010342 /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
> 7fed0023e000-7fed0023f000 rw-p 00003000 08:01 11010342 /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
> 7fed0023f000-7fed00250000 r-xp 00000000 08:01 5773577 /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
> 7fed00250000-7fed0044f000 ---p 00011000 08:01 5773577 /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
> 7fed0044f000-7fed00450000 r--p 00010000 08:01 5773577 /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
> 7fed00450000-7fed00451000 rw-p 00011000 08:01 5773577 /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
> 7fed00451000-7fed00461000 r-xp 00000000 08:01 5771972 /usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.12
> 7fed00461000-7fed00660000 ---p 00010000 08:01 5771972 /usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.12
> 7fed00660000-7fed00661000 r--p 0000f000 08:01 5771972 /usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.12
> 7fed00661000-7fed00662000 rw-p 00010000 08:01 5771972 /usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.12
> 7fed00662000-7fed00669000 r-xp 00000000 08:01 5772636 /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
> 7fed00669000-7fed00868000 ---p 00007000 08:01 5772636 /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
> 7fed00868000-7fed00869000 r--p 00006000 08:01 5772636 /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
> 7fed00869000-7fed0086a000 rw-p 00007000 08:01 5772636 /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
> 7fed0086a000-7fed0086d000 r-xp 00000000 08:01 11010057 /lib/x86_64-linux-gnu/libcom_err.so.2.1
> 7fed0086d000-7fed00a6c000 ---p 00003000 08:01 11010057 /lib/x86_64-linux-gnu/libcom_err.so.2.1
> 7fed00a6c000-7fed00a6d000 r--p 00002000 08:01 11010057 /lib/x86_64-linux-gnu/libcom_err.so.2.1
> 7fed00a6d000-7fed00a6e000 rw-p 00003000 08:01 11010057 /lib/x86_64-linux-gnu/libcom_err.so.2.1
> 7fed00a6e000-7fed00a93000 r-xp 00000000 08:01 5773583 /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
> 7fed00a93000-7fed00c93000 ---p 00025000 08:01 5773583 /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
> 7fed00c93000-7fed00c94000 r--p 00025000 08:01 5773583 /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
> 7fed00c94000-7fed00c95000 rw-p 00026000 08:01 5773583 /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
> 7fed00c95000-7fed00c96000 rw-p 00000000 00:00 0
> 7fed00c96000-7fed00d5a000 r-xp 00000000 08:01 5786863 /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
> 7fed00d5a000-7fed00f59000 ---p 000c4000 08:01 5786863 /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
> 7fed00f59000-7fed00f63000 r--p 000c3000 08:01 5786863 /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
> 7fed00f63000-7fed00f64000 rw-p 000cd000 08:01 5786863 /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
> 7fed00f64000-7fed00f9e000 r-xp 00000000 08:01 5773604 /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
> 7fed00f9e000-7fed0119e000 ---p 0003a000 08:01 5773604 /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
> 7fed0119e000-7fed0119f000 r--p 0003a000 08:01 5773604 /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
> 7fed0119f000-7fed011a2000 rw-p 0003b000 08:01 5773604 /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
> 7fed011a2000-7fed011bc000 r-xp 00000000 08:01 5773607 /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
> 7fed011bc000-7fed013bb000 ---p 0001a000 08:01 5773607 /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
> 7fed013bb000-7fed013bc000 r--p 00019000 08:01 5773607 /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
> 7fed013bc000-7fed013bd000 rw-p 0001a000 08:01 5773607 /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
> 7fed013bd000-7fed013d5000 r-xp 00000000 08:01 11010858 /lib/x86_64-linux-gnu/libresolv-2.15.so
> 7fed013d5000-7fed015d5000 ---p 00018000 08:01 11010858 /lib/x86_64-linux-gnu/libresolv-2.15.so
> 7fed015d5000-7fed015d6000 r--p 00018000 08:01 11010858 /lib/x86_64-linux-gnu/libresolv-2.15.so
> 7fed015d6000-7fed015d7000 rw-p 00019000 08:01 11010858 /lib/x86_64-linux-gnu/libresolv-2.15.so
> 7fed015d7000-7fed015d9000 rw-p 00000000 00:00 0
> 7fed015d9000-7fed015f1000 r-xp 00000000 08:01 11010853 /lib/x86_64-linux-gnu/libpthread-2.15.so
> 7fed015f1000-7fed017f0000 ---p 00018000 08:01 11010853 /lib/x86_64-linux-gnu/libpthread-2.15.so
> 7fed017f0000-7fed017f1000 r--p 00017000 08:01 11010853 /lib/x86_64-linux-gnu/libpthread-2.15.so
> 7fed017f1000-7fed017f2000 rw-p 00018000 08:01 11010853 /lib/x86_64-linux-gnu/libpthread-2.15.so
> 7fed017f2000-7fed017f6000 rw-p 00000000 00:00 0
> 7fed017f6000-7fed0180e000 r-xp 00000000 08:01 5773616 /usr/lib/x86_64-linux-gnu/librtmp.so.0
> 7fed0180e000-7fed01a0e000 ---p 00018000 08:01 5773616 /usr/lib/x86_64-linux-gnu/librtmp.so.0
> 7fed01a0e000-7fed01a0f000 r--p 00018000 08:01 5773616 /usr/lib/x86_64-linux-gnu/librtmp.so.0
> 7fed01a0f000-7fed01a10000 rw-p 00019000 08:01 5773616 /usr/lib/x86_64-linux-gnu/librtmp.so.0
> 7fed01a10000-7fed01a8a000 r-xp 00000000 08:01 11010063 /lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
> 7fed01a8a000-7fed01c8a000 ---p 0007a000 08:01 11010063 /lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
> 7fed01c8a000-7fed01c8b000 r--p 0007a000 08:01 11010063 /lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
> 7fed01c8b000-7fed01c8e000 rw-p 0007b000 08:01 11010063 /lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
> 7fed01c8e000-7fed01d42000 r-xp 00000000 08:01 5786861 /usr/lib/x86_64-linux-gnu/libgnutls.so.26.21.8
> 7fed01d42000-7fed01f42000 ---p 000b4000 08:01 5786861 /usr/lib/x86_64-linux-gnu/libgnutls.so.26.21.8
> 7fed01f42000-7fed01f48000 r--p 000b4000 08:01 5786861 /usr/lib/x86_64-linux-gnu/libgnutls.so.26.21.8
> 7fed01f48000-7fed01f49000 rw-p 000ba000 08:01 5786861 /usr/lib/x86_64-linux-gnu/libgnutls.so.26.21.8
> 7fed01f49000-7fed01f4a000 rw-p 00000000 00:00 0
> 7fed01f4a000-7fed01f60000 r-xp 00000000 08:01 11010218 /lib/x86_64-linux-gnu/libz.so.1.2.3.4
> 7fed01f60000-7fed0215f000 ---p 00016000 08:01 11010218 /lib/x86_64-linux-gnu/libz.so.1.2.3.4
> 7fed0215f000-7fed02160000 r--p 00015000 08:01 11010218 /lib/x86_64-linux-gnu/libz.so.1.2.3.4
> 7fed02160000-7fed02161000 rw-p 00016000 08:01 11010218 /lib/x86_64-linux-gnu/libz.so.1.2.3.4
> 7fed02161000-7fed0219c000 r-xp 00000000 08:01 5772630 /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
> 7fed0219c000-7fed0239c000 ---p 0003b000 08:01 5772630 /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
> 7fed0239c000-7fed0239d000 r--p 0003b000 08:01 5772630 /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
> 7fed0239d000-7fed0239f000 rw-p 0003c000 08:01 5772630 /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
> 7fed0239f000-7fed023a6000 r-xp 00000000 08:01 11010856 /lib/x86_64-linux-gnu/librt-2.15.so
> 7fed023a6000-7fed025a5000 ---p 00007000 08:01 11010856 /lib/x86_64-linux-gnu/librt-2.15.so
> 7fed025a5000-7fed025a6000 r--p 00006000 08:01 11010856 /lib/x86_64-linux-gnu/librt-2.15.so
> 7fed025a6000-7fed025a7000 rw-p 00007000 08:01 11010856 /lib/x86_64-linux-gnu/librt-2.15.so
> 7fed025a7000-7fed025f2000 r-xp 00000000 08:01 5772626 /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.8.1
> 7fed025f2000-7fed027f1000 ---p 0004b000 08:01 5772626 /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.8.1
> 7fed027f1000-7fed027f3000 r--p 0004a000 08:01 5772626 /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.8.1
> 7fed027f3000-7fed027f4000 rw-p 0004c000 08:01 5772626 /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.8.1
> 7fed027f4000-7fed027f6000 rw-p 00000000 00:00 0
> 7fed027f6000-7fed02803000 r-xp 00000000 08:01 5786866 /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.8.1
> 7fed02803000-7fed02a02000 ---p 0000d000 08:01 5786866 /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.8.1
> 7fed02a02000-7fed02a03000 r--p 0000c000 08:01 5786866 /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.8.1
> 7fed02a03000-7fed02a04000 rw-p 0000d000 08:01 5786866 /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.8.1
> 7fed02a04000-7fed02a36000 r-xp 00000000 08:01 5773087 /usr/lib/x86_64-linux-gnu/libidn.so.11.6.6
> 7fed02a36000-7fed02c35000 ---p 00032000 08:01 5773087 /usr/lib/x86_64-linux-gnu/libidn.so.11.6.6
> 7fed02c35000-7fed02c36000 r--p 00031000 08:01 5773087 /usr/lib/x86_64-linux-gnu/libidn.so.11.6.6
> 7fed02c36000-7fed02c37000 rw-p 00032000 08:01 5773087 /usr/lib/x86_64-linux-gnu/libidn.so.11.6.6
> 7fed02c37000-7fed02fc9000 r-xp 00000000 08:01 5786767 /usr/lib/libhdf5.so.6.0.3
> 7fed02fc9000-7fed031c8000 ---p 00392000 08:01 5786767 /usr/lib/libhdf5.so.6.0.3
> 7fed031c8000-7fed031cd000 r--p 00391000 08:01 5786767 /usr/lib/libhdf5.so.6.0.3
> 7fed031cd000-7fed031d1000 rw-p 00396000 08:01 5786767 /usr/lib/libhdf5.so.6.0.3
> 7fed031d1000-7fed031d2000 rw-p 00000000 00:00 0
> 7fed031d2000-7fed031f2000 r-xp 00000000 08:01 5786770 /usr/lib/libhdf5_hl.so.6.0.3
> 7fed031f2000-7fed033f1000 ---p 00020000 08:01 5786770 /usr/lib/libhdf5_hl.so.6.0.3
> 7fed033f1000-7fed033f2000 r--p 0001f000 08:01 5786770 /usr/lib/libhdf5_hl.so.6.0.3
> 7fed033f2000-7fed033f3000 rw-p 00020000 08:01 5786770 /usr/lib/libhdf5_hl.so.6.0.3
> 7fed033f3000-7fed03404000 rw-p 00000000 00:00 0
> 7fed03404000-7fed03459000 r-xp 00000000 08:01 5773609 /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.2.0
> 7fed03459000-7fed03659000 ---p 00055000 08:01 5773609 /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.2.0
> 7fed03659000-7fed0365b000 r--p 00055000 08:01 5773609 /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.2.0
> 7fed0365b000-7fed0365c000 rw-p 00057000 08:01 5773609 /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.2.0
> 7fed0365c000-7fed0373f000 r-xp 00000000 08:01 5789585 /usr/lib/libnetcdf.so.6.0.0
> 7fed0373f000-7fed0393f000 ---p 000e3000 08:01 5789585 /usr/lib/libnetcdf.so.6.0.0
> 7fed0393f000-7fed0398d000 r--p 000e3000 08:01 5789585 /usr/lib/libnetcdf.so.6.0.0
> 7fed0398d000-7fed0398f000 rw-p 00131000 08:01 5789585 /usr/lib/libnetcdf.so.6.0.0
> 7fed0398f000-7fed0399a000 rw-p 00000000 00:00 0
> 7fed0399a000-7fed03b4f000 r-xp 00000000 08:01 11010850 /lib/x86_64-linux-gnu/libc-2.15.so
> 7fed03b4f000-7fed03d4e000 ---p 001b5000 08:01 11010850 /lib/x86_64-linux-gnu/libc-2.15.so
> 7fed03d4e000-7fed03d52000 r--p 001b4000 08:01 11010850 /lib/x86_64-linux-gnu/libc-2.15.so
> 7fed03d52000-7fed03d54000 rw-p 001b8000 08:01 11010850 /lib/x86_64-linux-gnu/libc-2.15.so
> 7fed03d54000-7fed03d59000 rw-p 00000000 00:00 0
> 7fed03d59000-7fed03e54000 r-xp 00000000 08:01 11010864 /lib/x86_64-linux-gnu/libm-2.15.so
> 7fed03e54000-7fed04053000 ---p 000fb000 08:01 11010864 /lib/x86_64-linux-gnu/libm-2.15.so
> 7fed04053000-7fed04054000 r--p 000fa000 08:01 11010864 /lib/x86_64-linux-gnu/libm-2.15.so
> 7fed04054000-7fed04055000 rw-p 000fb000 08:01 11010864 /lib/x86_64-linux-gnu/libm-2.15.so
> 7fed04055000-7fed04116000 r-xp 00000000 08:01 5789952 /usr/lib/libgmt.so.4
> 7fed04116000-7fed04316000 ---p 000c1000 08:01 5789952 /usr/lib/libgmt.so.4
> 7fed04316000-7fed04317000 r--p 000c1000 08:01 5789952 /usr/lib/libgmt.so.4
> 7fed04317000-7fed0433c000 rw-p 000c2000 08:01 5789952 /usr/lib/libgmt.so.4
> 7fed0433c000-7fed04368000 rw-p 00000000 00:00 0
> 7fed04368000-7fed0438a000 r-xp 00000000 08:01 11010876 /lib/x86_64-linux-gnu/ld-2.15.so
> 7fed04557000-7fed0456a000 rw-p 00000000 00:00 0
> 7fed04587000-7fed0458a000 rw-p 00000000 00:00 0
> 7fed0458a000-7fed0458b000 r--p 00022000 08:01 11010876 /lib/x86_64-linux-gnu/ld-2.15.so
> 7fed0458b000-7fed0458d000 rw-p 00023000 08:01 11010876 /lib/x86_64-linux-gnu/ld-2.15.so
> 7fff0b75b000-7fff0b78f000 rw-p 00000000 00:00 0 [stack]
> 7fff0b7ff000-7fff0b800000 r-xp 00000000 00:00 0 [vdso]
> ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
> grdmath: Not a supported grid format [/opt/shakemap/bin/../data/9583161/output/MGU7BgDk82.grd]
> *** buffer overflow detected ***: /usr/lib/gmt/bin/grdmath terminated
> ======= Backtrace: =========
> /lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x7f898eaa2807]
> /lib/x86_64-linux-gnu/libc.so.6(+0x109700)[0x7f898eaa1700]
> /lib/x86_64-linux-gnu/libc.so.6(+0x1085d3)[0x7f898eaa05d3]
> /usr/lib/libgmt.so.4(GMT_grd_init+0x106)[0x7f898f07b2e6]
> /usr/lib/gmt/bin/grdmath[0x40528b]
> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7f898e9b976d]
> /usr/lib/gmt/bin/grdmath[0x4077a9]
> ======= Memory map: ========
> 00400000-0041c000 r-xp 00000000 08:01 5904758 /usr/lib/gmt/bin/grdmath
> 0061b000-0061c000 r--p 0001b000 08:01 5904758 /usr/lib/gmt/bin/grdmath
> 0061c000-0061d000 rw-p 0001c000 08:01 5904758 /usr/lib/gmt/bin/grdmath
> 019b7000-019f9000 rw-p 00000000 00:00 0 [heap]
> 7f8989347000-7f898935c000 r-xp 00000000 08:01 11010093 /lib/x86_64-linux-gnu/libgcc_s.so.1
> 7f898935c000-7f898955b000 ---p 00015000 08:01 11010093 /lib/x86_64-linux-gnu/libgcc_s.so.1
> 7f898955b000-7f898955c000 r--p 00014000 08:01 11010093 /lib/x86_64-linux-gnu/libgcc_s.so.1
> 7f898955c000-7f898955d000 rw-p 00015000 08:01 11010093 /lib/x86_64-linux-gnu/libgcc_s.so.1
> 7f898955d000-7f8989566000 r-xp 00000000 08:01 11010866 /lib/x86_64-linux-gnu/libcrypt-2.15.so
> 7f8989566000-7f8989766000 ---p 00009000 08:01 11010866 /lib/x86_64-linux-gnu/libcrypt-2.15.so
> 7f8989766000-7f8989767000 r--p 00009000 08:01 11010866 /lib/x86_64-linux-gnu/libcrypt-2.15.so
> 7f8989767000-7f8989768000 rw-p 0000a000 08:01 11010866 /lib/x86_64-linux-gnu/libcrypt-2.15.so
> 7f8989768000-7f8989796000 rw-p 00000000 00:00 0
> 7f8989796000-7f8989834000 r-xp 00000000 08:01 5786858 /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
> 7f8989834000-7f8989a34000 ---p 0009e000 08:01 5786858 /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
> 7f8989a34000-7f8989a36000 r--p 0009e000 08:01 5786858 /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
> 7f8989a36000-7f8989a38000 rw-p 000a0000 08:01 5786858 /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
> 7f8989a38000-7f8989a39000 rw-p 00000000 00:00 0
> 7f8989a39000-7f8989a7e000 r-xp 00000000 08:01 5773595 /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
> 7f8989a7e000-7f8989c7e000 ---p 00045000 08:01 5773595 /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
> 7f8989c7e000-7f8989c80000 r--p 00045000 08:01 5773595 /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
> 7f8989c80000-7f8989c82000 rw-p 00047000 08:01 5773595 /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
> 7f8989c82000-7f8989c83000 rw-p 00000000 00:00 0
> 7f8989c83000-7f8989c91000 r-xp 00000000 08:01 5773589 /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
> 7f8989c91000-7f8989e90000 ---p 0000e000 08:01 5773589 /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
> 7f8989e90000-7f8989e91000 r--p 0000d000 08:01 5773589 /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
> 7f8989e91000-7f8989e92000 rw-p 0000e000 08:01 5773589 /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
> 7f8989e92000-7f8989eba000 r-xp 00000000 08:01 5773592 /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
> 7f8989eba000-7f898a0b9000 ---p 00028000 08:01 5773592 /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
> 7f898a0b9000-7f898a0ba000 r--p 00027000 08:01 5773592 /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
> 7f898a0ba000-7f898a0bb000 rw-p 00028000 08:01 5773592 /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
> 7f898a0bb000-7f898a0be000 r-xp 00000000 08:01 11010397 /lib/x86_64-linux-gnu/libkeyutils.so.1.4
> 7f898a0be000-7f898a2bd000 ---p 00003000 08:01 11010397 /lib/x86_64-linux-gnu/libkeyutils.so.1.4
> 7f898a2bd000-7f898a2be000 r--p 00002000 08:01 11010397 /lib/x86_64-linux-gnu/libkeyutils.so.1.4
> 7f898a2be000-7f898a2bf000 rw-p 00003000 08:01 11010397 /lib/x86_64-linux-gnu/libkeyutils.so.1.4
> 7f898a2bf000-7f898a2d3000 r-xp 00000000 08:01 5773571 /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
> 7f898a2d3000-7f898a4d2000 ---p 00014000 08:01 5773571 /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
> 7f898a4d2000-7f898a4d3000 r--p 00013000 08:01 5773571 /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
> 7f898a4d3000-7f898a4d4000 rw-p 00014000 08:01 5773571 /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
> 7f898a4d4000-7f898a505000 r-xp 00000000 08:01 5773586 /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
> 7f898a505000-7f898a705000 ---p 00031000 08:01 5773586 /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
> 7f898a705000-7f898a706000 r--p 00031000 08:01 5773586 /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
> 7f898a706000-7f898a707000 rw-p 00032000 08:01 5773586 /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
> 7f898a707000-7f898a708000 rw-p 00000000 00:00 0
> 7f898a708000-7f898a7a3000 r-xp 00000000 08:01 5773574 /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
> 7f898a7a3000-7f898a9a2000 ---p 0009b000 08:01 5773574 /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
> 7f898a9a2000-7f898a9a4000 r--p 0009a000 08:01 5773574 /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
> 7f898a9a4000-7f898a9a8000 rw-p 0009c000 08:01 5773574 /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
> 7f898a9a8000-7f898aa28000 r-xp 00000000 08:01 5773598 /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
> 7f898aa28000-7f898ac28000 ---p 00080000 08:01 5773598 /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
> 7f898ac28000-7f898ac2a000 r--p 00080000 08:01 5773598 /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
> 7f898ac2a000-7f898ac2e000 rw-p 00082000 08:01 5773598 /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
> 7f898ac2e000-7f898ac34000 r-xp 00000000 08:01 5773601 /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
> 7f898ac34000-7f898ae33000 ---p 00006000 08:01 5773601 /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
> 7f898ae33000-7f898ae34000 r--p 00005000 08:01 5773601 /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
> 7f898ae34000-7f898ae35000 rw-p 00006000 08:01 5773601 /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
> 7f898ae35000-7f898ae37000 r-xp 00000000 08:01 11010847 /lib/x86_64-linux-gnu/libdl-2.15.so
> 7f898ae37000-7f898b037000 ---p 00002000 08:01 11010847 /lib/x86_64-linux-gnu/libdl-2.15.so
> 7f898b037000-7f898b038000 r--p 00002000 08:01 11010847 /lib/x86_64-linux-gnu/libdl-2.15.so
> 7f898b038000-7f898b039000 rw-p 00003000 08:01 11010847 /lib/x86_64-linux-gnu/libdl-2.15.so
> 7f898b039000-7f898b03c000 r-xp 00000000 08:01 11010342 /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
> 7f898b03c000-7f898b23b000 ---p 00003000 08:01 11010342 /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
> 7f898b23b000-7f898b23c000 r--p 00002000 08:01 11010342 /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
> 7f898b23c000-7f898b23d000 rw-p 00003000 08:01 11010342 /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
> 7f898b23d000-7f898b24e000 r-xp 00000000 08:01 5773577 /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
> 7f898b24e000-7f898b44d000 ---p 00011000 08:01 5773577 /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
> 7f898b44d000-7f898b44e000 r--p 00010000 08:01 5773577 /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
> 7f898b44e000-7f898b44f000 rw-p 00011000 08:01 5773577 /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
> 7f898b44f000-7f898b45f000 r-xp 00000000 08:01 5771972 /usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.12
> 7f898b45f000-7f898b65e000 ---p 00010000 08:01 5771972 /usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.12
> 7f898b65e000-7f898b65f000 r--p 0000f000 08:01 5771972 /usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.12
> 7f898b65f000-7f898b660000 rw-p 00010000 08:01 5771972 /usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.12
> 7f898b660000-7f898b667000 r-xp 00000000 08:01 5772636 /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
> 7f898b667000-7f898b866000 ---p 00007000 08:01 5772636 /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
> 7f898b866000-7f898b867000 r--p 00006000 08:01 5772636 /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
> 7f898b867000-7f898b868000 rw-p 00007000 08:01 5772636 /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
> 7f898b868000-7f898b86b000 r-xp 00000000 08:01 11010057 /lib/x86_64-linux-gnu/libcom_err.so.2.1
> 7f898b86b000-7f898ba6a000 ---p 00003000 08:01 11010057 /lib/x86_64-linux-gnu/libcom_err.so.2.1
> 7f898ba6a000-7f898ba6b000 r--p 00002000 08:01 11010057 /lib/x86_64-linux-gnu/libcom_err.so.2.1
> 7f898ba6b000-7f898ba6c000 rw-p 00003000 08:01 11010057 /lib/x86_64-linux-gnu/libcom_err.so.2.1
> 7f898ba6c000-7f898ba91000 r-xp 00000000 08:01 5773583 /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
> 7f898ba91000-7f898bc91000 ---p 00025000 08:01 5773583 /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
> 7f898bc91000-7f898bc92000 r--p 00025000 08:01 5773583 /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
> 7f898bc92000-7f898bc93000 rw-p 00026000 08:01 5773583 /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
> 7f898bc93000-7f898bc94000 rw-p 00000000 00:00 0
> 7f898bc94000-7f898bd58000 r-xp 00000000 08:01 5786863 /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
> 7f898bd58000-7f898bf57000 ---p 000c4000 08:01 5786863 /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
> 7f898bf57000-7f898bf61000 r--p 000c3000 08:01 5786863 /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
> 7f898bf61000-7f898bf62000 rw-p 000cd000 08:01 5786863 /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
> 7f898bf62000-7f898bf9c000 r-xp 00000000 08:01 5773604 /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
> 7f898bf9c000-7f898c19c000 ---p 0003a000 08:01 5773604 /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
> 7f898c19c000-7f898c19d000 r--p 0003a000 08:01 5773604 /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
> 7f898c19d000-7f898c1a0000 rw-p 0003b000 08:01 5773604 /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
> 7f898c1a0000-7f898c1ba000 r-xp 00000000 08:01 5773607 /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
> 7f898c1ba000-7f898c3b9000 ---p 0001a000 08:01 5773607 /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
> 7f898c3b9000-7f898c3ba000 r--p 00019000 08:01 5773607 /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
> 7f898c3ba000-7f898c3bb000 rw-p 0001a000 08:01 5773607 /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
> 7f898c3bb000-7f898c3d3000 r-xp 00000000 08:01 11010858 /lib/x86_64-linux-gnu/libresolv-2.15.so
> 7f898c3d3000-7f898c5d3000 ---p 00018000 08:01 11010858 /lib/x86_64-linux-gnu/libresolv-2.15.so
> 7f898c5d3000-7f898c5d4000 r--p 00018000 08:01 11010858 /lib/x86_64-linux-gnu/libresolv-2.15.so
> 7f898c5d4000-7f898c5d5000 rw-p 00019000 08:01 11010858 /lib/x86_64-linux-gnu/libresolv-2.15.so
> 7f898c5d5000-7f898c5d7000 rw-p 00000000 00:00 0
> 7f898c5d7000-7f898c5ef000 r-xp 00000000 08:01 11010853 /lib/x86_64-linux-gnu/libpthread-2.15.so
> 7f898c5ef000-7f898c7ee000 ---p 00018000 08:01 11010853 /lib/x86_64-linux-gnu/libpthread-2.15.so
> 7f898c7ee000-7f898c7ef000 r--p 00017000 08:01 11010853 /lib/x86_64-linux-gnu/libpthread-2.15.so
> 7f898c7ef000-7f898c7f0000 rw-p 00018000 08:01 11010853 /lib/x86_64-linux-gnu/libpthread-2.15.so
> 7f898c7f0000-7f898c7f4000 rw-p 00000000 00:00 0
> 7f898c7f4000-7f898c80c000 r-xp 00000000 08:01 5773616 /usr/lib/x86_64-linux-gnu/librtmp.so.0
> 7f898c80c000-7f898ca0c000 ---p 00018000 08:01 5773616 /usr/lib/x86_64-linux-gnu/librtmp.so.0
> 7f898ca0c000-7f898ca0d000 r--p 00018000 08:01 5773616 /usr/lib/x86_64-linux-gnu/librtmp.so.0
> 7f898ca0d000-7f898ca0e000 rw-p 00019000 08:01 5773616 /usr/lib/x86_64-linux-gnu/librtmp.so.0
> 7f898ca0e000-7f898ca88000 r-xp 00000000 08:01 11010063 /lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
> 7f898ca88000-7f898cc88000 ---p 0007a000 08:01 11010063 /lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
> 7f898cc88000-7f898cc89000 r--p 0007a000 08:01 11010063 /lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
> 7f898cc89000-7f898cc8c000 rw-p 0007b000 08:01 11010063 /lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
> 7f898cc8c000-7f898cd40000 r-xp 00000000 08:01 5786861 /usr/lib/x86_64-linux-gnu/libgnutls.so.26.21.8
> 7f898cd40000-7f898cf40000 ---p 000b4000 08:01 5786861 /usr/lib/x86_64-linux-gnu/libgnutls.so.26.21.8
> 7f898cf40000-7f898cf46000 r--p 000b4000 08:01 5786861 /usr/lib/x86_64-linux-gnu/libgnutls.so.26.21.8
> 7f898cf46000-7f898cf47000 rw-p 000ba000 08:01 5786861 /usr/lib/x86_64-linux-gnu/libgnutls.so.26.21.8
> 7f898cf47000-7f898cf48000 rw-p 00000000 00:00 0
> 7f898cf48000-7f898cf5e000 r-xp 00000000 08:01 11010218 /lib/x86_64-linux-gnu/libz.so.1.2.3.4
> 7f898cf5e000-7f898d15d000 ---p 00016000 08:01 11010218 /lib/x86_64-linux-gnu/libz.so.1.2.3.4
> 7f898d15d000-7f898d15e000 r--p 00015000 08:01 11010218 /lib/x86_64-linux-gnu/libz.so.1.2.3.4
> 7f898d15e000-7f898d15f000 rw-p 00016000 08:01 11010218 /lib/x86_64-linux-gnu/libz.so.1.2.3.4
> 7f898d15f000-7f898d19a000 r-xp 00000000 08:01 5772630 /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
> 7f898d19a000-7f898d39a000 ---p 0003b000 08:01 5772630 /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
> 7f898d39a000-7f898d39b000 r--p 0003b000 08:01 5772630 /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
> 7f898d39b000-7f898d39d000 rw-p 0003c000 08:01 5772630 /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
> 7f898d39d000-7f898d3a4000 r-xp 00000000 08:01 11010856 /lib/x86_64-linux-gnu/librt-2.15.so
> 7f898d3a4000-7f898d5a3000 ---p 00007000 08:01 11010856 /lib/x86_64-linux-gnu/librt-2.15.so
> 7f898d5a3000-7f898d5a4000 r--p 00006000 08:01 11010856 /lib/x86_64-linux-gnu/librt-2.15.so
> 7f898d5a4000-7f898d5a5000 rw-p 00007000 08:01 11010856 /lib/x86_64-linux-gnu/librt-2.15.so
> 7f898d5a5000-7f898d5f0000 r-xp 00000000 08:01 5772626 /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.8.1
> 7f898d5f0000-7f898d7ef000 ---p 0004b000 08:01 5772626 /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.8.1
> 7f898d7ef000-7f898d7f1000 r--p 0004a000 08:01 5772626 /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.8.1
> 7f898d7f1000-7f898d7f2000 rw-p 0004c000 08:01 5772626 /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.8.1
> 7f898d7f2000-7f898d7f4000 rw-p 00000000 00:00 0
> 7f898d7f4000-7f898d801000 r-xp 00000000 08:01 5786866 /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.8.1
> 7f898d801000-7f898da00000 ---p 0000d000 08:01 5786866 /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.8.1
> 7f898da00000-7f898da01000 r--p 0000c000 08:01 5786866 /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.8.1
> 7f898da01000-7f898da02000 rw-p 0000d000 08:01 5786866 /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.8.1
> 7f898da02000-7f898da34000 r-xp 00000000 08:01 5773087 /usr/lib/x86_64-linux-gnu/libidn.so.11.6.6
> 7f898da34000-7f898dc33000 ---p 00032000 08:01 5773087 /usr/lib/x86_64-linux-gnu/libidn.so.11.6.6
> 7f898dc33000-7f898dc34000 r--p 00031000 08:01 5773087 /usr/lib/x86_64-linux-gnu/libidn.so.11.6.6
> 7f898dc34000-7f898dc35000 rw-p 00032000 08:01 5773087 /usr/lib/x86_64-linux-gnu/libidn.so.11.6.6
> 7f898dc35000-7f898dfc7000 r-xp 00000000 08:01 5786767 /usr/lib/libhdf5.so.6.0.3
> 7f898dfc7000-7f898e1c6000 ---p 00392000 08:01 5786767 /usr/lib/libhdf5.so.6.0.3
> 7f898e1c6000-7f898e1cb000 r--p 00391000 08:01 5786767 /usr/lib/libhdf5.so.6.0.3
> 7f898e1cb000-7f898e1cf000 rw-p 00396000 08:01 5786767 /usr/lib/libhdf5.so.6.0.3
> 7f898e1cf000-7f898e1d0000 rw-p 00000000 00:00 0
> 7f898e1d0000-7f898e1f0000 r-xp 00000000 08:01 5786770 /usr/lib/libhdf5_hl.so.6.0.3
> 7f898e1f0000-7f898e3ef000 ---p 00020000 08:01 5786770 /usr/lib/libhdf5_hl.so.6.0.3
> 7f898e3ef000-7f898e3f0000 r--p 0001f000 08:01 5786770 /usr/lib/libhdf5_hl.so.6.0.3
> 7f898e3f0000-7f898e3f1000 rw-p 00020000 08:01 5786770 /usr/lib/libhdf5_hl.so.6.0.3
> 7f898e3f1000-7f898e402000 rw-p 00000000 00:00 0
> 7f898e402000-7f898e457000 r-xp 00000000 08:01 5773609 /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.2.0
> 7f898e457000-7f898e657000 ---p 00055000 08:01 5773609 /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.2.0
> 7f898e657000-7f898e659000 r--p 00055000 08:01 5773609 /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.2.0
> 7f898e659000-7f898e65a000 rw-p 00057000 08:01 5773609 /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.2.0
> 7f898e65a000-7f898e73d000 r-xp 00000000 08:01 5789585 /usr/lib/libnetcdf.so.6.0.0
> 7f898e73d000-7f898e93d000 ---p 000e3000 08:01 5789585 /usr/lib/libnetcdf.so.6.0.0
> 7f898e93d000-7f898e98b000 r--p 000e3000 08:01 5789585 /usr/lib/libnetcdf.so.6.0.0
> 7f898e98b000-7f898e98d000 rw-p 00131000 08:01 5789585 /usr/lib/libnetcdf.so.6.0.0
> 7f898e98d000-7f898e998000 rw-p 00000000 00:00 0
> 7f898e998000-7f898eb4d000 r-xp 00000000 08:01 11010850 /lib/x86_64-linux-gnu/libc-2.15.so
> 7f898eb4d000-7f898ed4c000 ---p 001b5000 08:01 11010850 /lib/x86_64-linux-gnu/libc-2.15.so
> 7f898ed4c000-7f898ed50000 r--p 001b4000 08:01 11010850 /lib/x86_64-linux-gnu/libc-2.15.so
> 7f898ed50000-7f898ed52000 rw-p 001b8000 08:01 11010850 /lib/x86_64-linux-gnu/libc-2.15.so
> 7f898ed52000-7f898ed57000 rw-p 00000000 00:00 0
> 7f898ed57000-7f898ee52000 r-xp 00000000 08:01 11010864 /lib/x86_64-linux-gnu/libm-2.15.so
> 7f898ee52000-7f898f051000 ---p 000fb000 08:01 11010864 /lib/x86_64-linux-gnu/libm-2.15.so
> 7f898f051000-7f898f052000 r--p 000fa000 08:01 11010864 /lib/x86_64-linux-gnu/libm-2.15.so
> 7f898f052000-7f898f053000 rw-p 000fb000 08:01 11010864 /lib/x86_64-linux-gnu/libm-2.15.so
> 7f898f053000-7f898f114000 r-xp 00000000 08:01 5789952 /usr/lib/libgmt.so.4
> 7f898f114000-7f898f314000 ---p 000c1000 08:01 5789952 /usr/lib/libgmt.so.4
> 7f898f314000-7f898f315000 r--p 000c1000 08:01 5789952 /usr/lib/libgmt.so.4
> 7f898f315000-7f898f33a000 rw-p 000c2000 08:01 5789952 /usr/lib/libgmt.so.4
> 7f898f33a000-7f898f366000 rw-p 00000000 00:00 0
> 7f898f366000-7f898f388000 r-xp 00000000 08:01 11010876 /lib/x86_64-linux-gnu/ld-2.15.so
> 7f898f555000-7f898f568000 rw-p 00000000 00:00 0
> 7f898f585000-7f898f588000 rw-p 00000000 00:00 0
> 7f898f588000-7f898f589000 r--p 00022000 08:01 11010876 /lib/x86_64-linux-gnu/ld-2.15.so
> 7f898f589000-7f898f58b000 rw-p 00023000 08:01 11010876 /lib/x86_64-linux-gnu/ld-2.15.so
> 7fff436ef000-7fff43723000 rw-p 00000000 00:00 0 [stack]
> 7fff437ff000-7fff43800000 r-xp 00000000 00:00 0 [vdso]
> ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
> grdmath: Not a supported grid format [/opt/shakemap/bin/../data/9583161/output/BeQLbKDM1a.grd]
> grdmath: Not a supported grid format [/opt/shakemap/bin/../data/9583161/output/mScnvFV9i7.grd]
> grdmath: Not a supported grid format [/opt/shakemap/bin/../data/9583161/output/sU3YUndBaC.grd]
> grdmath: Not a supported grid format [/opt/shakemap/bin/../data/9583161/output/eDQoJ6czSe.grd]
> grdmath: GMT SYNTAX ERROR: /opt/shakemap/bin/../data/9583161/output/mi.grd is not a number, operator or file name
> grdmath: GMT SYNTAX ERROR: /opt/shakemap/bin/../data/9583161/output/mi.grd is not a number, operator or file name
> grdinfo: Could not find file [/opt/shakemap/bin/../data/9583161/output/mi.grd]
> grdmath: GMT SYNTAX ERROR: /opt/shakemap/bin/../data/9583161/output/mi.grd is not a number, operator or file name
> grd2xyz: Could not find file [/opt/shakemap/bin/../data/9583161/output/mi.grd]
> Uncertainty computation skipped (no Intensity > 6.0)
>
> also,
> ***@osop-displays2:/usr/lib/gmt/bin$ ./grdmath
> grdmath 4.5.6 [64-bit]
>
> As expected.
>
>
> Best regards,
>
>
> Branden Christensen
> The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
> Take a Virtual Tour: http://www.osop.com.pa/tour
>
>
> On Tue, Nov 26, 2013 at 1:33 AM, Paul Wessel <***@hawaii.edu> wrote:
> Hi Brandon-
>
> That is not clear, but for starters you should upgrade to 4.5.11 first as we cannot debug obsolete versions.
> You could then try again, this time with verbose output from your script so we can see what the commands are.
> -p
>
> On Nov 25, 2013, at 4:25 PM, Branden Christensen <***@OSOP.COM.PA> wrote:
>
>> Hi all:
>>
>>
>> I have spent a few days trying to solve this now. Time for some professional input.
>>
>> I have been trying to upgrade my ShakeMap installation to Ubuntu 12.04 64-bit. It is stumbling on grdmath.
>>
>> What would produce grdmath errors like?:
>>
>> *** buffer overflow detected ***: /usr/lib/gmt/bin/grdmath terminated
>>
>> &
>>
>> grdmath: Not a supported grid format
>>
>>
>> I am running GMT-4.5.6 with GSHHS2.1.1.
>>
>> Thanks for any input, suggestions, solutions.
>>
>>
>> Best regards from Panama,
>>
>>
>> Branden Christensen
>> The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
>> Take a Virtual Tour: http://www.osop.com.pa/tour
>> To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
>
> To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
>
> To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu


To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
Branden Christensen
2013-11-26 03:20:52 UTC
Permalink
Paul:


Attached you will find the 2>&1 output. It shows how grdmath is
implemented.

Thanks for taking a peek. The feedback from the ubuntu guys sounds
discouraging. I wonder what gives.


Kind Regards,



*Branden Christensen*
The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
Take a Virtual Tour: http://www.osop.com.pa/tour


On Tue, Nov 26, 2013 at 2:00 AM, Paul Wessel <***@hawaii.edu> wrote:

> Hi Barndon-
>
> No, looks like the crash is happening inside one of your scripts so I
> cannot see the call to grdmath. Could you turn verbose on for that script
> of something?
> We've had some feedback from ubuntu maintainers. They treat 4.5.11 as a
> more unstable version of 4.5.6 despite the fact that those last numbers
> only go up when we fix bugs.... So there probably wont be a 4.5.11 for a
> while for ubuntu if that is how they think.
> You could install form source, should be trivial.
>
> -p
>
>
> On Nov 25, 2013, at 4:48 PM, Branden Christensen <
> ***@OSOP.COM.PA> wrote:
>
> Paul:
>
>
> Than you for your immediate response.
>
> Boy that is tough news. If upgrading is anything like downgrading (I spent
> the weekend...the whole weekend rolling back to 4.5.1 which I knew worked
> with shakemap on Ubuntu 10.04 to test), then I am in for another challenge.
> In Ubuntu 12.04, sudo apt-get install gmt gets you 4.5.6. And Ubuntu 12.04
> will long long outlast newer versions of Ubuntu which are either
> experimental (the October releases) or not LTS (odd years like 2013).
>
> Here is the full output in case you spot something interesting. Otherwise,
> I will put my fingers to upgrading:
> ***@osop-displays2:/opt/shakemap/bin$ ./grind -event 9583161 -xml -qtm
> -verbose -lonspan 20.0
> Using Borcherdt-style site corrections.
> Map bound: -128.900000/-108.900000/26.323000/42.803000
> GMT_grd_is_global: no!
> GMT_boundcond_param_prep determined edgeinfo: gn = 0, gs = 0, nxp = 0, nyp
> = 0
> GMT_grd_is_global: no!
> /opt/shakemap/bin/../bin/topo2grd 9583161
> -128.900000/-108.900000/26.323000/42.803000 0.025/0.025 regime=active
> Using /opt/shakemap/dem. Final resolution fixed at 0.025.
> /opt/shakemap/dem/dem2grd.pl -128.900000/-108.900000/26.323000/42.803000
> tmp.topo2grd.3979 0.025
> HELLO WORLD. I am /opt/shakemap/dem/dem2grd.pl
> EXTRACTING w140n90.grd W:-128.900000 E:-108.900000 S:40 N:42.8083333333333
> /usr/lib/gmt/bin//grdcut -R-128.900000/-108.900000/40/42.8083333333333
> w140n90.grd -Gtmp.3980.w140n90
> /usr/lib/gmt/bin//grdcut -R-128.900000/-108.900000/40/42.8083333333333
> w140n90.grd -Gtmp.3980.w140n90
> mv tmp.3980.w140n90 tmp.3980.w140
> EXTRACTING w140n40.grd W:-128.900000 E:-108.900000 S:26.3083333333333 N:40
> /usr/lib/gmt/bin//grdcut -R-128.900000/-108.900000/26.3083333333333/40
> w140n40.grd -Gtmp.3980.w140n40
> /usr/lib/gmt/bin//grdcut -R-128.900000/-108.900000/26.3083333333333/40
> w140n40.grd -Gtmp.3980.w140n40
> /usr/lib/gmt/bin//grdpaste tmp.3980.w140 tmp.3980.w140n40
> -Gtmp.3980.w140.tmp
> mv tmp.3980.w140.tmp tmp.3980.w140
> mv tmp.3980.w140 tmp.topo2grd.3979.grd
> Done with pasting.
> FINAL BOUNDS: -R-128.900000/-108.900000/26.3083333333333/42.8083333333333
> cp tmp.topo2grd.3979.grd tmp.topo2grd.3979.grd.1
> /usr/lib/gmt/bin//grdsample tmp.topo2grd.3979.grd.1
> -Gtmp.topo2grd.3979.grd -I0.025
> /usr/lib/gmt/bin/grdlandmask -R-129.525000/-108.275000/25.683333/43.433333
> -I0.025 -G/opt/shakemap/bin/../data/9583161/output/topo_data.grd.landmask
> -Df -N-9999/NaN -F
> /usr/lib/gmt/bin/grdsample
> /opt/shakemap/bin/../data/9583161/output/topo_data.grd.landmask
> -G/opt/shakemap/bin/../data/9583161/output/topo_data.grd.landmask
> -R-128.900000/-108.900000/26.3083333333333/42.8083333333333 -I0.025
> /usr/lib/gmt/bin/grdmath
> /opt/shakemap/bin/../data/9583161/output/topo_data.grd.landmask
> /opt/shakemap/bin/../data/9583161/output/topo_data.grd.grad AND =
> /opt/shakemap/bin/../data/9583161/output/topo_data.grd.grad.1
> Using active tectonic factors.
> Using Shake::GMICE::WGRW11 for PGM2MI function
> Using Shake::GMICE::WGRW11 for Inverse PGM2MI function
> Using Shake::GMPE::Zhao06_intraslab for GMPE
> 2013-11-25 21:43:02 : grind: Bias -1.31 -0.93
> 2013-11-25 21:43:02 : grind: 26 amps flagged out this iteration
> 2013-11-25 21:43:04 : grind: Bias -1.31 -0.92
> 2013-11-25 21:43:04 : grind: 0 amps flagged out this iteration
> Using DefaultIPE for IPE
> Using Shake::GMPE::Zhao06_intraslab for GMPE
> Using Shake::GMICE::WGRW11 for PGM2MI function
> Using Shake::GMICE::WGRW11 for Inverse PGM2MI function
> Intensity Bias=-0.69
> 0 amps flagged out this iteration
> **** buffer overflow detected ***: /usr/lib/gmt/bin/grdmath terminated*
> ======= Backtrace: =========
> /lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x7fed03aa4807]
> /lib/x86_64-linux-gnu/libc.so.6(+0x109700)[0x7fed03aa3700]
> /lib/x86_64-linux-gnu/libc.so.6(+0x1085d3)[0x7fed03aa25d3]
> /usr/lib/libgmt.so.4(GMT_grd_init+0x106)[0x7fed0407d2e6]
> /usr/lib/gmt/bin/grdmath[0x40528b]
> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7fed039bb76d]
> /usr/lib/gmt/bin/grdmath[0x4077a9]
> ======= Memory map: ========
> 00400000-0041c000 r-xp 00000000 08:01 5904758
> /usr/lib/gmt/bin/grdmath
> 0061b000-0061c000 r--p 0001b000 08:01 5904758
> /usr/lib/gmt/bin/grdmath
> 0061c000-0061d000 rw-p 0001c000 08:01 5904758
> /usr/lib/gmt/bin/grdmath
> 02452000-02494000 rw-p 00000000 00:00 0
> [heap]
> 7fecfe349000-7fecfe35e000 r-xp 00000000 08:01 11010093
> /lib/x86_64-linux-gnu/libgcc_s.so.1
> 7fecfe35e000-7fecfe55d000 ---p 00015000 08:01 11010093
> /lib/x86_64-linux-gnu/libgcc_s.so.1
> 7fecfe55d000-7fecfe55e000 r--p 00014000 08:01 11010093
> /lib/x86_64-linux-gnu/libgcc_s.so.1
> 7fecfe55e000-7fecfe55f000 rw-p 00015000 08:01 11010093
> /lib/x86_64-linux-gnu/libgcc_s.so.1
> 7fecfe55f000-7fecfe568000 r-xp 00000000 08:01 11010866
> /lib/x86_64-linux-gnu/libcrypt-2.15.so
> 7fecfe568000-7fecfe768000 ---p 00009000 08:01 11010866
> /lib/x86_64-linux-gnu/libcrypt-2.15.so
> 7fecfe768000-7fecfe769000 r--p 00009000 08:01 11010866
> /lib/x86_64-linux-gnu/libcrypt-2.15.so
> 7fecfe769000-7fecfe76a000 rw-p 0000a000 08:01 11010866
> /lib/x86_64-linux-gnu/libcrypt-2.15.so
> 7fecfe76a000-7fecfe798000 rw-p 00000000 00:00 0
> 7fecfe798000-7fecfe836000 r-xp 00000000 08:01 5786858
> /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
> 7fecfe836000-7fecfea36000 ---p 0009e000 08:01 5786858
> /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
> 7fecfea36000-7fecfea38000 r--p 0009e000 08:01 5786858
> /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
> 7fecfea38000-7fecfea3a000 rw-p 000a0000 08:01 5786858
> /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
> 7fecfea3a000-7fecfea3b000 rw-p 00000000 00:00 0
> 7fecfea3b000-7fecfea80000 r-xp 00000000 08:01 5773595
> /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
> 7fecfea80000-7fecfec80000 ---p 00045000 08:01 5773595
> /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
> 7fecfec80000-7fecfec82000 r--p 00045000 08:01 5773595
> /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
> 7fecfec82000-7fecfec84000 rw-p 00047000 08:01 5773595
> /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
> 7fecfec84000-7fecfec85000 rw-p 00000000 00:00 0
> 7fecfec85000-7fecfec93000 r-xp 00000000 08:01 5773589
> /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
> 7fecfec93000-7fecfee92000 ---p 0000e000 08:01 5773589
> /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
> 7fecfee92000-7fecfee93000 r--p 0000d000 08:01 5773589
> /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
> 7fecfee93000-7fecfee94000 rw-p 0000e000 08:01 5773589
> /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
> 7fecfee94000-7fecfeebc000 r-xp 00000000 08:01 5773592
> /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
> 7fecfeebc000-7fecff0bb000 ---p 00028000 08:01 5773592
> /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
> 7fecff0bb000-7fecff0bc000 r--p 00027000 08:01 5773592
> /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
> 7fecff0bc000-7fecff0bd000 rw-p 00028000 08:01 5773592
> /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
> 7fecff0bd000-7fecff0c0000 r-xp 00000000 08:01 11010397
> /lib/x86_64-linux-gnu/libkeyutils.so.1.4
> 7fecff0c0000-7fecff2bf000 ---p 00003000 08:01 11010397
> /lib/x86_64-linux-gnu/libkeyutils.so.1.4
> 7fecff2bf000-7fecff2c0000 r--p 00002000 08:01 11010397
> /lib/x86_64-linux-gnu/libkeyutils.so.1.4
> 7fecff2c0000-7fecff2c1000 rw-p 00003000 08:01 11010397
> /lib/x86_64-linux-gnu/libkeyutils.so.1.4
> 7fecff2c1000-7fecff2d5000 r-xp 00000000 08:01 5773571
> /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
> 7fecff2d5000-7fecff4d4000 ---p 00014000 08:01 5773571
> /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
> 7fecff4d4000-7fecff4d5000 r--p 00013000 08:01 5773571
> /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
> 7fecff4d5000-7fecff4d6000 rw-p 00014000 08:01 5773571
> /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
> 7fecff4d6000-7fecff507000 r-xp 00000000 08:01 5773586
> /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
> 7fecff507000-7fecff707000 ---p 00031000 08:01 5773586
> /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
> 7fecff707000-7fecff708000 r--p 00031000 08:01 5773586
> /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
> 7fecff708000-7fecff709000 rw-p 00032000 08:01 5773586
> /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
> 7fecff709000-7fecff70a000 rw-p 00000000 00:00 0
> 7fecff70a000-7fecff7a5000 r-xp 00000000 08:01 5773574
> /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
> 7fecff7a5000-7fecff9a4000 ---p 0009b000 08:01 5773574
> /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
> 7fecff9a4000-7fecff9a6000 r--p 0009a000 08:01 5773574
> /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
> 7fecff9a6000-7fecff9aa000 rw-p 0009c000 08:01 5773574
> /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
> 7fecff9aa000-7fecffa2a000 r-xp 00000000 08:01 5773598
> /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
> 7fecffa2a000-7fecffc2a000 ---p 00080000 08:01 5773598
> /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
> 7fecffc2a000-7fecffc2c000 r--p 00080000 08:01 5773598
> /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
> 7fecffc2c000-7fecffc30000 rw-p 00082000 08:01 5773598
> /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
> 7fecffc30000-7fecffc36000 r-xp 00000000 08:01 5773601
> /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
> 7fecffc36000-7fecffe35000 ---p 00006000 08:01 5773601
> /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
> 7fecffe35000-7fecffe36000 r--p 00005000 08:01 5773601
> /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
> 7fecffe36000-7fecffe37000 rw-p 00006000 08:01 5773601
> /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
> 7fecffe37000-7fecffe39000 r-xp 00000000 08:01 11010847
> /lib/x86_64-linux-gnu/libdl-2.15.so
> 7fecffe39000-7fed00039000 ---p 00002000 08:01 11010847
> /lib/x86_64-linux-gnu/libdl-2.15.so
> 7fed00039000-7fed0003a000 r--p 00002000 08:01 11010847
> /lib/x86_64-linux-gnu/libdl-2.15.so
> 7fed0003a000-7fed0003b000 rw-p 00003000 08:01 11010847
> /lib/x86_64-linux-gnu/libdl-2.15.so
> 7fed0003b000-7fed0003e000 r-xp 00000000 08:01 11010342
> /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
> 7fed0003e000-7fed0023d000 ---p 00003000 08:01 11010342
> /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
> 7fed0023d000-7fed0023e000 r--p 00002000 08:01 11010342
> /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
> 7fed0023e000-7fed0023f000 rw-p 00003000 08:01 11010342
> /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
> 7fed0023f000-7fed00250000 r-xp 00000000 08:01 5773577
> /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
> 7fed00250000-7fed0044f000 ---p 00011000 08:01 5773577
> /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
> 7fed0044f000-7fed00450000 r--p 00010000 08:01 5773577
> /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
> 7fed00450000-7fed00451000 rw-p 00011000 08:01 5773577
> /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
> 7fed00451000-7fed00461000 r-xp 00000000 08:01 5771972
> /usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.12
> 7fed00461000-7fed00660000 ---p 00010000 08:01 5771972
> /usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.12
> 7fed00660000-7fed00661000 r--p 0000f000 08:01 5771972
> /usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.12
> 7fed00661000-7fed00662000 rw-p 00010000 08:01 5771972
> /usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.12
> 7fed00662000-7fed00669000 r-xp 00000000 08:01 5772636
> /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
> 7fed00669000-7fed00868000 ---p 00007000 08:01 5772636
> /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
> 7fed00868000-7fed00869000 r--p 00006000 08:01 5772636
> /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
> 7fed00869000-7fed0086a000 rw-p 00007000 08:01 5772636
> /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
> 7fed0086a000-7fed0086d000 r-xp 00000000 08:01 11010057
> /lib/x86_64-linux-gnu/libcom_err.so.2.1
> 7fed0086d000-7fed00a6c000 ---p 00003000 08:01 11010057
> /lib/x86_64-linux-gnu/libcom_err.so.2.1
> 7fed00a6c000-7fed00a6d000 r--p 00002000 08:01 11010057
> /lib/x86_64-linux-gnu/libcom_err.so.2.1
> 7fed00a6d000-7fed00a6e000 rw-p 00003000 08:01 11010057
> /lib/x86_64-linux-gnu/libcom_err.so.2.1
> 7fed00a6e000-7fed00a93000 r-xp 00000000 08:01 5773583
> /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
> 7fed00a93000-7fed00c93000 ---p 00025000 08:01 5773583
> /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
> 7fed00c93000-7fed00c94000 r--p 00025000 08:01 5773583
> /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
> 7fed00c94000-7fed00c95000 rw-p 00026000 08:01 5773583
> /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
> 7fed00c95000-7fed00c96000 rw-p 00000000 00:00 0
> 7fed00c96000-7fed00d5a000 r-xp 00000000 08:01 5786863
> /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
> 7fed00d5a000-7fed00f59000 ---p 000c4000 08:01 5786863
> /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
> 7fed00f59000-7fed00f63000 r--p 000c3000 08:01 5786863
> /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
> 7fed00f63000-7fed00f64000 rw-p 000cd000 08:01 5786863
> /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
> 7fed00f64000-7fed00f9e000 r-xp 00000000 08:01 5773604
> /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
> 7fed00f9e000-7fed0119e000 ---p 0003a000 08:01 5773604
> /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
> 7fed0119e000-7fed0119f000 r--p 0003a000 08:01 5773604
> /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
> 7fed0119f000-7fed011a2000 rw-p 0003b000 08:01 5773604
> /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
> 7fed011a2000-7fed011bc000 r-xp 00000000 08:01 5773607
> /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
> 7fed011bc000-7fed013bb000 ---p 0001a000 08:01 5773607
> /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
> 7fed013bb000-7fed013bc000 r--p 00019000 08:01 5773607
> /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
> 7fed013bc000-7fed013bd000 rw-p 0001a000 08:01 5773607
> /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
> 7fed013bd000-7fed013d5000 r-xp 00000000 08:01 11010858
> /lib/x86_64-linux-gnu/libresolv-2.15.so
> 7fed013d5000-7fed015d5000 ---p 00018000 08:01 11010858
> /lib/x86_64-linux-gnu/libresolv-2.15.so
> 7fed015d5000-7fed015d6000 r--p 00018000 08:01 11010858
> /lib/x86_64-linux-gnu/libresolv-2.15.so
> 7fed015d6000-7fed015d7000 rw-p 00019000 08:01 11010858
> /lib/x86_64-linux-gnu/libresolv-2.15.so
> 7fed015d7000-7fed015d9000 rw-p 00000000 00:00 0
> 7fed015d9000-7fed015f1000 r-xp 00000000 08:01 11010853
> /lib/x86_64-linux-gnu/libpthread-2.15.so
> 7fed015f1000-7fed017f0000 ---p 00018000 08:01 11010853
> /lib/x86_64-linux-gnu/libpthread-2.15.so
> 7fed017f0000-7fed017f1000 r--p 00017000 08:01 11010853
> /lib/x86_64-linux-gnu/libpthread-2.15.so
> 7fed017f1000-7fed017f2000 rw-p 00018000 08:01 11010853
> /lib/x86_64-linux-gnu/libpthread-2.15.so
> 7fed017f2000-7fed017f6000 rw-p 00000000 00:00 0
> 7fed017f6000-7fed0180e000 r-xp 00000000 08:01 5773616
> /usr/lib/x86_64-linux-gnu/librtmp.so.0
> 7fed0180e000-7fed01a0e000 ---p 00018000 08:01 5773616
> /usr/lib/x86_64-linux-gnu/librtmp.so.0
> 7fed01a0e000-7fed01a0f000 r--p 00018000 08:01 5773616
> /usr/lib/x86_64-linux-gnu/librtmp.so.0
> 7fed01a0f000-7fed01a10000 rw-p 00019000 08:01 5773616
> /usr/lib/x86_64-linux-gnu/librtmp.so.0
> 7fed01a10000-7fed01a8a000 r-xp 00000000 08:01 11010063
> /lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
> 7fed01a8a000-7fed01c8a000 ---p 0007a000 08:01 11010063
> /lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
> 7fed01c8a000-7fed01c8b000 r--p 0007a000 08:01 11010063
> /lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
> 7fed01c8b000-7fed01c8e000 rw-p 0007b000 08:01 11010063
> /lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
> 7fed01c8e000-7fed01d42000 r-xp 00000000 08:01 5786861
> /usr/lib/x86_64-linux-gnu/libgnutls.so.26.21.8
> 7fed01d42000-7fed01f42000 ---p 000b4000 08:01 5786861
> /usr/lib/x86_64-linux-gnu/libgnutls.so.26.21.8
> 7fed01f42000-7fed01f48000 r--p 000b4000 08:01 5786861
> /usr/lib/x86_64-linux-gnu/libgnutls.so.26.21.8
> 7fed01f48000-7fed01f49000 rw-p 000ba000 08:01 5786861
> /usr/lib/x86_64-linux-gnu/libgnutls.so.26.21.8
> 7fed01f49000-7fed01f4a000 rw-p 00000000 00:00 0
> 7fed01f4a000-7fed01f60000 r-xp 00000000 08:01 11010218
> /lib/x86_64-linux-gnu/libz.so.1.2.3.4
> 7fed01f60000-7fed0215f000 ---p 00016000 08:01 11010218
> /lib/x86_64-linux-gnu/libz.so.1.2.3.4
> 7fed0215f000-7fed02160000 r--p 00015000 08:01 11010218
> /lib/x86_64-linux-gnu/libz.so.1.2.3.4
> 7fed02160000-7fed02161000 rw-p 00016000 08:01 11010218
> /lib/x86_64-linux-gnu/libz.so.1.2.3.4
> 7fed02161000-7fed0219c000 r-xp 00000000 08:01 5772630
> /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
> 7fed0219c000-7fed0239c000 ---p 0003b000 08:01 5772630
> /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
> 7fed0239c000-7fed0239d000 r--p 0003b000 08:01 5772630
> /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
> 7fed0239d000-7fed0239f000 rw-p 0003c000 08:01 5772630
> /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
> 7fed0239f000-7fed023a6000 r-xp 00000000 08:01 11010856
> /lib/x86_64-linux-gnu/librt-2.15.so
> 7fed023a6000-7fed025a5000 ---p 00007000 08:01 11010856
> /lib/x86_64-linux-gnu/librt-2.15.so
> 7fed025a5000-7fed025a6000 r--p 00006000 08:01 11010856
> /lib/x86_64-linux-gnu/librt-2.15.so
> 7fed025a6000-7fed025a7000 rw-p 00007000 08:01 11010856
> /lib/x86_64-linux-gnu/librt-2.15.so
> 7fed025a7000-7fed025f2000 r-xp 00000000 08:01 5772626
> /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.8.1
> 7fed025f2000-7fed027f1000 ---p 0004b000 08:01 5772626
> /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.8.1
> 7fed027f1000-7fed027f3000 r--p 0004a000 08:01 5772626
> /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.8.1
> 7fed027f3000-7fed027f4000 rw-p 0004c000 08:01 5772626
> /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.8.1
> 7fed027f4000-7fed027f6000 rw-p 00000000 00:00 0
> 7fed027f6000-7fed02803000 r-xp 00000000 08:01 5786866
> /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.8.1
> 7fed02803000-7fed02a02000 ---p 0000d000 08:01 5786866
> /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.8.1
> 7fed02a02000-7fed02a03000 r--p 0000c000 08:01 5786866
> /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.8.1
> 7fed02a03000-7fed02a04000 rw-p 0000d000 08:01 5786866
> /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.8.1
> 7fed02a04000-7fed02a36000 r-xp 00000000 08:01 5773087
> /usr/lib/x86_64-linux-gnu/libidn.so.11.6.6
> 7fed02a36000-7fed02c35000 ---p 00032000 08:01 5773087
> /usr/lib/x86_64-linux-gnu/libidn.so.11.6.6
> 7fed02c35000-7fed02c36000 r--p 00031000 08:01 5773087
> /usr/lib/x86_64-linux-gnu/libidn.so.11.6.6
> 7fed02c36000-7fed02c37000 rw-p 00032000 08:01 5773087
> /usr/lib/x86_64-linux-gnu/libidn.so.11.6.6
> 7fed02c37000-7fed02fc9000 r-xp 00000000 08:01 5786767
> /usr/lib/libhdf5.so.6.0.3
> 7fed02fc9000-7fed031c8000 ---p 00392000 08:01 5786767
> /usr/lib/libhdf5.so.6.0.3
> 7fed031c8000-7fed031cd000 r--p 00391000 08:01 5786767
> /usr/lib/libhdf5.so.6.0.3
> 7fed031cd000-7fed031d1000 rw-p 00396000 08:01 5786767
> /usr/lib/libhdf5.so.6.0.3
> 7fed031d1000-7fed031d2000 rw-p 00000000 00:00 0
> 7fed031d2000-7fed031f2000 r-xp 00000000 08:01 5786770
> /usr/lib/libhdf5_hl.so.6.0.3
> 7fed031f2000-7fed033f1000 ---p 00020000 08:01 5786770
> /usr/lib/libhdf5_hl.so.6.0.3
> 7fed033f1000-7fed033f2000 r--p 0001f000 08:01 5786770
> /usr/lib/libhdf5_hl.so.6.0.3
> 7fed033f2000-7fed033f3000 rw-p 00020000 08:01 5786770
> /usr/lib/libhdf5_hl.so.6.0.3
> 7fed033f3000-7fed03404000 rw-p 00000000 00:00 0
> 7fed03404000-7fed03459000 r-xp 00000000 08:01 5773609
> /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.2.0
> 7fed03459000-7fed03659000 ---p 00055000 08:01 5773609
> /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.2.0
> 7fed03659000-7fed0365b000 r--p 00055000 08:01 5773609
> /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.2.0
> 7fed0365b000-7fed0365c000 rw-p 00057000 08:01 5773609
> /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.2.0
> 7fed0365c000-7fed0373f000 r-xp 00000000 08:01 5789585
> /usr/lib/libnetcdf.so.6.0.0
> 7fed0373f000-7fed0393f000 ---p 000e3000 08:01 5789585
> /usr/lib/libnetcdf.so.6.0.0
> 7fed0393f000-7fed0398d000 r--p 000e3000 08:01 5789585
> /usr/lib/libnetcdf.so.6.0.0
> 7fed0398d000-7fed0398f000 rw-p 00131000 08:01 5789585
> /usr/lib/libnetcdf.so.6.0.0
> 7fed0398f000-7fed0399a000 rw-p 00000000 00:00 0
> 7fed0399a000-7fed03b4f000 r-xp 00000000 08:01 11010850
> /lib/x86_64-linux-gnu/libc-2.15.so
> 7fed03b4f000-7fed03d4e000 ---p 001b5000 08:01 11010850
> /lib/x86_64-linux-gnu/libc-2.15.so
> 7fed03d4e000-7fed03d52000 r--p 001b4000 08:01 11010850
> /lib/x86_64-linux-gnu/libc-2.15.so
> 7fed03d52000-7fed03d54000 rw-p 001b8000 08:01 11010850
> /lib/x86_64-linux-gnu/libc-2.15.so
> 7fed03d54000-7fed03d59000 rw-p 00000000 00:00 0
> 7fed03d59000-7fed03e54000 r-xp 00000000 08:01 11010864
> /lib/x86_64-linux-gnu/libm-2.15.so
> 7fed03e54000-7fed04053000 ---p 000fb000 08:01 11010864
> /lib/x86_64-linux-gnu/libm-2.15.so
> 7fed04053000-7fed04054000 r--p 000fa000 08:01 11010864
> /lib/x86_64-linux-gnu/libm-2.15.so
> 7fed04054000-7fed04055000 rw-p 000fb000 08:01 11010864
> /lib/x86_64-linux-gnu/libm-2.15.so
> 7fed04055000-7fed04116000 r-xp 00000000 08:01 5789952
> /usr/lib/libgmt.so.4
> 7fed04116000-7fed04316000 ---p 000c1000 08:01 5789952
> /usr/lib/libgmt.so.4
> 7fed04316000-7fed04317000 r--p 000c1000 08:01 5789952
> /usr/lib/libgmt.so.4
> 7fed04317000-7fed0433c000 rw-p 000c2000 08:01 5789952
> /usr/lib/libgmt.so.4
> 7fed0433c000-7fed04368000 rw-p 00000000 00:00 0
> 7fed04368000-7fed0438a000 r-xp 00000000 08:01 11010876
> /lib/x86_64-linux-gnu/ld-2.15.so
> 7fed04557000-7fed0456a000 rw-p 00000000 00:00 0
> 7fed04587000-7fed0458a000 rw-p 00000000 00:00 0
> 7fed0458a000-7fed0458b000 r--p 00022000 08:01 11010876
> /lib/x86_64-linux-gnu/ld-2.15.so
> 7fed0458b000-7fed0458d000 rw-p 00023000 08:01 11010876
> /lib/x86_64-linux-gnu/ld-2.15.so
> 7fff0b75b000-7fff0b78f000 rw-p 00000000 00:00 0
> [stack]
> 7fff0b7ff000-7fff0b800000 r-xp 00000000 00:00 0
> [vdso]
> ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0
> [vsyscall]
> *grdmath: Not a supported grid format
> [/opt/shakemap/bin/../data/9583161/output/MGU7BgDk82.grd]*
> **** buffer overflow detected ***: /usr/lib/gmt/bin/grdmath terminated*
> ======= Backtrace: =========
> /lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x7f898eaa2807]
> /lib/x86_64-linux-gnu/libc.so.6(+0x109700)[0x7f898eaa1700]
> /lib/x86_64-linux-gnu/libc.so.6(+0x1085d3)[0x7f898eaa05d3]
> /usr/lib/libgmt.so.4(GMT_grd_init+0x106)[0x7f898f07b2e6]
> /usr/lib/gmt/bin/grdmath[0x40528b]
> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7f898e9b976d]
> /usr/lib/gmt/bin/grdmath[0x4077a9]
> ======= Memory map: ========
> 00400000-0041c000 r-xp 00000000 08:01 5904758
> /usr/lib/gmt/bin/grdmath
> 0061b000-0061c000 r--p 0001b000 08:01 5904758
> /usr/lib/gmt/bin/grdmath
> 0061c000-0061d000 rw-p 0001c000 08:01 5904758
> /usr/lib/gmt/bin/grdmath
> 019b7000-019f9000 rw-p 00000000 00:00 0
> [heap]
> 7f8989347000-7f898935c000 r-xp 00000000 08:01 11010093
> /lib/x86_64-linux-gnu/libgcc_s.so.1
> 7f898935c000-7f898955b000 ---p 00015000 08:01 11010093
> /lib/x86_64-linux-gnu/libgcc_s.so.1
> 7f898955b000-7f898955c000 r--p 00014000 08:01 11010093
> /lib/x86_64-linux-gnu/libgcc_s.so.1
> 7f898955c000-7f898955d000 rw-p 00015000 08:01 11010093
> /lib/x86_64-linux-gnu/libgcc_s.so.1
> 7f898955d000-7f8989566000 r-xp 00000000 08:01 11010866
> /lib/x86_64-linux-gnu/libcrypt-2.15.so
> 7f8989566000-7f8989766000 ---p 00009000 08:01 11010866
> /lib/x86_64-linux-gnu/libcrypt-2.15.so
> 7f8989766000-7f8989767000 r--p 00009000 08:01 11010866
> /lib/x86_64-linux-gnu/libcrypt-2.15.so
> 7f8989767000-7f8989768000 rw-p 0000a000 08:01 11010866
> /lib/x86_64-linux-gnu/libcrypt-2.15.so
> 7f8989768000-7f8989796000 rw-p 00000000 00:00 0
> 7f8989796000-7f8989834000 r-xp 00000000 08:01 5786858
> /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
> 7f8989834000-7f8989a34000 ---p 0009e000 08:01 5786858
> /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
> 7f8989a34000-7f8989a36000 r--p 0009e000 08:01 5786858
> /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
> 7f8989a36000-7f8989a38000 rw-p 000a0000 08:01 5786858
> /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
> 7f8989a38000-7f8989a39000 rw-p 00000000 00:00 0
> 7f8989a39000-7f8989a7e000 r-xp 00000000 08:01 5773595
> /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
> 7f8989a7e000-7f8989c7e000 ---p 00045000 08:01 5773595
> /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
> 7f8989c7e000-7f8989c80000 r--p 00045000 08:01 5773595
> /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
> 7f8989c80000-7f8989c82000 rw-p 00047000 08:01 5773595
> /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
> 7f8989c82000-7f8989c83000 rw-p 00000000 00:00 0
> 7f8989c83000-7f8989c91000 r-xp 00000000 08:01 5773589
> /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
> 7f8989c91000-7f8989e90000 ---p 0000e000 08:01 5773589
> /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
> 7f8989e90000-7f8989e91000 r--p 0000d000 08:01 5773589
> /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
> 7f8989e91000-7f8989e92000 rw-p 0000e000 08:01 5773589
> /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
> 7f8989e92000-7f8989eba000 r-xp 00000000 08:01 5773592
> /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
> 7f8989eba000-7f898a0b9000 ---p 00028000 08:01 5773592
> /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
> 7f898a0b9000-7f898a0ba000 r--p 00027000 08:01 5773592
> /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
> 7f898a0ba000-7f898a0bb000 rw-p 00028000 08:01 5773592
> /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
> 7f898a0bb000-7f898a0be000 r-xp 00000000 08:01 11010397
> /lib/x86_64-linux-gnu/libkeyutils.so.1.4
> 7f898a0be000-7f898a2bd000 ---p 00003000 08:01 11010397
> /lib/x86_64-linux-gnu/libkeyutils.so.1.4
> 7f898a2bd000-7f898a2be000 r--p 00002000 08:01 11010397
> /lib/x86_64-linux-gnu/libkeyutils.so.1.4
> 7f898a2be000-7f898a2bf000 rw-p 00003000 08:01 11010397
> /lib/x86_64-linux-gnu/libkeyutils.so.1.4
> 7f898a2bf000-7f898a2d3000 r-xp 00000000 08:01 5773571
> /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
> 7f898a2d3000-7f898a4d2000 ---p 00014000 08:01 5773571
> /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
> 7f898a4d2000-7f898a4d3000 r--p 00013000 08:01 5773571
> /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
> 7f898a4d3000-7f898a4d4000 rw-p 00014000 08:01 5773571
> /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
> 7f898a4d4000-7f898a505000 r-xp 00000000 08:01 5773586
> /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
> 7f898a505000-7f898a705000 ---p 00031000 08:01 5773586
> /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
> 7f898a705000-7f898a706000 r--p 00031000 08:01 5773586
> /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
> 7f898a706000-7f898a707000 rw-p 00032000 08:01 5773586
> /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
> 7f898a707000-7f898a708000 rw-p 00000000 00:00 0
> 7f898a708000-7f898a7a3000 r-xp 00000000 08:01 5773574
> /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
> 7f898a7a3000-7f898a9a2000 ---p 0009b000 08:01 5773574
> /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
> 7f898a9a2000-7f898a9a4000 r--p 0009a000 08:01 5773574
> /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
> 7f898a9a4000-7f898a9a8000 rw-p 0009c000 08:01 5773574
> /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
> 7f898a9a8000-7f898aa28000 r-xp 00000000 08:01 5773598
> /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
> 7f898aa28000-7f898ac28000 ---p 00080000 08:01 5773598
> /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
> 7f898ac28000-7f898ac2a000 r--p 00080000 08:01 5773598
> /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
> 7f898ac2a000-7f898ac2e000 rw-p 00082000 08:01 5773598
> /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
> 7f898ac2e000-7f898ac34000 r-xp 00000000 08:01 5773601
> /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
> 7f898ac34000-7f898ae33000 ---p 00006000 08:01 5773601
> /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
> 7f898ae33000-7f898ae34000 r--p 00005000 08:01 5773601
> /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
> 7f898ae34000-7f898ae35000 rw-p 00006000 08:01 5773601
> /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
> 7f898ae35000-7f898ae37000 r-xp 00000000 08:01 11010847
> /lib/x86_64-linux-gnu/libdl-2.15.so
> 7f898ae37000-7f898b037000 ---p 00002000 08:01 11010847
> /lib/x86_64-linux-gnu/libdl-2.15.so
> 7f898b037000-7f898b038000 r--p 00002000 08:01 11010847
> /lib/x86_64-linux-gnu/libdl-2.15.so
> 7f898b038000-7f898b039000 rw-p 00003000 08:01 11010847
> /lib/x86_64-linux-gnu/libdl-2.15.so
> 7f898b039000-7f898b03c000 r-xp 00000000 08:01 11010342
> /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
> 7f898b03c000-7f898b23b000 ---p 00003000 08:01 11010342
> /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
> 7f898b23b000-7f898b23c000 r--p 00002000 08:01 11010342
> /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
> 7f898b23c000-7f898b23d000 rw-p 00003000 08:01 11010342
> /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
> 7f898b23d000-7f898b24e000 r-xp 00000000 08:01 5773577
> /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
> 7f898b24e000-7f898b44d000 ---p 00011000 08:01 5773577
> /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
> 7f898b44d000-7f898b44e000 r--p 00010000 08:01 5773577
> /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
> 7f898b44e000-7f898b44f000 rw-p 00011000 08:01 5773577
> /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
> 7f898b44f000-7f898b45f000 r-xp 00000000 08:01 5771972
> /usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.12
> 7f898b45f000-7f898b65e000 ---p 00010000 08:01 5771972
> /usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.12
> 7f898b65e000-7f898b65f000 r--p 0000f000 08:01 5771972
> /usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.12
> 7f898b65f000-7f898b660000 rw-p 00010000 08:01 5771972
> /usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.12
> 7f898b660000-7f898b667000 r-xp 00000000 08:01 5772636
> /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
> 7f898b667000-7f898b866000 ---p 00007000 08:01 5772636
> /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
> 7f898b866000-7f898b867000 r--p 00006000 08:01 5772636
> /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
> 7f898b867000-7f898b868000 rw-p 00007000 08:01 5772636
> /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
> 7f898b868000-7f898b86b000 r-xp 00000000 08:01 11010057
> /lib/x86_64-linux-gnu/libcom_err.so.2.1
> 7f898b86b000-7f898ba6a000 ---p 00003000 08:01 11010057
> /lib/x86_64-linux-gnu/libcom_err.so.2.1
> 7f898ba6a000-7f898ba6b000 r--p 00002000 08:01 11010057
> /lib/x86_64-linux-gnu/libcom_err.so.2.1
> 7f898ba6b000-7f898ba6c000 rw-p 00003000 08:01 11010057
> /lib/x86_64-linux-gnu/libcom_err.so.2.1
> 7f898ba6c000-7f898ba91000 r-xp 00000000 08:01 5773583
> /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
> 7f898ba91000-7f898bc91000 ---p 00025000 08:01 5773583
> /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
> 7f898bc91000-7f898bc92000 r--p 00025000 08:01 5773583
> /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
> 7f898bc92000-7f898bc93000 rw-p 00026000 08:01 5773583
> /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
> 7f898bc93000-7f898bc94000 rw-p 00000000 00:00 0
> 7f898bc94000-7f898bd58000 r-xp 00000000 08:01 5786863
> /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
> 7f898bd58000-7f898bf57000 ---p 000c4000 08:01 5786863
> /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
> 7f898bf57000-7f898bf61000 r--p 000c3000 08:01 5786863
> /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
> 7f898bf61000-7f898bf62000 rw-p 000cd000 08:01 5786863
> /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
> 7f898bf62000-7f898bf9c000 r-xp 00000000 08:01 5773604
> /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
> 7f898bf9c000-7f898c19c000 ---p 0003a000 08:01 5773604
> /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
> 7f898c19c000-7f898c19d000 r--p 0003a000 08:01 5773604
> /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
> 7f898c19d000-7f898c1a0000 rw-p 0003b000 08:01 5773604
> /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
> 7f898c1a0000-7f898c1ba000 r-xp 00000000 08:01 5773607
> /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
> 7f898c1ba000-7f898c3b9000 ---p 0001a000 08:01 5773607
> /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
> 7f898c3b9000-7f898c3ba000 r--p 00019000 08:01 5773607
> /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
> 7f898c3ba000-7f898c3bb000 rw-p 0001a000 08:01 5773607
> /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
> 7f898c3bb000-7f898c3d3000 r-xp 00000000 08:01 11010858
> /lib/x86_64-linux-gnu/libresolv-2.15.so
> 7f898c3d3000-7f898c5d3000 ---p 00018000 08:01 11010858
> /lib/x86_64-linux-gnu/libresolv-2.15.so
> 7f898c5d3000-7f898c5d4000 r--p 00018000 08:01 11010858
> /lib/x86_64-linux-gnu/libresolv-2.15.so
> 7f898c5d4000-7f898c5d5000 rw-p 00019000 08:01 11010858
> /lib/x86_64-linux-gnu/libresolv-2.15.so
> 7f898c5d5000-7f898c5d7000 rw-p 00000000 00:00 0
> 7f898c5d7000-7f898c5ef000 r-xp 00000000 08:01 11010853
> /lib/x86_64-linux-gnu/libpthread-2.15.so
> 7f898c5ef000-7f898c7ee000 ---p 00018000 08:01 11010853
> /lib/x86_64-linux-gnu/libpthread-2.15.so
> 7f898c7ee000-7f898c7ef000 r--p 00017000 08:01 11010853
> /lib/x86_64-linux-gnu/libpthread-2.15.so
> 7f898c7ef000-7f898c7f0000 rw-p 00018000 08:01 11010853
> /lib/x86_64-linux-gnu/libpthread-2.15.so
> 7f898c7f0000-7f898c7f4000 rw-p 00000000 00:00 0
> 7f898c7f4000-7f898c80c000 r-xp 00000000 08:01 5773616
> /usr/lib/x86_64-linux-gnu/librtmp.so.0
> 7f898c80c000-7f898ca0c000 ---p 00018000 08:01 5773616
> /usr/lib/x86_64-linux-gnu/librtmp.so.0
> 7f898ca0c000-7f898ca0d000 r--p 00018000 08:01 5773616
> /usr/lib/x86_64-linux-gnu/librtmp.so.0
> 7f898ca0d000-7f898ca0e000 rw-p 00019000 08:01 5773616
> /usr/lib/x86_64-linux-gnu/librtmp.so.0
> 7f898ca0e000-7f898ca88000 r-xp 00000000 08:01 11010063
> /lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
> 7f898ca88000-7f898cc88000 ---p 0007a000 08:01 11010063
> /lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
> 7f898cc88000-7f898cc89000 r--p 0007a000 08:01 11010063
> /lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
> 7f898cc89000-7f898cc8c000 rw-p 0007b000 08:01 11010063
> /lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
> 7f898cc8c000-7f898cd40000 r-xp 00000000 08:01 5786861
> /usr/lib/x86_64-linux-gnu/libgnutls.so.26.21.8
> 7f898cd40000-7f898cf40000 ---p 000b4000 08:01 5786861
> /usr/lib/x86_64-linux-gnu/libgnutls.so.26.21.8
> 7f898cf40000-7f898cf46000 r--p 000b4000 08:01 5786861
> /usr/lib/x86_64-linux-gnu/libgnutls.so.26.21.8
> 7f898cf46000-7f898cf47000 rw-p 000ba000 08:01 5786861
> /usr/lib/x86_64-linux-gnu/libgnutls.so.26.21.8
> 7f898cf47000-7f898cf48000 rw-p 00000000 00:00 0
> 7f898cf48000-7f898cf5e000 r-xp 00000000 08:01 11010218
> /lib/x86_64-linux-gnu/libz.so.1.2.3.4
> 7f898cf5e000-7f898d15d000 ---p 00016000 08:01 11010218
> /lib/x86_64-linux-gnu/libz.so.1.2.3.4
> 7f898d15d000-7f898d15e000 r--p 00015000 08:01 11010218
> /lib/x86_64-linux-gnu/libz.so.1.2.3.4
> 7f898d15e000-7f898d15f000 rw-p 00016000 08:01 11010218
> /lib/x86_64-linux-gnu/libz.so.1.2.3.4
> 7f898d15f000-7f898d19a000 r-xp 00000000 08:01 5772630
> /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
> 7f898d19a000-7f898d39a000 ---p 0003b000 08:01 5772630
> /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
> 7f898d39a000-7f898d39b000 r--p 0003b000 08:01 5772630
> /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
> 7f898d39b000-7f898d39d000 rw-p 0003c000 08:01 5772630
> /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
> 7f898d39d000-7f898d3a4000 r-xp 00000000 08:01 11010856
> /lib/x86_64-linux-gnu/librt-2.15.so
> 7f898d3a4000-7f898d5a3000 ---p 00007000 08:01 11010856
> /lib/x86_64-linux-gnu/librt-2.15.so
> 7f898d5a3000-7f898d5a4000 r--p 00006000 08:01 11010856
> /lib/x86_64-linux-gnu/librt-2.15.so
> 7f898d5a4000-7f898d5a5000 rw-p 00007000 08:01 11010856
> /lib/x86_64-linux-gnu/librt-2.15.so
> 7f898d5a5000-7f898d5f0000 r-xp 00000000 08:01 5772626
> /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.8.1
> 7f898d5f0000-7f898d7ef000 ---p 0004b000 08:01 5772626
> /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.8.1
> 7f898d7ef000-7f898d7f1000 r--p 0004a000 08:01 5772626
> /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.8.1
> 7f898d7f1000-7f898d7f2000 rw-p 0004c000 08:01 5772626
> /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.8.1
> 7f898d7f2000-7f898d7f4000 rw-p 00000000 00:00 0
> 7f898d7f4000-7f898d801000 r-xp 00000000 08:01 5786866
> /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.8.1
> 7f898d801000-7f898da00000 ---p 0000d000 08:01 5786866
> /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.8.1
> 7f898da00000-7f898da01000 r--p 0000c000 08:01 5786866
> /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.8.1
> 7f898da01000-7f898da02000 rw-p 0000d000 08:01 5786866
> /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.8.1
> 7f898da02000-7f898da34000 r-xp 00000000 08:01 5773087
> /usr/lib/x86_64-linux-gnu/libidn.so.11.6.6
> 7f898da34000-7f898dc33000 ---p 00032000 08:01 5773087
> /usr/lib/x86_64-linux-gnu/libidn.so.11.6.6
> 7f898dc33000-7f898dc34000 r--p 00031000 08:01 5773087
> /usr/lib/x86_64-linux-gnu/libidn.so.11.6.6
> 7f898dc34000-7f898dc35000 rw-p 00032000 08:01 5773087
> /usr/lib/x86_64-linux-gnu/libidn.so.11.6.6
> 7f898dc35000-7f898dfc7000 r-xp 00000000 08:01 5786767
> /usr/lib/libhdf5.so.6.0.3
> 7f898dfc7000-7f898e1c6000 ---p 00392000 08:01 5786767
> /usr/lib/libhdf5.so.6.0.3
> 7f898e1c6000-7f898e1cb000 r--p 00391000 08:01 5786767
> /usr/lib/libhdf5.so.6.0.3
> 7f898e1cb000-7f898e1cf000 rw-p 00396000 08:01 5786767
> /usr/lib/libhdf5.so.6.0.3
> 7f898e1cf000-7f898e1d0000 rw-p 00000000 00:00 0
> 7f898e1d0000-7f898e1f0000 r-xp 00000000 08:01 5786770
> /usr/lib/libhdf5_hl.so.6.0.3
> 7f898e1f0000-7f898e3ef000 ---p 00020000 08:01 5786770
> /usr/lib/libhdf5_hl.so.6.0.3
> 7f898e3ef000-7f898e3f0000 r--p 0001f000 08:01 5786770
> /usr/lib/libhdf5_hl.so.6.0.3
> 7f898e3f0000-7f898e3f1000 rw-p 00020000 08:01 5786770
> /usr/lib/libhdf5_hl.so.6.0.3
> 7f898e3f1000-7f898e402000 rw-p 00000000 00:00 0
> 7f898e402000-7f898e457000 r-xp 00000000 08:01 5773609
> /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.2.0
> 7f898e457000-7f898e657000 ---p 00055000 08:01 5773609
> /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.2.0
> 7f898e657000-7f898e659000 r--p 00055000 08:01 5773609
> /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.2.0
> 7f898e659000-7f898e65a000 rw-p 00057000 08:01 5773609
> /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.2.0
> 7f898e65a000-7f898e73d000 r-xp 00000000 08:01 5789585
> /usr/lib/libnetcdf.so.6.0.0
> 7f898e73d000-7f898e93d000 ---p 000e3000 08:01 5789585
> /usr/lib/libnetcdf.so.6.0.0
> 7f898e93d000-7f898e98b000 r--p 000e3000 08:01 5789585
> /usr/lib/libnetcdf.so.6.0.0
> 7f898e98b000-7f898e98d000 rw-p 00131000 08:01 5789585
> /usr/lib/libnetcdf.so.6.0.0
> 7f898e98d000-7f898e998000 rw-p 00000000 00:00 0
> 7f898e998000-7f898eb4d000 r-xp 00000000 08:01 11010850
> /lib/x86_64-linux-gnu/libc-2.15.so
> 7f898eb4d000-7f898ed4c000 ---p 001b5000 08:01 11010850
> /lib/x86_64-linux-gnu/libc-2.15.so
> 7f898ed4c000-7f898ed50000 r--p 001b4000 08:01 11010850
> /lib/x86_64-linux-gnu/libc-2.15.so
> 7f898ed50000-7f898ed52000 rw-p 001b8000 08:01 11010850
> /lib/x86_64-linux-gnu/libc-2.15.so
> 7f898ed52000-7f898ed57000 rw-p 00000000 00:00 0
> 7f898ed57000-7f898ee52000 r-xp 00000000 08:01 11010864
> /lib/x86_64-linux-gnu/libm-2.15.so
> 7f898ee52000-7f898f051000 ---p 000fb000 08:01 11010864
> /lib/x86_64-linux-gnu/libm-2.15.so
> 7f898f051000-7f898f052000 r--p 000fa000 08:01 11010864
> /lib/x86_64-linux-gnu/libm-2.15.so
> 7f898f052000-7f898f053000 rw-p 000fb000 08:01 11010864
> /lib/x86_64-linux-gnu/libm-2.15.so
> 7f898f053000-7f898f114000 r-xp 00000000 08:01 5789952
> /usr/lib/libgmt.so.4
> 7f898f114000-7f898f314000 ---p 000c1000 08:01 5789952
> /usr/lib/libgmt.so.4
> 7f898f314000-7f898f315000 r--p 000c1000 08:01 5789952
> /usr/lib/libgmt.so.4
> 7f898f315000-7f898f33a000 rw-p 000c2000 08:01 5789952
> /usr/lib/libgmt.so.4
> 7f898f33a000-7f898f366000 rw-p 00000000 00:00 0
> 7f898f366000-7f898f388000 r-xp 00000000 08:01 11010876
> /lib/x86_64-linux-gnu/ld-2.15.so
> 7f898f555000-7f898f568000 rw-p 00000000 00:00 0
> 7f898f585000-7f898f588000 rw-p 00000000 00:00 0
> 7f898f588000-7f898f589000 r--p 00022000 08:01 11010876
> /lib/x86_64-linux-gnu/ld-2.15.so
> 7f898f589000-7f898f58b000 rw-p 00023000 08:01 11010876
> /lib/x86_64-linux-gnu/ld-2.15.so
> 7fff436ef000-7fff43723000 rw-p 00000000 00:00 0
> [stack]
> 7fff437ff000-7fff43800000 r-xp 00000000 00:00 0
> [vdso]
> ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0
> [vsyscall]
> *grdmath: Not a supported grid format
> [/opt/shakemap/bin/../data/9583161/output/BeQLbKDM1a.grd]*
> *grdmath: Not a supported grid format
> [/opt/shakemap/bin/../data/9583161/output/mScnvFV9i7.grd]*
> *grdmath: Not a supported grid format
> [/opt/shakemap/bin/../data/9583161/output/sU3YUndBaC.grd]*
> *grdmath: Not a supported grid format
> [/opt/shakemap/bin/../data/9583161/output/eDQoJ6czSe.grd]*
> *grdmath: GMT SYNTAX ERROR:
> /opt/shakemap/bin/../data/9583161/output/mi.grd is not a number, operator
> or file name*
> *grdmath: GMT SYNTAX ERROR:
> /opt/shakemap/bin/../data/9583161/output/mi.grd is not a number, operator
> or file name*
> grdinfo: Could not find file
> [/opt/shakemap/bin/../data/9583161/output/mi.grd]
> *grdmath: GMT SYNTAX ERROR:
> /opt/shakemap/bin/../data/9583161/output/mi.grd is not a number, operator
> or file name*
> grd2xyz: Could not find file
> [/opt/shakemap/bin/../data/9583161/output/mi.grd]
> Uncertainty computation skipped (no Intensity > 6.0)
>
> also,
> ***@osop-displays2:/usr/lib/gmt/bin$ ./grdmath
> grdmath 4.5.6 [64-bit]
>
> As expected.
>
>
> Best regards,
>
>
> *Branden Christensen*
> The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
> Take a Virtual Tour: http://www.osop.com.pa/tour
>
>
> On Tue, Nov 26, 2013 at 1:33 AM, Paul Wessel <***@hawaii.edu> wrote:
>
>> Hi Brandon-
>>
>> That is not clear, but for starters you should upgrade to 4.5.11 first as
>> we cannot debug obsolete versions.
>> You could then try again, this time with verbose output from your script
>> so we can see what the commands are.
>> -p
>>
>> On Nov 25, 2013, at 4:25 PM, Branden Christensen <
>> ***@OSOP.COM.PA> wrote:
>>
>> Hi all:
>>
>>
>> I have spent a few days trying to solve this now. Time for some
>> professional input.
>>
>> I have been trying to upgrade my ShakeMap installation to Ubuntu 12.04
>> 64-bit. It is stumbling on grdmath.
>>
>> What would produce grdmath errors like?:
>>
>> *** buffer overflow detected ***: /usr/lib/gmt/bin/grdmath terminated
>>
>> &
>>
>> grdmath: Not a supported grid format
>>
>>
>> I am running GMT-4.5.6 with GSHHS2.1.1.
>>
>> Thanks for any input, suggestions, solutions.
>>
>>
>> Best regards from Panama,
>>
>>
>> *Branden Christensen*
>> The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
>> Take a Virtual Tour: http://www.osop.com.pa/tour
>> To unsubscribe, send the message "signoff gmt-help" to
>> ***@lists.hawaii.edu
>>
>>
>> To unsubscribe, send the message "signoff gmt-help" to
>> ***@lists.hawaii.edu
>
>
> To unsubscribe, send the message "signoff gmt-help" to
> ***@lists.hawaii.edu
>
>
> To unsubscribe, send the message "signoff gmt-help" to
> ***@lists.hawaii.edu
>

To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
Paul Wessel
2013-11-26 03:33:25 UTC
Permalink
Brandon, sorry, all I see is
grdmath: Not a supported grid format [/opt/shakemap/bin/../data/9583161/output/4pF4D4BQc9.grd]

but no trace of where 4pF4D4BQc9.grd is made. Is this what causes the
*** buffer overflow detected ***: /usr/lib/gmt/bin/grdmath terminated ?

I guess I still do not see where GMT is crashing.
-p

On Nov 25, 2013, at 5:20 PM, Branden Christensen <***@OSOP.COM.PA> wrote:

> Paul:
>
>
> Attached you will find the 2>&1 output. It shows how grdmath is implemented.
>
> Thanks for taking a peek. The feedback from the ubuntu guys sounds discouraging. I wonder what gives.
>
>
> Kind Regards,
>
>
>
> Branden Christensen
> The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
> Take a Virtual Tour: http://www.osop.com.pa/tour
>
>
> On Tue, Nov 26, 2013 at 2:00 AM, Paul Wessel <***@hawaii.edu> wrote:
> Hi Barndon-
>
> No, looks like the crash is happening inside one of your scripts so I cannot see the call to grdmath. Could you turn verbose on for that script of something?
> We've had some feedback from ubuntu maintainers. They treat 4.5.11 as a more unstable version of 4.5.6 despite the fact that those last numbers only go up when we fix bugs.... So there probably wont be a 4.5.11 for a while for ubuntu if that is how they think.
> You could install form source, should be trivial.
>
> -p
>
>
> On Nov 25, 2013, at 4:48 PM, Branden Christensen <***@OSOP.COM.PA> wrote:
>
>> Paul:
>>
>>
>> Than you for your immediate response.
>>
>> Boy that is tough news. If upgrading is anything like downgrading (I spent the weekend...the whole weekend rolling back to 4.5.1 which I knew worked with shakemap on Ubuntu 10.04 to test), then I am in for another challenge. In Ubuntu 12.04, sudo apt-get install gmt gets you 4.5.6. And Ubuntu 12.04 will long long outlast newer versions of Ubuntu which are either experimental (the October releases) or not LTS (odd years like 2013).
>>
>> Here is the full output in case you spot something interesting. Otherwise, I will put my fingers to upgrading:
>> ***@osop-displays2:/opt/shakemap/bin$ ./grind -event 9583161 -xml -qtm -verbose -lonspan 20.0
>> Using Borcherdt-style site corrections.
>> Map bound: -128.900000/-108.900000/26.323000/42.803000
>> GMT_grd_is_global: no!
>> GMT_boundcond_param_prep determined edgeinfo: gn = 0, gs = 0, nxp = 0, nyp = 0
>> GMT_grd_is_global: no!
>> /opt/shakemap/bin/../bin/topo2grd 9583161 -128.900000/-108.900000/26.323000/42.803000 0.025/0.025 regime=active
>> Using /opt/shakemap/dem. Final resolution fixed at 0.025.
>> /opt/shakemap/dem/dem2grd.pl -128.900000/-108.900000/26.323000/42.803000 tmp.topo2grd.3979 0.025
>> HELLO WORLD. I am /opt/shakemap/dem/dem2grd.pl
>> EXTRACTING w140n90.grd W:-128.900000 E:-108.900000 S:40 N:42.8083333333333
>> /usr/lib/gmt/bin//grdcut -R-128.900000/-108.900000/40/42.8083333333333 w140n90.grd -Gtmp.3980.w140n90
>> /usr/lib/gmt/bin//grdcut -R-128.900000/-108.900000/40/42.8083333333333 w140n90.grd -Gtmp.3980.w140n90
>> mv tmp.3980.w140n90 tmp.3980.w140
>> EXTRACTING w140n40.grd W:-128.900000 E:-108.900000 S:26.3083333333333 N:40
>> /usr/lib/gmt/bin//grdcut -R-128.900000/-108.900000/26.3083333333333/40 w140n40.grd -Gtmp.3980.w140n40
>> /usr/lib/gmt/bin//grdcut -R-128.900000/-108.900000/26.3083333333333/40 w140n40.grd -Gtmp.3980.w140n40
>> /usr/lib/gmt/bin//grdpaste tmp.3980.w140 tmp.3980.w140n40 -Gtmp.3980.w140.tmp
>> mv tmp.3980.w140.tmp tmp.3980.w140
>> mv tmp.3980.w140 tmp.topo2grd.3979.grd
>> Done with pasting.
>> FINAL BOUNDS: -R-128.900000/-108.900000/26.3083333333333/42.8083333333333
>> cp tmp.topo2grd.3979.grd tmp.topo2grd.3979.grd.1
>> /usr/lib/gmt/bin//grdsample tmp.topo2grd.3979.grd.1 -Gtmp.topo2grd.3979.grd -I0.025
>> /usr/lib/gmt/bin/grdlandmask -R-129.525000/-108.275000/25.683333/43.433333 -I0.025 -G/opt/shakemap/bin/../data/9583161/output/topo_data.grd.landmask -Df -N-9999/NaN -F
>> /usr/lib/gmt/bin/grdsample /opt/shakemap/bin/../data/9583161/output/topo_data.grd.landmask -G/opt/shakemap/bin/../data/9583161/output/topo_data.grd.landmask -R-128.900000/-108.900000/26.3083333333333/42.8083333333333 -I0.025
>> /usr/lib/gmt/bin/grdmath /opt/shakemap/bin/../data/9583161/output/topo_data.grd.landmask /opt/shakemap/bin/../data/9583161/output/topo_data.grd.grad AND = /opt/shakemap/bin/../data/9583161/output/topo_data.grd.grad.1
>> Using active tectonic factors.
>> Using Shake::GMICE::WGRW11 for PGM2MI function
>> Using Shake::GMICE::WGRW11 for Inverse PGM2MI function
>> Using Shake::GMPE::Zhao06_intraslab for GMPE
>> 2013-11-25 21:43:02 : grind: Bias -1.31 -0.93
>> 2013-11-25 21:43:02 : grind: 26 amps flagged out this iteration
>> 2013-11-25 21:43:04 : grind: Bias -1.31 -0.92
>> 2013-11-25 21:43:04 : grind: 0 amps flagged out this iteration
>> Using DefaultIPE for IPE
>> Using Shake::GMPE::Zhao06_intraslab for GMPE
>> Using Shake::GMICE::WGRW11 for PGM2MI function
>> Using Shake::GMICE::WGRW11 for Inverse PGM2MI function
>> Intensity Bias=-0.69
>> 0 amps flagged out this iteration
>> *** buffer overflow detected ***: /usr/lib/gmt/bin/grdmath terminated
>> ======= Backtrace: =========
>> /lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x7fed03aa4807]
>> /lib/x86_64-linux-gnu/libc.so.6(+0x109700)[0x7fed03aa3700]
>> /lib/x86_64-linux-gnu/libc.so.6(+0x1085d3)[0x7fed03aa25d3]
>> /usr/lib/libgmt.so.4(GMT_grd_init+0x106)[0x7fed0407d2e6]
>> /usr/lib/gmt/bin/grdmath[0x40528b]
>> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7fed039bb76d]
>> /usr/lib/gmt/bin/grdmath[0x4077a9]
>> ======= Memory map: ========
>> 00400000-0041c000 r-xp 00000000 08:01 5904758 /usr/lib/gmt/bin/grdmath
>> 0061b000-0061c000 r--p 0001b000 08:01 5904758 /usr/lib/gmt/bin/grdmath
>> 0061c000-0061d000 rw-p 0001c000 08:01 5904758 /usr/lib/gmt/bin/grdmath
>> 02452000-02494000 rw-p 00000000 00:00 0 [heap]
>> 7fecfe349000-7fecfe35e000 r-xp 00000000 08:01 11010093 /lib/x86_64-linux-gnu/libgcc_s.so.1
>> 7fecfe35e000-7fecfe55d000 ---p 00015000 08:01 11010093 /lib/x86_64-linux-gnu/libgcc_s.so.1
>> 7fecfe55d000-7fecfe55e000 r--p 00014000 08:01 11010093 /lib/x86_64-linux-gnu/libgcc_s.so.1
>> 7fecfe55e000-7fecfe55f000 rw-p 00015000 08:01 11010093 /lib/x86_64-linux-gnu/libgcc_s.so.1
>> 7fecfe55f000-7fecfe568000 r-xp 00000000 08:01 11010866 /lib/x86_64-linux-gnu/libcrypt-2.15.so
>> 7fecfe568000-7fecfe768000 ---p 00009000 08:01 11010866 /lib/x86_64-linux-gnu/libcrypt-2.15.so
>> 7fecfe768000-7fecfe769000 r--p 00009000 08:01 11010866 /lib/x86_64-linux-gnu/libcrypt-2.15.so
>> 7fecfe769000-7fecfe76a000 rw-p 0000a000 08:01 11010866 /lib/x86_64-linux-gnu/libcrypt-2.15.so
>> 7fecfe76a000-7fecfe798000 rw-p 00000000 00:00 0
>> 7fecfe798000-7fecfe836000 r-xp 00000000 08:01 5786858 /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
>> 7fecfe836000-7fecfea36000 ---p 0009e000 08:01 5786858 /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
>> 7fecfea36000-7fecfea38000 r--p 0009e000 08:01 5786858 /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
>> 7fecfea38000-7fecfea3a000 rw-p 000a0000 08:01 5786858 /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
>> 7fecfea3a000-7fecfea3b000 rw-p 00000000 00:00 0
>> 7fecfea3b000-7fecfea80000 r-xp 00000000 08:01 5773595 /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
>> 7fecfea80000-7fecfec80000 ---p 00045000 08:01 5773595 /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
>> 7fecfec80000-7fecfec82000 r--p 00045000 08:01 5773595 /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
>> 7fecfec82000-7fecfec84000 rw-p 00047000 08:01 5773595 /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
>> 7fecfec84000-7fecfec85000 rw-p 00000000 00:00 0
>> 7fecfec85000-7fecfec93000 r-xp 00000000 08:01 5773589 /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
>> 7fecfec93000-7fecfee92000 ---p 0000e000 08:01 5773589 /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
>> 7fecfee92000-7fecfee93000 r--p 0000d000 08:01 5773589 /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
>> 7fecfee93000-7fecfee94000 rw-p 0000e000 08:01 5773589 /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
>> 7fecfee94000-7fecfeebc000 r-xp 00000000 08:01 5773592 /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
>> 7fecfeebc000-7fecff0bb000 ---p 00028000 08:01 5773592 /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
>> 7fecff0bb000-7fecff0bc000 r--p 00027000 08:01 5773592 /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
>> 7fecff0bc000-7fecff0bd000 rw-p 00028000 08:01 5773592 /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
>> 7fecff0bd000-7fecff0c0000 r-xp 00000000 08:01 11010397 /lib/x86_64-linux-gnu/libkeyutils.so.1.4
>> 7fecff0c0000-7fecff2bf000 ---p 00003000 08:01 11010397 /lib/x86_64-linux-gnu/libkeyutils.so.1.4
>> 7fecff2bf000-7fecff2c0000 r--p 00002000 08:01 11010397 /lib/x86_64-linux-gnu/libkeyutils.so.1.4
>> 7fecff2c0000-7fecff2c1000 rw-p 00003000 08:01 11010397 /lib/x86_64-linux-gnu/libkeyutils.so.1.4
>> 7fecff2c1000-7fecff2d5000 r-xp 00000000 08:01 5773571 /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
>> 7fecff2d5000-7fecff4d4000 ---p 00014000 08:01 5773571 /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
>> 7fecff4d4000-7fecff4d5000 r--p 00013000 08:01 5773571 /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
>> 7fecff4d5000-7fecff4d6000 rw-p 00014000 08:01 5773571 /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
>> 7fecff4d6000-7fecff507000 r-xp 00000000 08:01 5773586 /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
>> 7fecff507000-7fecff707000 ---p 00031000 08:01 5773586 /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
>> 7fecff707000-7fecff708000 r--p 00031000 08:01 5773586 /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
>> 7fecff708000-7fecff709000 rw-p 00032000 08:01 5773586 /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
>> 7fecff709000-7fecff70a000 rw-p 00000000 00:00 0
>> 7fecff70a000-7fecff7a5000 r-xp 00000000 08:01 5773574 /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
>> 7fecff7a5000-7fecff9a4000 ---p 0009b000 08:01 5773574 /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
>> 7fecff9a4000-7fecff9a6000 r--p 0009a000 08:01 5773574 /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
>> 7fecff9a6000-7fecff9aa000 rw-p 0009c000 08:01 5773574 /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
>> 7fecff9aa000-7fecffa2a000 r-xp 00000000 08:01 5773598 /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
>> 7fecffa2a000-7fecffc2a000 ---p 00080000 08:01 5773598 /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
>> 7fecffc2a000-7fecffc2c000 r--p 00080000 08:01 5773598 /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
>> 7fecffc2c000-7fecffc30000 rw-p 00082000 08:01 5773598 /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
>> 7fecffc30000-7fecffc36000 r-xp 00000000 08:01 5773601 /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
>> 7fecffc36000-7fecffe35000 ---p 00006000 08:01 5773601 /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
>> 7fecffe35000-7fecffe36000 r--p 00005000 08:01 5773601 /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
>> 7fecffe36000-7fecffe37000 rw-p 00006000 08:01 5773601 /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
>> 7fecffe37000-7fecffe39000 r-xp 00000000 08:01 11010847 /lib/x86_64-linux-gnu/libdl-2.15.so
>> 7fecffe39000-7fed00039000 ---p 00002000 08:01 11010847 /lib/x86_64-linux-gnu/libdl-2.15.so
>> 7fed00039000-7fed0003a000 r--p 00002000 08:01 11010847 /lib/x86_64-linux-gnu/libdl-2.15.so
>> 7fed0003a000-7fed0003b000 rw-p 00003000 08:01 11010847 /lib/x86_64-linux-gnu/libdl-2.15.so
>> 7fed0003b000-7fed0003e000 r-xp 00000000 08:01 11010342 /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
>> 7fed0003e000-7fed0023d000 ---p 00003000 08:01 11010342 /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
>> 7fed0023d000-7fed0023e000 r--p 00002000 08:01 11010342 /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
>> 7fed0023e000-7fed0023f000 rw-p 00003000 08:01 11010342 /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
>> 7fed0023f000-7fed00250000 r-xp 00000000 08:01 5773577 /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
>> 7fed00250000-7fed0044f000 ---p 00011000 08:01 5773577 /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
>> 7fed0044f000-7fed00450000 r--p 00010000 08:01 5773577 /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
>> 7fed00450000-7fed00451000 rw-p 00011000 08:01 5773577 /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
>> 7fed00451000-7fed00461000 r-xp 00000000 08:01 5771972 /usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.12
>> 7fed00461000-7fed00660000 ---p 00010000 08:01 5771972 /usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.12
>> 7fed00660000-7fed00661000 r--p 0000f000 08:01 5771972 /usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.12
>> 7fed00661000-7fed00662000 rw-p 00010000 08:01 5771972 /usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.12
>> 7fed00662000-7fed00669000 r-xp 00000000 08:01 5772636 /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
>> 7fed00669000-7fed00868000 ---p 00007000 08:01 5772636 /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
>> 7fed00868000-7fed00869000 r--p 00006000 08:01 5772636 /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
>> 7fed00869000-7fed0086a000 rw-p 00007000 08:01 5772636 /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
>> 7fed0086a000-7fed0086d000 r-xp 00000000 08:01 11010057 /lib/x86_64-linux-gnu/libcom_err.so.2.1
>> 7fed0086d000-7fed00a6c000 ---p 00003000 08:01 11010057 /lib/x86_64-linux-gnu/libcom_err.so.2.1
>> 7fed00a6c000-7fed00a6d000 r--p 00002000 08:01 11010057 /lib/x86_64-linux-gnu/libcom_err.so.2.1
>> 7fed00a6d000-7fed00a6e000 rw-p 00003000 08:01 11010057 /lib/x86_64-linux-gnu/libcom_err.so.2.1
>> 7fed00a6e000-7fed00a93000 r-xp 00000000 08:01 5773583 /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
>> 7fed00a93000-7fed00c93000 ---p 00025000 08:01 5773583 /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
>> 7fed00c93000-7fed00c94000 r--p 00025000 08:01 5773583 /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
>> 7fed00c94000-7fed00c95000 rw-p 00026000 08:01 5773583 /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
>> 7fed00c95000-7fed00c96000 rw-p 00000000 00:00 0
>> 7fed00c96000-7fed00d5a000 r-xp 00000000 08:01 5786863 /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
>> 7fed00d5a000-7fed00f59000 ---p 000c4000 08:01 5786863 /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
>> 7fed00f59000-7fed00f63000 r--p 000c3000 08:01 5786863 /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
>> 7fed00f63000-7fed00f64000 rw-p 000cd000 08:01 5786863 /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
>> 7fed00f64000-7fed00f9e000 r-xp 00000000 08:01 5773604 /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
>> 7fed00f9e000-7fed0119e000 ---p 0003a000 08:01 5773604 /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
>> 7fed0119e000-7fed0119f000 r--p 0003a000 08:01 5773604 /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
>> 7fed0119f000-7fed011a2000 rw-p 0003b000 08:01 5773604 /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
>> 7fed011a2000-7fed011bc000 r-xp 00000000 08:01 5773607 /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
>> 7fed011bc000-7fed013bb000 ---p 0001a000 08:01 5773607 /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
>> 7fed013bb000-7fed013bc000 r--p 00019000 08:01 5773607 /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
>> 7fed013bc000-7fed013bd000 rw-p 0001a000 08:01 5773607 /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
>> 7fed013bd000-7fed013d5000 r-xp 00000000 08:01 11010858 /lib/x86_64-linux-gnu/libresolv-2.15.so
>> 7fed013d5000-7fed015d5000 ---p 00018000 08:01 11010858 /lib/x86_64-linux-gnu/libresolv-2.15.so
>> 7fed015d5000-7fed015d6000 r--p 00018000 08:01 11010858 /lib/x86_64-linux-gnu/libresolv-2.15.so
>> 7fed015d6000-7fed015d7000 rw-p 00019000 08:01 11010858 /lib/x86_64-linux-gnu/libresolv-2.15.so
>> 7fed015d7000-7fed015d9000 rw-p 00000000 00:00 0
>> 7fed015d9000-7fed015f1000 r-xp 00000000 08:01 11010853 /lib/x86_64-linux-gnu/libpthread-2.15.so
>> 7fed015f1000-7fed017f0000 ---p 00018000 08:01 11010853 /lib/x86_64-linux-gnu/libpthread-2.15.so
>> 7fed017f0000-7fed017f1000 r--p 00017000 08:01 11010853 /lib/x86_64-linux-gnu/libpthread-2.15.so
>> 7fed017f1000-7fed017f2000 rw-p 00018000 08:01 11010853 /lib/x86_64-linux-gnu/libpthread-2.15.so
>> 7fed017f2000-7fed017f6000 rw-p 00000000 00:00 0
>> 7fed017f6000-7fed0180e000 r-xp 00000000 08:01 5773616 /usr/lib/x86_64-linux-gnu/librtmp.so.0
>> 7fed0180e000-7fed01a0e000 ---p 00018000 08:01 5773616 /usr/lib/x86_64-linux-gnu/librtmp.so.0
>> 7fed01a0e000-7fed01a0f000 r--p 00018000 08:01 5773616 /usr/lib/x86_64-linux-gnu/librtmp.so.0
>> 7fed01a0f000-7fed01a10000 rw-p 00019000 08:01 5773616 /usr/lib/x86_64-linux-gnu/librtmp.so.0
>> 7fed01a10000-7fed01a8a000 r-xp 00000000 08:01 11010063 /lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
>> 7fed01a8a000-7fed01c8a000 ---p 0007a000 08:01 11010063 /lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
>> 7fed01c8a000-7fed01c8b000 r--p 0007a000 08:01 11010063 /lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
>> 7fed01c8b000-7fed01c8e000 rw-p 0007b000 08:01 11010063 /lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
>> 7fed01c8e000-7fed01d42000 r-xp 00000000 08:01 5786861 /usr/lib/x86_64-linux-gnu/libgnutls.so.26.21.8
>> 7fed01d42000-7fed01f42000 ---p 000b4000 08:01 5786861 /usr/lib/x86_64-linux-gnu/libgnutls.so.26.21.8
>> 7fed01f42000-7fed01f48000 r--p 000b4000 08:01 5786861 /usr/lib/x86_64-linux-gnu/libgnutls.so.26.21.8
>> 7fed01f48000-7fed01f49000 rw-p 000ba000 08:01 5786861 /usr/lib/x86_64-linux-gnu/libgnutls.so.26.21.8
>> 7fed01f49000-7fed01f4a000 rw-p 00000000 00:00 0
>> 7fed01f4a000-7fed01f60000 r-xp 00000000 08:01 11010218 /lib/x86_64-linux-gnu/libz.so.1.2.3.4
>> 7fed01f60000-7fed0215f000 ---p 00016000 08:01 11010218 /lib/x86_64-linux-gnu/libz.so.1.2.3.4
>> 7fed0215f000-7fed02160000 r--p 00015000 08:01 11010218 /lib/x86_64-linux-gnu/libz.so.1.2.3.4
>> 7fed02160000-7fed02161000 rw-p 00016000 08:01 11010218 /lib/x86_64-linux-gnu/libz.so.1.2.3.4
>> 7fed02161000-7fed0219c000 r-xp 00000000 08:01 5772630 /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
>> 7fed0219c000-7fed0239c000 ---p 0003b000 08:01 5772630 /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
>> 7fed0239c000-7fed0239d000 r--p 0003b000 08:01 5772630 /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
>> 7fed0239d000-7fed0239f000 rw-p 0003c000 08:01 5772630 /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
>> 7fed0239f000-7fed023a6000 r-xp 00000000 08:01 11010856 /lib/x86_64-linux-gnu/librt-2.15.so
>> 7fed023a6000-7fed025a5000 ---p 00007000 08:01 11010856 /lib/x86_64-linux-gnu/librt-2.15.so
>> 7fed025a5000-7fed025a6000 r--p 00006000 08:01 11010856 /lib/x86_64-linux-gnu/librt-2.15.so
>> 7fed025a6000-7fed025a7000 rw-p 00007000 08:01 11010856 /lib/x86_64-linux-gnu/librt-2.15.so
>> 7fed025a7000-7fed025f2000 r-xp 00000000 08:01 5772626 /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.8.1
>> 7fed025f2000-7fed027f1000 ---p 0004b000 08:01 5772626 /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.8.1
>> 7fed027f1000-7fed027f3000 r--p 0004a000 08:01 5772626 /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.8.1
>> 7fed027f3000-7fed027f4000 rw-p 0004c000 08:01 5772626 /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.8.1
>> 7fed027f4000-7fed027f6000 rw-p 00000000 00:00 0
>> 7fed027f6000-7fed02803000 r-xp 00000000 08:01 5786866 /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.8.1
>> 7fed02803000-7fed02a02000 ---p 0000d000 08:01 5786866 /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.8.1
>> 7fed02a02000-7fed02a03000 r--p 0000c000 08:01 5786866 /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.8.1
>> 7fed02a03000-7fed02a04000 rw-p 0000d000 08:01 5786866 /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.8.1
>> 7fed02a04000-7fed02a36000 r-xp 00000000 08:01 5773087 /usr/lib/x86_64-linux-gnu/libidn.so.11.6.6
>> 7fed02a36000-7fed02c35000 ---p 00032000 08:01 5773087 /usr/lib/x86_64-linux-gnu/libidn.so.11.6.6
>> 7fed02c35000-7fed02c36000 r--p 00031000 08:01 5773087 /usr/lib/x86_64-linux-gnu/libidn.so.11.6.6
>> 7fed02c36000-7fed02c37000 rw-p 00032000 08:01 5773087 /usr/lib/x86_64-linux-gnu/libidn.so.11.6.6
>> 7fed02c37000-7fed02fc9000 r-xp 00000000 08:01 5786767 /usr/lib/libhdf5.so.6.0.3
>> 7fed02fc9000-7fed031c8000 ---p 00392000 08:01 5786767 /usr/lib/libhdf5.so.6.0.3
>> 7fed031c8000-7fed031cd000 r--p 00391000 08:01 5786767 /usr/lib/libhdf5.so.6.0.3
>> 7fed031cd000-7fed031d1000 rw-p 00396000 08:01 5786767 /usr/lib/libhdf5.so.6.0.3
>> 7fed031d1000-7fed031d2000 rw-p 00000000 00:00 0
>> 7fed031d2000-7fed031f2000 r-xp 00000000 08:01 5786770 /usr/lib/libhdf5_hl.so.6.0.3
>> 7fed031f2000-7fed033f1000 ---p 00020000 08:01 5786770 /usr/lib/libhdf5_hl.so.6.0.3
>> 7fed033f1000-7fed033f2000 r--p 0001f000 08:01 5786770 /usr/lib/libhdf5_hl.so.6.0.3
>> 7fed033f2000-7fed033f3000 rw-p 00020000 08:01 5786770 /usr/lib/libhdf5_hl.so.6.0.3
>> 7fed033f3000-7fed03404000 rw-p 00000000 00:00 0
>> 7fed03404000-7fed03459000 r-xp 00000000 08:01 5773609 /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.2.0
>> 7fed03459000-7fed03659000 ---p 00055000 08:01 5773609 /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.2.0
>> 7fed03659000-7fed0365b000 r--p 00055000 08:01 5773609 /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.2.0
>> 7fed0365b000-7fed0365c000 rw-p 00057000 08:01 5773609 /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.2.0
>> 7fed0365c000-7fed0373f000 r-xp 00000000 08:01 5789585 /usr/lib/libnetcdf.so.6.0.0
>> 7fed0373f000-7fed0393f000 ---p 000e3000 08:01 5789585 /usr/lib/libnetcdf.so.6.0.0
>> 7fed0393f000-7fed0398d000 r--p 000e3000 08:01 5789585 /usr/lib/libnetcdf.so.6.0.0
>> 7fed0398d000-7fed0398f000 rw-p 00131000 08:01 5789585 /usr/lib/libnetcdf.so.6.0.0
>> 7fed0398f000-7fed0399a000 rw-p 00000000 00:00 0
>> 7fed0399a000-7fed03b4f000 r-xp 00000000 08:01 11010850 /lib/x86_64-linux-gnu/libc-2.15.so
>> 7fed03b4f000-7fed03d4e000 ---p 001b5000 08:01 11010850 /lib/x86_64-linux-gnu/libc-2.15.so
>> 7fed03d4e000-7fed03d52000 r--p 001b4000 08:01 11010850 /lib/x86_64-linux-gnu/libc-2.15.so
>> 7fed03d52000-7fed03d54000 rw-p 001b8000 08:01 11010850 /lib/x86_64-linux-gnu/libc-2.15.so
>> 7fed03d54000-7fed03d59000 rw-p 00000000 00:00 0
>> 7fed03d59000-7fed03e54000 r-xp 00000000 08:01 11010864 /lib/x86_64-linux-gnu/libm-2.15.so
>> 7fed03e54000-7fed04053000 ---p 000fb000 08:01 11010864 /lib/x86_64-linux-gnu/libm-2.15.so
>> 7fed04053000-7fed04054000 r--p 000fa000 08:01 11010864 /lib/x86_64-linux-gnu/libm-2.15.so
>> 7fed04054000-7fed04055000 rw-p 000fb000 08:01 11010864 /lib/x86_64-linux-gnu/libm-2.15.so
>> 7fed04055000-7fed04116000 r-xp 00000000 08:01 5789952 /usr/lib/libgmt.so.4
>> 7fed04116000-7fed04316000 ---p 000c1000 08:01 5789952 /usr/lib/libgmt.so.4
>> 7fed04316000-7fed04317000 r--p 000c1000 08:01 5789952 /usr/lib/libgmt.so.4
>> 7fed04317000-7fed0433c000 rw-p 000c2000 08:01 5789952 /usr/lib/libgmt.so.4
>> 7fed0433c000-7fed04368000 rw-p 00000000 00:00 0
>> 7fed04368000-7fed0438a000 r-xp 00000000 08:01 11010876 /lib/x86_64-linux-gnu/ld-2.15.so
>> 7fed04557000-7fed0456a000 rw-p 00000000 00:00 0
>> 7fed04587000-7fed0458a000 rw-p 00000000 00:00 0
>> 7fed0458a000-7fed0458b000 r--p 00022000 08:01 11010876 /lib/x86_64-linux-gnu/ld-2.15.so
>> 7fed0458b000-7fed0458d000 rw-p 00023000 08:01 11010876 /lib/x86_64-linux-gnu/ld-2.15.so
>> 7fff0b75b000-7fff0b78f000 rw-p 00000000 00:00 0 [stack]
>> 7fff0b7ff000-7fff0b800000 r-xp 00000000 00:00 0 [vdso]
>> ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
>> grdmath: Not a supported grid format [/opt/shakemap/bin/../data/9583161/output/MGU7BgDk82.grd]
>> *** buffer overflow detected ***: /usr/lib/gmt/bin/grdmath terminated
>> ======= Backtrace: =========
>> /lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x7f898eaa2807]
>> /lib/x86_64-linux-gnu/libc.so.6(+0x109700)[0x7f898eaa1700]
>> /lib/x86_64-linux-gnu/libc.so.6(+0x1085d3)[0x7f898eaa05d3]
>> /usr/lib/libgmt.so.4(GMT_grd_init+0x106)[0x7f898f07b2e6]
>> /usr/lib/gmt/bin/grdmath[0x40528b]
>> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7f898e9b976d]
>> /usr/lib/gmt/bin/grdmath[0x4077a9]
>> ======= Memory map: ========
>> 00400000-0041c000 r-xp 00000000 08:01 5904758 /usr/lib/gmt/bin/grdmath
>> 0061b000-0061c000 r--p 0001b000 08:01 5904758 /usr/lib/gmt/bin/grdmath
>> 0061c000-0061d000 rw-p 0001c000 08:01 5904758 /usr/lib/gmt/bin/grdmath
>> 019b7000-019f9000 rw-p 00000000 00:00 0 [heap]
>> 7f8989347000-7f898935c000 r-xp 00000000 08:01 11010093 /lib/x86_64-linux-gnu/libgcc_s.so.1
>> 7f898935c000-7f898955b000 ---p 00015000 08:01 11010093 /lib/x86_64-linux-gnu/libgcc_s.so.1
>> 7f898955b000-7f898955c000 r--p 00014000 08:01 11010093 /lib/x86_64-linux-gnu/libgcc_s.so.1
>> 7f898955c000-7f898955d000 rw-p 00015000 08:01 11010093 /lib/x86_64-linux-gnu/libgcc_s.so.1
>> 7f898955d000-7f8989566000 r-xp 00000000 08:01 11010866 /lib/x86_64-linux-gnu/libcrypt-2.15.so
>> 7f8989566000-7f8989766000 ---p 00009000 08:01 11010866 /lib/x86_64-linux-gnu/libcrypt-2.15.so
>> 7f8989766000-7f8989767000 r--p 00009000 08:01 11010866 /lib/x86_64-linux-gnu/libcrypt-2.15.so
>> 7f8989767000-7f8989768000 rw-p 0000a000 08:01 11010866 /lib/x86_64-linux-gnu/libcrypt-2.15.so
>> 7f8989768000-7f8989796000 rw-p 00000000 00:00 0
>> 7f8989796000-7f8989834000 r-xp 00000000 08:01 5786858 /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
>> 7f8989834000-7f8989a34000 ---p 0009e000 08:01 5786858 /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
>> 7f8989a34000-7f8989a36000 r--p 0009e000 08:01 5786858 /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
>> 7f8989a36000-7f8989a38000 rw-p 000a0000 08:01 5786858 /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
>> 7f8989a38000-7f8989a39000 rw-p 00000000 00:00 0
>> 7f8989a39000-7f8989a7e000 r-xp 00000000 08:01 5773595 /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
>> 7f8989a7e000-7f8989c7e000 ---p 00045000 08:01 5773595 /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
>> 7f8989c7e000-7f8989c80000 r--p 00045000 08:01 5773595 /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
>> 7f8989c80000-7f8989c82000 rw-p 00047000 08:01 5773595 /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
>> 7f8989c82000-7f8989c83000 rw-p 00000000 00:00 0
>> 7f8989c83000-7f8989c91000 r-xp 00000000 08:01 5773589 /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
>> 7f8989c91000-7f8989e90000 ---p 0000e000 08:01 5773589 /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
>> 7f8989e90000-7f8989e91000 r--p 0000d000 08:01 5773589 /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
>> 7f8989e91000-7f8989e92000 rw-p 0000e000 08:01 5773589 /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
>> 7f8989e92000-7f8989eba000 r-xp 00000000 08:01 5773592 /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
>> 7f8989eba000-7f898a0b9000 ---p 00028000 08:01 5773592 /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
>> 7f898a0b9000-7f898a0ba000 r--p 00027000 08:01 5773592 /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
>> 7f898a0ba000-7f898a0bb000 rw-p 00028000 08:01 5773592 /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
>> 7f898a0bb000-7f898a0be000 r-xp 00000000 08:01 11010397 /lib/x86_64-linux-gnu/libkeyutils.so.1.4
>> 7f898a0be000-7f898a2bd000 ---p 00003000 08:01 11010397 /lib/x86_64-linux-gnu/libkeyutils.so.1.4
>> 7f898a2bd000-7f898a2be000 r--p 00002000 08:01 11010397 /lib/x86_64-linux-gnu/libkeyutils.so.1.4
>> 7f898a2be000-7f898a2bf000 rw-p 00003000 08:01 11010397 /lib/x86_64-linux-gnu/libkeyutils.so.1.4
>> 7f898a2bf000-7f898a2d3000 r-xp 00000000 08:01 5773571 /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
>> 7f898a2d3000-7f898a4d2000 ---p 00014000 08:01 5773571 /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
>> 7f898a4d2000-7f898a4d3000 r--p 00013000 08:01 5773571 /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
>> 7f898a4d3000-7f898a4d4000 rw-p 00014000 08:01 5773571 /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
>> 7f898a4d4000-7f898a505000 r-xp 00000000 08:01 5773586 /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
>> 7f898a505000-7f898a705000 ---p 00031000 08:01 5773586 /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
>> 7f898a705000-7f898a706000 r--p 00031000 08:01 5773586 /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
>> 7f898a706000-7f898a707000 rw-p 00032000 08:01 5773586 /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
>> 7f898a707000-7f898a708000 rw-p 00000000 00:00 0
>> 7f898a708000-7f898a7a3000 r-xp 00000000 08:01 5773574 /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
>> 7f898a7a3000-7f898a9a2000 ---p 0009b000 08:01 5773574 /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
>> 7f898a9a2000-7f898a9a4000 r--p 0009a000 08:01 5773574 /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
>> 7f898a9a4000-7f898a9a8000 rw-p 0009c000 08:01 5773574 /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
>> 7f898a9a8000-7f898aa28000 r-xp 00000000 08:01 5773598 /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
>> 7f898aa28000-7f898ac28000 ---p 00080000 08:01 5773598 /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
>> 7f898ac28000-7f898ac2a000 r--p 00080000 08:01 5773598 /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
>> 7f898ac2a000-7f898ac2e000 rw-p 00082000 08:01 5773598 /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
>> 7f898ac2e000-7f898ac34000 r-xp 00000000 08:01 5773601 /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
>> 7f898ac34000-7f898ae33000 ---p 00006000 08:01 5773601 /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
>> 7f898ae33000-7f898ae34000 r--p 00005000 08:01 5773601 /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
>> 7f898ae34000-7f898ae35000 rw-p 00006000 08:01 5773601 /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
>> 7f898ae35000-7f898ae37000 r-xp 00000000 08:01 11010847 /lib/x86_64-linux-gnu/libdl-2.15.so
>> 7f898ae37000-7f898b037000 ---p 00002000 08:01 11010847 /lib/x86_64-linux-gnu/libdl-2.15.so
>> 7f898b037000-7f898b038000 r--p 00002000 08:01 11010847 /lib/x86_64-linux-gnu/libdl-2.15.so
>> 7f898b038000-7f898b039000 rw-p 00003000 08:01 11010847 /lib/x86_64-linux-gnu/libdl-2.15.so
>> 7f898b039000-7f898b03c000 r-xp 00000000 08:01 11010342 /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
>> 7f898b03c000-7f898b23b000 ---p 00003000 08:01 11010342 /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
>> 7f898b23b000-7f898b23c000 r--p 00002000 08:01 11010342 /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
>> 7f898b23c000-7f898b23d000 rw-p 00003000 08:01 11010342 /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
>> 7f898b23d000-7f898b24e000 r-xp 00000000 08:01 5773577 /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
>> 7f898b24e000-7f898b44d000 ---p 00011000 08:01 5773577 /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
>> 7f898b44d000-7f898b44e000 r--p 00010000 08:01 5773577 /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
>> 7f898b44e000-7f898b44f000 rw-p 00011000 08:01 5773577 /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
>> 7f898b44f000-7f898b45f000 r-xp 00000000 08:01 5771972 /usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.12
>> 7f898b45f000-7f898b65e000 ---p 00010000 08:01 5771972 /usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.12
>> 7f898b65e000-7f898b65f000 r--p 0000f000 08:01 5771972 /usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.12
>> 7f898b65f000-7f898b660000 rw-p 00010000 08:01 5771972 /usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.12
>> 7f898b660000-7f898b667000 r-xp 00000000 08:01 5772636 /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
>> 7f898b667000-7f898b866000 ---p 00007000 08:01 5772636 /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
>> 7f898b866000-7f898b867000 r--p 00006000 08:01 5772636 /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
>> 7f898b867000-7f898b868000 rw-p 00007000 08:01 5772636 /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
>> 7f898b868000-7f898b86b000 r-xp 00000000 08:01 11010057 /lib/x86_64-linux-gnu/libcom_err.so.2.1
>> 7f898b86b000-7f898ba6a000 ---p 00003000 08:01 11010057 /lib/x86_64-linux-gnu/libcom_err.so.2.1
>> 7f898ba6a000-7f898ba6b000 r--p 00002000 08:01 11010057 /lib/x86_64-linux-gnu/libcom_err.so.2.1
>> 7f898ba6b000-7f898ba6c000 rw-p 00003000 08:01 11010057 /lib/x86_64-linux-gnu/libcom_err.so.2.1
>> 7f898ba6c000-7f898ba91000 r-xp 00000000 08:01 5773583 /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
>> 7f898ba91000-7f898bc91000 ---p 00025000 08:01 5773583 /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
>> 7f898bc91000-7f898bc92000 r--p 00025000 08:01 5773583 /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
>> 7f898bc92000-7f898bc93000 rw-p 00026000 08:01 5773583 /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
>> 7f898bc93000-7f898bc94000 rw-p 00000000 00:00 0
>> 7f898bc94000-7f898bd58000 r-xp 00000000 08:01 5786863 /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
>> 7f898bd58000-7f898bf57000 ---p 000c4000 08:01 5786863 /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
>> 7f898bf57000-7f898bf61000 r--p 000c3000 08:01 5786863 /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
>> 7f898bf61000-7f898bf62000 rw-p 000cd000 08:01 5786863 /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
>> 7f898bf62000-7f898bf9c000 r-xp 00000000 08:01 5773604 /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
>> 7f898bf9c000-7f898c19c000 ---p 0003a000 08:01 5773604 /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
>> 7f898c19c000-7f898c19d000 r--p 0003a000 08:01 5773604 /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
>> 7f898c19d000-7f898c1a0000 rw-p 0003b000 08:01 5773604 /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
>> 7f898c1a0000-7f898c1ba000 r-xp 00000000 08:01 5773607 /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
>> 7f898c1ba000-7f898c3b9000 ---p 0001a000 08:01 5773607 /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
>> 7f898c3b9000-7f898c3ba000 r--p 00019000 08:01 5773607 /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
>> 7f898c3ba000-7f898c3bb000 rw-p 0001a000 08:01 5773607 /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
>> 7f898c3bb000-7f898c3d3000 r-xp 00000000 08:01 11010858 /lib/x86_64-linux-gnu/libresolv-2.15.so
>> 7f898c3d3000-7f898c5d3000 ---p 00018000 08:01 11010858 /lib/x86_64-linux-gnu/libresolv-2.15.so
>> 7f898c5d3000-7f898c5d4000 r--p 00018000 08:01 11010858 /lib/x86_64-linux-gnu/libresolv-2.15.so
>> 7f898c5d4000-7f898c5d5000 rw-p 00019000 08:01 11010858 /lib/x86_64-linux-gnu/libresolv-2.15.so
>> 7f898c5d5000-7f898c5d7000 rw-p 00000000 00:00 0
>> 7f898c5d7000-7f898c5ef000 r-xp 00000000 08:01 11010853 /lib/x86_64-linux-gnu/libpthread-2.15.so
>> 7f898c5ef000-7f898c7ee000 ---p 00018000 08:01 11010853 /lib/x86_64-linux-gnu/libpthread-2.15.so
>> 7f898c7ee000-7f898c7ef000 r--p 00017000 08:01 11010853 /lib/x86_64-linux-gnu/libpthread-2.15.so
>> 7f898c7ef000-7f898c7f0000 rw-p 00018000 08:01 11010853 /lib/x86_64-linux-gnu/libpthread-2.15.so
>> 7f898c7f0000-7f898c7f4000 rw-p 00000000 00:00 0
>> 7f898c7f4000-7f898c80c000 r-xp 00000000 08:01 5773616 /usr/lib/x86_64-linux-gnu/librtmp.so.0
>> 7f898c80c000-7f898ca0c000 ---p 00018000 08:01 5773616 /usr/lib/x86_64-linux-gnu/librtmp.so.0
>> 7f898ca0c000-7f898ca0d000 r--p 00018000 08:01 5773616 /usr/lib/x86_64-linux-gnu/librtmp.so.0
>> 7f898ca0d000-7f898ca0e000 rw-p 00019000 08:01 5773616 /usr/lib/x86_64-linux-gnu/librtmp.so.0
>> 7f898ca0e000-7f898ca88000 r-xp 00000000 08:01 11010063 /lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
>> 7f898ca88000-7f898cc88000 ---p 0007a000 08:01 11010063 /lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
>> 7f898cc88000-7f898cc89000 r--p 0007a000 08:01 11010063 /lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
>> 7f898cc89000-7f898cc8c000 rw-p 0007b000 08:01 11010063 /lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
>> 7f898cc8c000-7f898cd40000 r-xp 00000000 08:01 5786861 /usr/lib/x86_64-linux-gnu/libgnutls.so.26.21.8
>> 7f898cd40000-7f898cf40000 ---p 000b4000 08:01 5786861 /usr/lib/x86_64-linux-gnu/libgnutls.so.26.21.8
>> 7f898cf40000-7f898cf46000 r--p 000b4000 08:01 5786861 /usr/lib/x86_64-linux-gnu/libgnutls.so.26.21.8
>> 7f898cf46000-7f898cf47000 rw-p 000ba000 08:01 5786861 /usr/lib/x86_64-linux-gnu/libgnutls.so.26.21.8
>> 7f898cf47000-7f898cf48000 rw-p 00000000 00:00 0
>> 7f898cf48000-7f898cf5e000 r-xp 00000000 08:01 11010218 /lib/x86_64-linux-gnu/libz.so.1.2.3.4
>> 7f898cf5e000-7f898d15d000 ---p 00016000 08:01 11010218 /lib/x86_64-linux-gnu/libz.so.1.2.3.4
>> 7f898d15d000-7f898d15e000 r--p 00015000 08:01 11010218 /lib/x86_64-linux-gnu/libz.so.1.2.3.4
>> 7f898d15e000-7f898d15f000 rw-p 00016000 08:01 11010218 /lib/x86_64-linux-gnu/libz.so.1.2.3.4
>> 7f898d15f000-7f898d19a000 r-xp 00000000 08:01 5772630 /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
>> 7f898d19a000-7f898d39a000 ---p 0003b000 08:01 5772630 /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
>> 7f898d39a000-7f898d39b000 r--p 0003b000 08:01 5772630 /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
>> 7f898d39b000-7f898d39d000 rw-p 0003c000 08:01 5772630 /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
>> 7f898d39d000-7f898d3a4000 r-xp 00000000 08:01 11010856 /lib/x86_64-linux-gnu/librt-2.15.so
>> 7f898d3a4000-7f898d5a3000 ---p 00007000 08:01 11010856 /lib/x86_64-linux-gnu/librt-2.15.so
>> 7f898d5a3000-7f898d5a4000 r--p 00006000 08:01 11010856 /lib/x86_64-linux-gnu/librt-2.15.so
>> 7f898d5a4000-7f898d5a5000 rw-p 00007000 08:01 11010856 /lib/x86_64-linux-gnu/librt-2.15.so
>> 7f898d5a5000-7f898d5f0000 r-xp 00000000 08:01 5772626 /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.8.1
>> 7f898d5f0000-7f898d7ef000 ---p 0004b000 08:01 5772626 /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.8.1
>> 7f898d7ef000-7f898d7f1000 r--p 0004a000 08:01 5772626 /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.8.1
>> 7f898d7f1000-7f898d7f2000 rw-p 0004c000 08:01 5772626 /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.8.1
>> 7f898d7f2000-7f898d7f4000 rw-p 00000000 00:00 0
>> 7f898d7f4000-7f898d801000 r-xp 00000000 08:01 5786866 /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.8.1
>> 7f898d801000-7f898da00000 ---p 0000d000 08:01 5786866 /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.8.1
>> 7f898da00000-7f898da01000 r--p 0000c000 08:01 5786866 /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.8.1
>> 7f898da01000-7f898da02000 rw-p 0000d000 08:01 5786866 /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.8.1
>> 7f898da02000-7f898da34000 r-xp 00000000 08:01 5773087 /usr/lib/x86_64-linux-gnu/libidn.so.11.6.6
>> 7f898da34000-7f898dc33000 ---p 00032000 08:01 5773087 /usr/lib/x86_64-linux-gnu/libidn.so.11.6.6
>> 7f898dc33000-7f898dc34000 r--p 00031000 08:01 5773087 /usr/lib/x86_64-linux-gnu/libidn.so.11.6.6
>> 7f898dc34000-7f898dc35000 rw-p 00032000 08:01 5773087 /usr/lib/x86_64-linux-gnu/libidn.so.11.6.6
>> 7f898dc35000-7f898dfc7000 r-xp 00000000 08:01 5786767 /usr/lib/libhdf5.so.6.0.3
>> 7f898dfc7000-7f898e1c6000 ---p 00392000 08:01 5786767 /usr/lib/libhdf5.so.6.0.3
>> 7f898e1c6000-7f898e1cb000 r--p 00391000 08:01 5786767 /usr/lib/libhdf5.so.6.0.3
>> 7f898e1cb000-7f898e1cf000 rw-p 00396000 08:01 5786767 /usr/lib/libhdf5.so.6.0.3
>> 7f898e1cf000-7f898e1d0000 rw-p 00000000 00:00 0
>> 7f898e1d0000-7f898e1f0000 r-xp 00000000 08:01 5786770 /usr/lib/libhdf5_hl.so.6.0.3
>> 7f898e1f0000-7f898e3ef000 ---p 00020000 08:01 5786770 /usr/lib/libhdf5_hl.so.6.0.3
>> 7f898e3ef000-7f898e3f0000 r--p 0001f000 08:01 5786770 /usr/lib/libhdf5_hl.so.6.0.3
>> 7f898e3f0000-7f898e3f1000 rw-p 00020000 08:01 5786770 /usr/lib/libhdf5_hl.so.6.0.3
>> 7f898e3f1000-7f898e402000 rw-p 00000000 00:00 0
>> 7f898e402000-7f898e457000 r-xp 00000000 08:01 5773609 /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.2.0
>> 7f898e457000-7f898e657000 ---p 00055000 08:01 5773609 /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.2.0
>> 7f898e657000-7f898e659000 r--p 00055000 08:01 5773609 /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.2.0
>> 7f898e659000-7f898e65a000 rw-p 00057000 08:01 5773609 /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.2.0
>> 7f898e65a000-7f898e73d000 r-xp 00000000 08:01 5789585 /usr/lib/libnetcdf.so.6.0.0
>> 7f898e73d000-7f898e93d000 ---p 000e3000 08:01 5789585 /usr/lib/libnetcdf.so.6.0.0
>> 7f898e93d000-7f898e98b000 r--p 000e3000 08:01 5789585 /usr/lib/libnetcdf.so.6.0.0
>> 7f898e98b000-7f898e98d000 rw-p 00131000 08:01 5789585 /usr/lib/libnetcdf.so.6.0.0
>> 7f898e98d000-7f898e998000 rw-p 00000000 00:00 0
>> 7f898e998000-7f898eb4d000 r-xp 00000000 08:01 11010850 /lib/x86_64-linux-gnu/libc-2.15.so
>> 7f898eb4d000-7f898ed4c000 ---p 001b5000 08:01 11010850 /lib/x86_64-linux-gnu/libc-2.15.so
>> 7f898ed4c000-7f898ed50000 r--p 001b4000 08:01 11010850 /lib/x86_64-linux-gnu/libc-2.15.so
>> 7f898ed50000-7f898ed52000 rw-p 001b8000 08:01 11010850 /lib/x86_64-linux-gnu/libc-2.15.so
>> 7f898ed52000-7f898ed57000 rw-p 00000000 00:00 0
>> 7f898ed57000-7f898ee52000 r-xp 00000000 08:01 11010864 /lib/x86_64-linux-gnu/libm-2.15.so
>> 7f898ee52000-7f898f051000 ---p 000fb000 08:01 11010864 /lib/x86_64-linux-gnu/libm-2.15.so
>> 7f898f051000-7f898f052000 r--p 000fa000 08:01 11010864 /lib/x86_64-linux-gnu/libm-2.15.so
>> 7f898f052000-7f898f053000 rw-p 000fb000 08:01 11010864 /lib/x86_64-linux-gnu/libm-2.15.so
>> 7f898f053000-7f898f114000 r-xp 00000000 08:01 5789952 /usr/lib/libgmt.so.4
>> 7f898f114000-7f898f314000 ---p 000c1000 08:01 5789952 /usr/lib/libgmt.so.4
>> 7f898f314000-7f898f315000 r--p 000c1000 08:01 5789952 /usr/lib/libgmt.so.4
>> 7f898f315000-7f898f33a000 rw-p 000c2000 08:01 5789952 /usr/lib/libgmt.so.4
>> 7f898f33a000-7f898f366000 rw-p 00000000 00:00 0
>> 7f898f366000-7f898f388000 r-xp 00000000 08:01 11010876 /lib/x86_64-linux-gnu/ld-2.15.so
>> 7f898f555000-7f898f568000 rw-p 00000000 00:00 0
>> 7f898f585000-7f898f588000 rw-p 00000000 00:00 0
>> 7f898f588000-7f898f589000 r--p 00022000 08:01 11010876 /lib/x86_64-linux-gnu/ld-2.15.so
>> 7f898f589000-7f898f58b000 rw-p 00023000 08:01 11010876 /lib/x86_64-linux-gnu/ld-2.15.so
>> 7fff436ef000-7fff43723000 rw-p 00000000 00:00 0 [stack]
>> 7fff437ff000-7fff43800000 r-xp 00000000 00:00 0 [vdso]
>> ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
>> grdmath: Not a supported grid format [/opt/shakemap/bin/../data/9583161/output/BeQLbKDM1a.grd]
>> grdmath: Not a supported grid format [/opt/shakemap/bin/../data/9583161/output/mScnvFV9i7.grd]
>> grdmath: Not a supported grid format [/opt/shakemap/bin/../data/9583161/output/sU3YUndBaC.grd]
>> grdmath: Not a supported grid format [/opt/shakemap/bin/../data/9583161/output/eDQoJ6czSe.grd]
>> grdmath: GMT SYNTAX ERROR: /opt/shakemap/bin/../data/9583161/output/mi.grd is not a number, operator or file name
>> grdmath: GMT SYNTAX ERROR: /opt/shakemap/bin/../data/9583161/output/mi.grd is not a number, operator or file name
>> grdinfo: Could not find file [/opt/shakemap/bin/../data/9583161/output/mi.grd]
>> grdmath: GMT SYNTAX ERROR: /opt/shakemap/bin/../data/9583161/output/mi.grd is not a number, operator or file name
>> grd2xyz: Could not find file [/opt/shakemap/bin/../data/9583161/output/mi.grd]
>> Uncertainty computation skipped (no Intensity > 6.0)
>>
>> also,
>> ***@osop-displays2:/usr/lib/gmt/bin$ ./grdmath
>> grdmath 4.5.6 [64-bit]
>>
>> As expected.
>>
>>
>> Best regards,
>>
>>
>> Branden Christensen
>> The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
>> Take a Virtual Tour: http://www.osop.com.pa/tour
>>
>>
>> On Tue, Nov 26, 2013 at 1:33 AM, Paul Wessel <***@hawaii.edu> wrote:
>> Hi Brandon-
>>
>> That is not clear, but for starters you should upgrade to 4.5.11 first as we cannot debug obsolete versions.
>> You could then try again, this time with verbose output from your script so we can see what the commands are.
>> -p
>>
>> On Nov 25, 2013, at 4:25 PM, Branden Christensen <***@OSOP.COM.PA> wrote:
>>
>>> Hi all:
>>>
>>>
>>> I have spent a few days trying to solve this now. Time for some professional input.
>>>
>>> I have been trying to upgrade my ShakeMap installation to Ubuntu 12.04 64-bit. It is stumbling on grdmath.
>>>
>>> What would produce grdmath errors like?:
>>>
>>> *** buffer overflow detected ***: /usr/lib/gmt/bin/grdmath terminated
>>>
>>> &
>>>
>>> grdmath: Not a supported grid format
>>>
>>>
>>> I am running GMT-4.5.6 with GSHHS2.1.1.
>>>
>>> Thanks for any input, suggestions, solutions.
>>>
>>>
>>> Best regards from Panama,
>>>
>>>
>>> Branden Christensen
>>> The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
>>> Take a Virtual Tour: http://www.osop.com.pa/tour
>>> To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
>>
>> To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
>>
>> To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
>
> To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
>
> To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu <outfile.txt>


To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
Branden Christensen
2013-11-26 03:43:38 UTC
Permalink
Paul:


Thanks for taking a look. I am not sure what is causing the overflow
either. I will upgrade to 4.5.11 and see what happens.


Best regards,


*Branden Christensen*
The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
Take a Virtual Tour: http://www.osop.com.pa/tour


On Tue, Nov 26, 2013 at 2:33 AM, Paul Wessel <***@hawaii.edu> wrote:

> Brandon, sorry, all I see is
> grdmath: Not a supported grid format
> [/opt/shakemap/bin/../data/9583161/output/4pF4D4BQc9.grd]
>
> but no trace of where 4pF4D4BQc9.grd is made. Is this what causes the
> *** buffer overflow detected ***: /usr/lib/gmt/bin/grdmath terminated ?
>
> I guess I still do not see where GMT is crashing.
> -p
>
> On Nov 25, 2013, at 5:20 PM, Branden Christensen <
> ***@OSOP.COM.PA> wrote:
>
> Paul:
>
>
> Attached you will find the 2>&1 output. It shows how grdmath is
> implemented.
>
> Thanks for taking a peek. The feedback from the ubuntu guys sounds
> discouraging. I wonder what gives.
>
>
> Kind Regards,
>
>
>
> *Branden Christensen*
> The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
> Take a Virtual Tour: http://www.osop.com.pa/tour
>
>
> On Tue, Nov 26, 2013 at 2:00 AM, Paul Wessel <***@hawaii.edu> wrote:
>
>> Hi Barndon-
>>
>> No, looks like the crash is happening inside one of your scripts so I
>> cannot see the call to grdmath. Could you turn verbose on for that script
>> of something?
>> We've had some feedback from ubuntu maintainers. They treat 4.5.11 as a
>> more unstable version of 4.5.6 despite the fact that those last numbers
>> only go up when we fix bugs.... So there probably wont be a 4.5.11 for a
>> while for ubuntu if that is how they think.
>> You could install form source, should be trivial.
>>
>> -p
>>
>>
>> On Nov 25, 2013, at 4:48 PM, Branden Christensen <
>> ***@OSOP.COM.PA> wrote:
>>
>> Paul:
>>
>>
>> Than you for your immediate response.
>>
>> Boy that is tough news. If upgrading is anything like downgrading (I
>> spent the weekend...the whole weekend rolling back to 4.5.1 which I knew
>> worked with shakemap on Ubuntu 10.04 to test), then I am in for another
>> challenge. In Ubuntu 12.04, sudo apt-get install gmt gets you 4.5.6. And
>> Ubuntu 12.04 will long long outlast newer versions of Ubuntu which are
>> either experimental (the October releases) or not LTS (odd years like
>> 2013).
>>
>> Here is the full output in case you spot something interesting.
>> Otherwise, I will put my fingers to upgrading:
>> ***@osop-displays2:/opt/shakemap/bin$ ./grind -event 9583161 -xml -qtm
>> -verbose -lonspan 20.0
>> Using Borcherdt-style site corrections.
>> Map bound: -128.900000/-108.900000/26.323000/42.803000
>> GMT_grd_is_global: no!
>> GMT_boundcond_param_prep determined edgeinfo: gn = 0, gs = 0, nxp = 0,
>> nyp = 0
>> GMT_grd_is_global: no!
>> /opt/shakemap/bin/../bin/topo2grd 9583161
>> -128.900000/-108.900000/26.323000/42.803000 0.025/0.025 regime=active
>> Using /opt/shakemap/dem. Final resolution fixed at 0.025.
>> /opt/shakemap/dem/dem2grd.pl -128.900000/-108.900000/26.323000/42.803000
>> tmp.topo2grd.3979 0.025
>> HELLO WORLD. I am /opt/shakemap/dem/dem2grd.pl
>> EXTRACTING w140n90.grd W:-128.900000 E:-108.900000 S:40 N:42.8083333333333
>> /usr/lib/gmt/bin//grdcut -R-128.900000/-108.900000/40/42.8083333333333
>> w140n90.grd -Gtmp.3980.w140n90
>> /usr/lib/gmt/bin//grdcut -R-128.900000/-108.900000/40/42.8083333333333
>> w140n90.grd -Gtmp.3980.w140n90
>> mv tmp.3980.w140n90 tmp.3980.w140
>> EXTRACTING w140n40.grd W:-128.900000 E:-108.900000 S:26.3083333333333 N:40
>> /usr/lib/gmt/bin//grdcut -R-128.900000/-108.900000/26.3083333333333/40
>> w140n40.grd -Gtmp.3980.w140n40
>> /usr/lib/gmt/bin//grdcut -R-128.900000/-108.900000/26.3083333333333/40
>> w140n40.grd -Gtmp.3980.w140n40
>> /usr/lib/gmt/bin//grdpaste tmp.3980.w140 tmp.3980.w140n40
>> -Gtmp.3980.w140.tmp
>> mv tmp.3980.w140.tmp tmp.3980.w140
>> mv tmp.3980.w140 tmp.topo2grd.3979.grd
>> Done with pasting.
>> FINAL BOUNDS: -R-128.900000/-108.900000/26.3083333333333/42.8083333333333
>> cp tmp.topo2grd.3979.grd tmp.topo2grd.3979.grd.1
>> /usr/lib/gmt/bin//grdsample tmp.topo2grd.3979.grd.1
>> -Gtmp.topo2grd.3979.grd -I0.025
>> /usr/lib/gmt/bin/grdlandmask
>> -R-129.525000/-108.275000/25.683333/43.433333 -I0.025
>> -G/opt/shakemap/bin/../data/9583161/output/topo_data.grd.landmask -Df
>> -N-9999/NaN -F
>> /usr/lib/gmt/bin/grdsample
>> /opt/shakemap/bin/../data/9583161/output/topo_data.grd.landmask
>> -G/opt/shakemap/bin/../data/9583161/output/topo_data.grd.landmask
>> -R-128.900000/-108.900000/26.3083333333333/42.8083333333333 -I0.025
>> /usr/lib/gmt/bin/grdmath
>> /opt/shakemap/bin/../data/9583161/output/topo_data.grd.landmask
>> /opt/shakemap/bin/../data/9583161/output/topo_data.grd.grad AND =
>> /opt/shakemap/bin/../data/9583161/output/topo_data.grd.grad.1
>> Using active tectonic factors.
>> Using Shake::GMICE::WGRW11 for PGM2MI function
>> Using Shake::GMICE::WGRW11 for Inverse PGM2MI function
>> Using Shake::GMPE::Zhao06_intraslab for GMPE
>> 2013-11-25 21:43:02 : grind: Bias -1.31 -0.93
>> 2013-11-25 21:43:02 : grind: 26 amps flagged out this iteration
>> 2013-11-25 21:43:04 : grind: Bias -1.31 -0.92
>> 2013-11-25 21:43:04 : grind: 0 amps flagged out this iteration
>> Using DefaultIPE for IPE
>> Using Shake::GMPE::Zhao06_intraslab for GMPE
>> Using Shake::GMICE::WGRW11 for PGM2MI function
>> Using Shake::GMICE::WGRW11 for Inverse PGM2MI function
>> Intensity Bias=-0.69
>> 0 amps flagged out this iteration
>> **** buffer overflow detected ***: /usr/lib/gmt/bin/grdmath terminated*
>> ======= Backtrace: =========
>> /lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x7fed03aa4807]
>> /lib/x86_64-linux-gnu/libc.so.6(+0x109700)[0x7fed03aa3700]
>> /lib/x86_64-linux-gnu/libc.so.6(+0x1085d3)[0x7fed03aa25d3]
>> /usr/lib/libgmt.so.4(GMT_grd_init+0x106)[0x7fed0407d2e6]
>> /usr/lib/gmt/bin/grdmath[0x40528b]
>> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7fed039bb76d]
>> /usr/lib/gmt/bin/grdmath[0x4077a9]
>> ======= Memory map: ========
>> 00400000-0041c000 r-xp 00000000 08:01 5904758
>> /usr/lib/gmt/bin/grdmath
>> 0061b000-0061c000 r--p 0001b000 08:01 5904758
>> /usr/lib/gmt/bin/grdmath
>> 0061c000-0061d000 rw-p 0001c000 08:01 5904758
>> /usr/lib/gmt/bin/grdmath
>> 02452000-02494000 rw-p 00000000 00:00 0
>> [heap]
>> 7fecfe349000-7fecfe35e000 r-xp 00000000 08:01 11010093
>> /lib/x86_64-linux-gnu/libgcc_s.so.1
>> 7fecfe35e000-7fecfe55d000 ---p 00015000 08:01 11010093
>> /lib/x86_64-linux-gnu/libgcc_s.so.1
>> 7fecfe55d000-7fecfe55e000 r--p 00014000 08:01 11010093
>> /lib/x86_64-linux-gnu/libgcc_s.so.1
>> 7fecfe55e000-7fecfe55f000 rw-p 00015000 08:01 11010093
>> /lib/x86_64-linux-gnu/libgcc_s.so.1
>> 7fecfe55f000-7fecfe568000 r-xp 00000000 08:01 11010866
>> /lib/x86_64-linux-gnu/libcrypt-2.15.so
>> 7fecfe568000-7fecfe768000 ---p 00009000 08:01 11010866
>> /lib/x86_64-linux-gnu/libcrypt-2.15.so
>> 7fecfe768000-7fecfe769000 r--p 00009000 08:01 11010866
>> /lib/x86_64-linux-gnu/libcrypt-2.15.so
>> 7fecfe769000-7fecfe76a000 rw-p 0000a000 08:01 11010866
>> /lib/x86_64-linux-gnu/libcrypt-2.15.so
>> 7fecfe76a000-7fecfe798000 rw-p 00000000 00:00 0
>> 7fecfe798000-7fecfe836000 r-xp 00000000 08:01 5786858
>> /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
>> 7fecfe836000-7fecfea36000 ---p 0009e000 08:01 5786858
>> /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
>> 7fecfea36000-7fecfea38000 r--p 0009e000 08:01 5786858
>> /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
>> 7fecfea38000-7fecfea3a000 rw-p 000a0000 08:01 5786858
>> /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
>> 7fecfea3a000-7fecfea3b000 rw-p 00000000 00:00 0
>> 7fecfea3b000-7fecfea80000 r-xp 00000000 08:01 5773595
>> /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
>> 7fecfea80000-7fecfec80000 ---p 00045000 08:01 5773595
>> /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
>> 7fecfec80000-7fecfec82000 r--p 00045000 08:01 5773595
>> /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
>> 7fecfec82000-7fecfec84000 rw-p 00047000 08:01 5773595
>> /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
>> 7fecfec84000-7fecfec85000 rw-p 00000000 00:00 0
>> 7fecfec85000-7fecfec93000 r-xp 00000000 08:01 5773589
>> /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
>> 7fecfec93000-7fecfee92000 ---p 0000e000 08:01 5773589
>> /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
>> 7fecfee92000-7fecfee93000 r--p 0000d000 08:01 5773589
>> /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
>> 7fecfee93000-7fecfee94000 rw-p 0000e000 08:01 5773589
>> /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
>> 7fecfee94000-7fecfeebc000 r-xp 00000000 08:01 5773592
>> /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
>> 7fecfeebc000-7fecff0bb000 ---p 00028000 08:01 5773592
>> /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
>> 7fecff0bb000-7fecff0bc000 r--p 00027000 08:01 5773592
>> /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
>> 7fecff0bc000-7fecff0bd000 rw-p 00028000 08:01 5773592
>> /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
>> 7fecff0bd000-7fecff0c0000 r-xp 00000000 08:01 11010397
>> /lib/x86_64-linux-gnu/libkeyutils.so.1.4
>> 7fecff0c0000-7fecff2bf000 ---p 00003000 08:01 11010397
>> /lib/x86_64-linux-gnu/libkeyutils.so.1.4
>> 7fecff2bf000-7fecff2c0000 r--p 00002000 08:01 11010397
>> /lib/x86_64-linux-gnu/libkeyutils.so.1.4
>> 7fecff2c0000-7fecff2c1000 rw-p 00003000 08:01 11010397
>> /lib/x86_64-linux-gnu/libkeyutils.so.1.4
>> 7fecff2c1000-7fecff2d5000 r-xp 00000000 08:01 5773571
>> /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
>> 7fecff2d5000-7fecff4d4000 ---p 00014000 08:01 5773571
>> /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
>> 7fecff4d4000-7fecff4d5000 r--p 00013000 08:01 5773571
>> /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
>> 7fecff4d5000-7fecff4d6000 rw-p 00014000 08:01 5773571
>> /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
>> 7fecff4d6000-7fecff507000 r-xp 00000000 08:01 5773586
>> /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
>> 7fecff507000-7fecff707000 ---p 00031000 08:01 5773586
>> /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
>> 7fecff707000-7fecff708000 r--p 00031000 08:01 5773586
>> /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
>> 7fecff708000-7fecff709000 rw-p 00032000 08:01 5773586
>> /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
>> 7fecff709000-7fecff70a000 rw-p 00000000 00:00 0
>> 7fecff70a000-7fecff7a5000 r-xp 00000000 08:01 5773574
>> /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
>> 7fecff7a5000-7fecff9a4000 ---p 0009b000 08:01 5773574
>> /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
>> 7fecff9a4000-7fecff9a6000 r--p 0009a000 08:01 5773574
>> /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
>> 7fecff9a6000-7fecff9aa000 rw-p 0009c000 08:01 5773574
>> /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
>> 7fecff9aa000-7fecffa2a000 r-xp 00000000 08:01 5773598
>> /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
>> 7fecffa2a000-7fecffc2a000 ---p 00080000 08:01 5773598
>> /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
>> 7fecffc2a000-7fecffc2c000 r--p 00080000 08:01 5773598
>> /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
>> 7fecffc2c000-7fecffc30000 rw-p 00082000 08:01 5773598
>> /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
>> 7fecffc30000-7fecffc36000 r-xp 00000000 08:01 5773601
>> /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
>> 7fecffc36000-7fecffe35000 ---p 00006000 08:01 5773601
>> /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
>> 7fecffe35000-7fecffe36000 r--p 00005000 08:01 5773601
>> /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
>> 7fecffe36000-7fecffe37000 rw-p 00006000 08:01 5773601
>> /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
>> 7fecffe37000-7fecffe39000 r-xp 00000000 08:01 11010847
>> /lib/x86_64-linux-gnu/libdl-2.15.so
>> 7fecffe39000-7fed00039000 ---p 00002000 08:01 11010847
>> /lib/x86_64-linux-gnu/libdl-2.15.so
>> 7fed00039000-7fed0003a000 r--p 00002000 08:01 11010847
>> /lib/x86_64-linux-gnu/libdl-2.15.so
>> 7fed0003a000-7fed0003b000 rw-p 00003000 08:01 11010847
>> /lib/x86_64-linux-gnu/libdl-2.15.so
>> 7fed0003b000-7fed0003e000 r-xp 00000000 08:01 11010342
>> /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
>> 7fed0003e000-7fed0023d000 ---p 00003000 08:01 11010342
>> /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
>> 7fed0023d000-7fed0023e000 r--p 00002000 08:01 11010342
>> /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
>> 7fed0023e000-7fed0023f000 rw-p 00003000 08:01 11010342
>> /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
>> 7fed0023f000-7fed00250000 r-xp 00000000 08:01 5773577
>> /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
>> 7fed00250000-7fed0044f000 ---p 00011000 08:01 5773577
>> /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
>> 7fed0044f000-7fed00450000 r--p 00010000 08:01 5773577
>> /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
>> 7fed00450000-7fed00451000 rw-p 00011000 08:01 5773577
>> /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
>> 7fed00451000-7fed00461000 r-xp 00000000 08:01 5771972
>> /usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.12
>> 7fed00461000-7fed00660000 ---p 00010000 08:01 5771972
>> /usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.12
>> 7fed00660000-7fed00661000 r--p 0000f000 08:01 5771972
>> /usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.12
>> 7fed00661000-7fed00662000 rw-p 00010000 08:01 5771972
>> /usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.12
>> 7fed00662000-7fed00669000 r-xp 00000000 08:01 5772636
>> /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
>> 7fed00669000-7fed00868000 ---p 00007000 08:01 5772636
>> /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
>> 7fed00868000-7fed00869000 r--p 00006000 08:01 5772636
>> /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
>> 7fed00869000-7fed0086a000 rw-p 00007000 08:01 5772636
>> /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
>> 7fed0086a000-7fed0086d000 r-xp 00000000 08:01 11010057
>> /lib/x86_64-linux-gnu/libcom_err.so.2.1
>> 7fed0086d000-7fed00a6c000 ---p 00003000 08:01 11010057
>> /lib/x86_64-linux-gnu/libcom_err.so.2.1
>> 7fed00a6c000-7fed00a6d000 r--p 00002000 08:01 11010057
>> /lib/x86_64-linux-gnu/libcom_err.so.2.1
>> 7fed00a6d000-7fed00a6e000 rw-p 00003000 08:01 11010057
>> /lib/x86_64-linux-gnu/libcom_err.so.2.1
>> 7fed00a6e000-7fed00a93000 r-xp 00000000 08:01 5773583
>> /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
>> 7fed00a93000-7fed00c93000 ---p 00025000 08:01 5773583
>> /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
>> 7fed00c93000-7fed00c94000 r--p 00025000 08:01 5773583
>> /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
>> 7fed00c94000-7fed00c95000 rw-p 00026000 08:01 5773583
>> /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
>> 7fed00c95000-7fed00c96000 rw-p 00000000 00:00 0
>> 7fed00c96000-7fed00d5a000 r-xp 00000000 08:01 5786863
>> /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
>> 7fed00d5a000-7fed00f59000 ---p 000c4000 08:01 5786863
>> /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
>> 7fed00f59000-7fed00f63000 r--p 000c3000 08:01 5786863
>> /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
>> 7fed00f63000-7fed00f64000 rw-p 000cd000 08:01 5786863
>> /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
>> 7fed00f64000-7fed00f9e000 r-xp 00000000 08:01 5773604
>> /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
>> 7fed00f9e000-7fed0119e000 ---p 0003a000 08:01 5773604
>> /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
>> 7fed0119e000-7fed0119f000 r--p 0003a000 08:01 5773604
>> /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
>> 7fed0119f000-7fed011a2000 rw-p 0003b000 08:01 5773604
>> /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
>> 7fed011a2000-7fed011bc000 r-xp 00000000 08:01 5773607
>> /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
>> 7fed011bc000-7fed013bb000 ---p 0001a000 08:01 5773607
>> /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
>> 7fed013bb000-7fed013bc000 r--p 00019000 08:01 5773607
>> /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
>> 7fed013bc000-7fed013bd000 rw-p 0001a000 08:01 5773607
>> /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
>> 7fed013bd000-7fed013d5000 r-xp 00000000 08:01 11010858
>> /lib/x86_64-linux-gnu/libresolv-2.15.so
>> 7fed013d5000-7fed015d5000 ---p 00018000 08:01 11010858
>> /lib/x86_64-linux-gnu/libresolv-2.15.so
>> 7fed015d5000-7fed015d6000 r--p 00018000 08:01 11010858
>> /lib/x86_64-linux-gnu/libresolv-2.15.so
>> 7fed015d6000-7fed015d7000 rw-p 00019000 08:01 11010858
>> /lib/x86_64-linux-gnu/libresolv-2.15.so
>> 7fed015d7000-7fed015d9000 rw-p 00000000 00:00 0
>> 7fed015d9000-7fed015f1000 r-xp 00000000 08:01 11010853
>> /lib/x86_64-linux-gnu/libpthread-2.15.so
>> 7fed015f1000-7fed017f0000 ---p 00018000 08:01 11010853
>> /lib/x86_64-linux-gnu/libpthread-2.15.so
>> 7fed017f0000-7fed017f1000 r--p 00017000 08:01 11010853
>> /lib/x86_64-linux-gnu/libpthread-2.15.so
>> 7fed017f1000-7fed017f2000 rw-p 00018000 08:01 11010853
>> /lib/x86_64-linux-gnu/libpthread-2.15.so
>> 7fed017f2000-7fed017f6000 rw-p 00000000 00:00 0
>> 7fed017f6000-7fed0180e000 r-xp 00000000 08:01 5773616
>> /usr/lib/x86_64-linux-gnu/librtmp.so.0
>> 7fed0180e000-7fed01a0e000 ---p 00018000 08:01 5773616
>> /usr/lib/x86_64-linux-gnu/librtmp.so.0
>> 7fed01a0e000-7fed01a0f000 r--p 00018000 08:01 5773616
>> /usr/lib/x86_64-linux-gnu/librtmp.so.0
>> 7fed01a0f000-7fed01a10000 rw-p 00019000 08:01 5773616
>> /usr/lib/x86_64-linux-gnu/librtmp.so.0
>> 7fed01a10000-7fed01a8a000 r-xp 00000000 08:01 11010063
>> /lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
>> 7fed01a8a000-7fed01c8a000 ---p 0007a000 08:01 11010063
>> /lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
>> 7fed01c8a000-7fed01c8b000 r--p 0007a000 08:01 11010063
>> /lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
>> 7fed01c8b000-7fed01c8e000 rw-p 0007b000 08:01 11010063
>> /lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
>> 7fed01c8e000-7fed01d42000 r-xp 00000000 08:01 5786861
>> /usr/lib/x86_64-linux-gnu/libgnutls.so.26.21.8
>> 7fed01d42000-7fed01f42000 ---p 000b4000 08:01 5786861
>> /usr/lib/x86_64-linux-gnu/libgnutls.so.26.21.8
>> 7fed01f42000-7fed01f48000 r--p 000b4000 08:01 5786861
>> /usr/lib/x86_64-linux-gnu/libgnutls.so.26.21.8
>> 7fed01f48000-7fed01f49000 rw-p 000ba000 08:01 5786861
>> /usr/lib/x86_64-linux-gnu/libgnutls.so.26.21.8
>> 7fed01f49000-7fed01f4a000 rw-p 00000000 00:00 0
>> 7fed01f4a000-7fed01f60000 r-xp 00000000 08:01 11010218
>> /lib/x86_64-linux-gnu/libz.so.1.2.3.4
>> 7fed01f60000-7fed0215f000 ---p 00016000 08:01 11010218
>> /lib/x86_64-linux-gnu/libz.so.1.2.3.4
>> 7fed0215f000-7fed02160000 r--p 00015000 08:01 11010218
>> /lib/x86_64-linux-gnu/libz.so.1.2.3.4
>> 7fed02160000-7fed02161000 rw-p 00016000 08:01 11010218
>> /lib/x86_64-linux-gnu/libz.so.1.2.3.4
>> 7fed02161000-7fed0219c000 r-xp 00000000 08:01 5772630
>> /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
>> 7fed0219c000-7fed0239c000 ---p 0003b000 08:01 5772630
>> /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
>> 7fed0239c000-7fed0239d000 r--p 0003b000 08:01 5772630
>> /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
>> 7fed0239d000-7fed0239f000 rw-p 0003c000 08:01 5772630
>> /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
>> 7fed0239f000-7fed023a6000 r-xp 00000000 08:01 11010856
>> /lib/x86_64-linux-gnu/librt-2.15.so
>> 7fed023a6000-7fed025a5000 ---p 00007000 08:01 11010856
>> /lib/x86_64-linux-gnu/librt-2.15.so
>> 7fed025a5000-7fed025a6000 r--p 00006000 08:01 11010856
>> /lib/x86_64-linux-gnu/librt-2.15.so
>> 7fed025a6000-7fed025a7000 rw-p 00007000 08:01 11010856
>> /lib/x86_64-linux-gnu/librt-2.15.so
>> 7fed025a7000-7fed025f2000 r-xp 00000000 08:01 5772626
>> /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.8.1
>> 7fed025f2000-7fed027f1000 ---p 0004b000 08:01 5772626
>> /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.8.1
>> 7fed027f1000-7fed027f3000 r--p 0004a000 08:01 5772626
>> /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.8.1
>> 7fed027f3000-7fed027f4000 rw-p 0004c000 08:01 5772626
>> /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.8.1
>> 7fed027f4000-7fed027f6000 rw-p 00000000 00:00 0
>> 7fed027f6000-7fed02803000 r-xp 00000000 08:01 5786866
>> /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.8.1
>> 7fed02803000-7fed02a02000 ---p 0000d000 08:01 5786866
>> /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.8.1
>> 7fed02a02000-7fed02a03000 r--p 0000c000 08:01 5786866
>> /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.8.1
>> 7fed02a03000-7fed02a04000 rw-p 0000d000 08:01 5786866
>> /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.8.1
>> 7fed02a04000-7fed02a36000 r-xp 00000000 08:01 5773087
>> /usr/lib/x86_64-linux-gnu/libidn.so.11.6.6
>> 7fed02a36000-7fed02c35000 ---p 00032000 08:01 5773087
>> /usr/lib/x86_64-linux-gnu/libidn.so.11.6.6
>> 7fed02c35000-7fed02c36000 r--p 00031000 08:01 5773087
>> /usr/lib/x86_64-linux-gnu/libidn.so.11.6.6
>> 7fed02c36000-7fed02c37000 rw-p 00032000 08:01 5773087
>> /usr/lib/x86_64-linux-gnu/libidn.so.11.6.6
>> 7fed02c37000-7fed02fc9000 r-xp 00000000 08:01 5786767
>> /usr/lib/libhdf5.so.6.0.3
>> 7fed02fc9000-7fed031c8000 ---p 00392000 08:01 5786767
>> /usr/lib/libhdf5.so.6.0.3
>> 7fed031c8000-7fed031cd000 r--p 00391000 08:01 5786767
>> /usr/lib/libhdf5.so.6.0.3
>> 7fed031cd000-7fed031d1000 rw-p 00396000 08:01 5786767
>> /usr/lib/libhdf5.so.6.0.3
>> 7fed031d1000-7fed031d2000 rw-p 00000000 00:00 0
>> 7fed031d2000-7fed031f2000 r-xp 00000000 08:01 5786770
>> /usr/lib/libhdf5_hl.so.6.0.3
>> 7fed031f2000-7fed033f1000 ---p 00020000 08:01 5786770
>> /usr/lib/libhdf5_hl.so.6.0.3
>> 7fed033f1000-7fed033f2000 r--p 0001f000 08:01 5786770
>> /usr/lib/libhdf5_hl.so.6.0.3
>> 7fed033f2000-7fed033f3000 rw-p 00020000 08:01 5786770
>> /usr/lib/libhdf5_hl.so.6.0.3
>> 7fed033f3000-7fed03404000 rw-p 00000000 00:00 0
>> 7fed03404000-7fed03459000 r-xp 00000000 08:01 5773609
>> /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.2.0
>> 7fed03459000-7fed03659000 ---p 00055000 08:01 5773609
>> /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.2.0
>> 7fed03659000-7fed0365b000 r--p 00055000 08:01 5773609
>> /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.2.0
>> 7fed0365b000-7fed0365c000 rw-p 00057000 08:01 5773609
>> /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.2.0
>> 7fed0365c000-7fed0373f000 r-xp 00000000 08:01 5789585
>> /usr/lib/libnetcdf.so.6.0.0
>> 7fed0373f000-7fed0393f000 ---p 000e3000 08:01 5789585
>> /usr/lib/libnetcdf.so.6.0.0
>> 7fed0393f000-7fed0398d000 r--p 000e3000 08:01 5789585
>> /usr/lib/libnetcdf.so.6.0.0
>> 7fed0398d000-7fed0398f000 rw-p 00131000 08:01 5789585
>> /usr/lib/libnetcdf.so.6.0.0
>> 7fed0398f000-7fed0399a000 rw-p 00000000 00:00 0
>> 7fed0399a000-7fed03b4f000 r-xp 00000000 08:01 11010850
>> /lib/x86_64-linux-gnu/libc-2.15.so
>> 7fed03b4f000-7fed03d4e000 ---p 001b5000 08:01 11010850
>> /lib/x86_64-linux-gnu/libc-2.15.so
>> 7fed03d4e000-7fed03d52000 r--p 001b4000 08:01 11010850
>> /lib/x86_64-linux-gnu/libc-2.15.so
>> 7fed03d52000-7fed03d54000 rw-p 001b8000 08:01 11010850
>> /lib/x86_64-linux-gnu/libc-2.15.so
>> 7fed03d54000-7fed03d59000 rw-p 00000000 00:00 0
>> 7fed03d59000-7fed03e54000 r-xp 00000000 08:01 11010864
>> /lib/x86_64-linux-gnu/libm-2.15.so
>> 7fed03e54000-7fed04053000 ---p 000fb000 08:01 11010864
>> /lib/x86_64-linux-gnu/libm-2.15.so
>> 7fed04053000-7fed04054000 r--p 000fa000 08:01 11010864
>> /lib/x86_64-linux-gnu/libm-2.15.so
>> 7fed04054000-7fed04055000 rw-p 000fb000 08:01 11010864
>> /lib/x86_64-linux-gnu/libm-2.15.so
>> 7fed04055000-7fed04116000 r-xp 00000000 08:01 5789952
>> /usr/lib/libgmt.so.4
>> 7fed04116000-7fed04316000 ---p 000c1000 08:01 5789952
>> /usr/lib/libgmt.so.4
>> 7fed04316000-7fed04317000 r--p 000c1000 08:01 5789952
>> /usr/lib/libgmt.so.4
>> 7fed04317000-7fed0433c000 rw-p 000c2000 08:01 5789952
>> /usr/lib/libgmt.so.4
>> 7fed0433c000-7fed04368000 rw-p 00000000 00:00 0
>> 7fed04368000-7fed0438a000 r-xp 00000000 08:01 11010876
>> /lib/x86_64-linux-gnu/ld-2.15.so
>> 7fed04557000-7fed0456a000 rw-p 00000000 00:00 0
>> 7fed04587000-7fed0458a000 rw-p 00000000 00:00 0
>> 7fed0458a000-7fed0458b000 r--p 00022000 08:01 11010876
>> /lib/x86_64-linux-gnu/ld-2.15.so
>> 7fed0458b000-7fed0458d000 rw-p 00023000 08:01 11010876
>> /lib/x86_64-linux-gnu/ld-2.15.so
>> 7fff0b75b000-7fff0b78f000 rw-p 00000000 00:00 0
>> [stack]
>> 7fff0b7ff000-7fff0b800000 r-xp 00000000 00:00 0
>> [vdso]
>> ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0
>> [vsyscall]
>> *grdmath: Not a supported grid format
>> [/opt/shakemap/bin/../data/9583161/output/MGU7BgDk82.grd]*
>> **** buffer overflow detected ***: /usr/lib/gmt/bin/grdmath terminated*
>> ======= Backtrace: =========
>> /lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x7f898eaa2807]
>> /lib/x86_64-linux-gnu/libc.so.6(+0x109700)[0x7f898eaa1700]
>> /lib/x86_64-linux-gnu/libc.so.6(+0x1085d3)[0x7f898eaa05d3]
>> /usr/lib/libgmt.so.4(GMT_grd_init+0x106)[0x7f898f07b2e6]
>> /usr/lib/gmt/bin/grdmath[0x40528b]
>> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7f898e9b976d]
>> /usr/lib/gmt/bin/grdmath[0x4077a9]
>> ======= Memory map: ========
>> 00400000-0041c000 r-xp 00000000 08:01 5904758
>> /usr/lib/gmt/bin/grdmath
>> 0061b000-0061c000 r--p 0001b000 08:01 5904758
>> /usr/lib/gmt/bin/grdmath
>> 0061c000-0061d000 rw-p 0001c000 08:01 5904758
>> /usr/lib/gmt/bin/grdmath
>> 019b7000-019f9000 rw-p 00000000 00:00 0
>> [heap]
>> 7f8989347000-7f898935c000 r-xp 00000000 08:01 11010093
>> /lib/x86_64-linux-gnu/libgcc_s.so.1
>> 7f898935c000-7f898955b000 ---p 00015000 08:01 11010093
>> /lib/x86_64-linux-gnu/libgcc_s.so.1
>> 7f898955b000-7f898955c000 r--p 00014000 08:01 11010093
>> /lib/x86_64-linux-gnu/libgcc_s.so.1
>> 7f898955c000-7f898955d000 rw-p 00015000 08:01 11010093
>> /lib/x86_64-linux-gnu/libgcc_s.so.1
>> 7f898955d000-7f8989566000 r-xp 00000000 08:01 11010866
>> /lib/x86_64-linux-gnu/libcrypt-2.15.so
>> 7f8989566000-7f8989766000 ---p 00009000 08:01 11010866
>> /lib/x86_64-linux-gnu/libcrypt-2.15.so
>> 7f8989766000-7f8989767000 r--p 00009000 08:01 11010866
>> /lib/x86_64-linux-gnu/libcrypt-2.15.so
>> 7f8989767000-7f8989768000 rw-p 0000a000 08:01 11010866
>> /lib/x86_64-linux-gnu/libcrypt-2.15.so
>> 7f8989768000-7f8989796000 rw-p 00000000 00:00 0
>> 7f8989796000-7f8989834000 r-xp 00000000 08:01 5786858
>> /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
>> 7f8989834000-7f8989a34000 ---p 0009e000 08:01 5786858
>> /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
>> 7f8989a34000-7f8989a36000 r--p 0009e000 08:01 5786858
>> /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
>> 7f8989a36000-7f8989a38000 rw-p 000a0000 08:01 5786858
>> /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
>> 7f8989a38000-7f8989a39000 rw-p 00000000 00:00 0
>> 7f8989a39000-7f8989a7e000 r-xp 00000000 08:01 5773595
>> /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
>> 7f8989a7e000-7f8989c7e000 ---p 00045000 08:01 5773595
>> /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
>> 7f8989c7e000-7f8989c80000 r--p 00045000 08:01 5773595
>> /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
>> 7f8989c80000-7f8989c82000 rw-p 00047000 08:01 5773595
>> /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
>> 7f8989c82000-7f8989c83000 rw-p 00000000 00:00 0
>> 7f8989c83000-7f8989c91000 r-xp 00000000 08:01 5773589
>> /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
>> 7f8989c91000-7f8989e90000 ---p 0000e000 08:01 5773589
>> /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
>> 7f8989e90000-7f8989e91000 r--p 0000d000 08:01 5773589
>> /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
>> 7f8989e91000-7f8989e92000 rw-p 0000e000 08:01 5773589
>> /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
>> 7f8989e92000-7f8989eba000 r-xp 00000000 08:01 5773592
>> /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
>> 7f8989eba000-7f898a0b9000 ---p 00028000 08:01 5773592
>> /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
>> 7f898a0b9000-7f898a0ba000 r--p 00027000 08:01 5773592
>> /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
>> 7f898a0ba000-7f898a0bb000 rw-p 00028000 08:01 5773592
>> /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
>> 7f898a0bb000-7f898a0be000 r-xp 00000000 08:01 11010397
>> /lib/x86_64-linux-gnu/libkeyutils.so.1.4
>> 7f898a0be000-7f898a2bd000 ---p 00003000 08:01 11010397
>> /lib/x86_64-linux-gnu/libkeyutils.so.1.4
>> 7f898a2bd000-7f898a2be000 r--p 00002000 08:01 11010397
>> /lib/x86_64-linux-gnu/libkeyutils.so.1.4
>> 7f898a2be000-7f898a2bf000 rw-p 00003000 08:01 11010397
>> /lib/x86_64-linux-gnu/libkeyutils.so.1.4
>> 7f898a2bf000-7f898a2d3000 r-xp 00000000 08:01 5773571
>> /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
>> 7f898a2d3000-7f898a4d2000 ---p 00014000 08:01 5773571
>> /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
>> 7f898a4d2000-7f898a4d3000 r--p 00013000 08:01 5773571
>> /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
>> 7f898a4d3000-7f898a4d4000 rw-p 00014000 08:01 5773571
>> /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
>> 7f898a4d4000-7f898a505000 r-xp 00000000 08:01 5773586
>> /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
>> 7f898a505000-7f898a705000 ---p 00031000 08:01 5773586
>> /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
>> 7f898a705000-7f898a706000 r--p 00031000 08:01 5773586
>> /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
>> 7f898a706000-7f898a707000 rw-p 00032000 08:01 5773586
>> /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
>> 7f898a707000-7f898a708000 rw-p 00000000 00:00 0
>> 7f898a708000-7f898a7a3000 r-xp 00000000 08:01 5773574
>> /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
>> 7f898a7a3000-7f898a9a2000 ---p 0009b000 08:01 5773574
>> /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
>> 7f898a9a2000-7f898a9a4000 r--p 0009a000 08:01 5773574
>> /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
>> 7f898a9a4000-7f898a9a8000 rw-p 0009c000 08:01 5773574
>> /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
>> 7f898a9a8000-7f898aa28000 r-xp 00000000 08:01 5773598
>> /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
>> 7f898aa28000-7f898ac28000 ---p 00080000 08:01 5773598
>> /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
>> 7f898ac28000-7f898ac2a000 r--p 00080000 08:01 5773598
>> /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
>> 7f898ac2a000-7f898ac2e000 rw-p 00082000 08:01 5773598
>> /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
>> 7f898ac2e000-7f898ac34000 r-xp 00000000 08:01 5773601
>> /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
>> 7f898ac34000-7f898ae33000 ---p 00006000 08:01 5773601
>> /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
>> 7f898ae33000-7f898ae34000 r--p 00005000 08:01 5773601
>> /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
>> 7f898ae34000-7f898ae35000 rw-p 00006000 08:01 5773601
>> /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
>> 7f898ae35000-7f898ae37000 r-xp 00000000 08:01 11010847
>> /lib/x86_64-linux-gnu/libdl-2.15.so
>> 7f898ae37000-7f898b037000 ---p 00002000 08:01 11010847
>> /lib/x86_64-linux-gnu/libdl-2.15.so
>> 7f898b037000-7f898b038000 r--p 00002000 08:01 11010847
>> /lib/x86_64-linux-gnu/libdl-2.15.so
>> 7f898b038000-7f898b039000 rw-p 00003000 08:01 11010847
>> /lib/x86_64-linux-gnu/libdl-2.15.so
>> 7f898b039000-7f898b03c000 r-xp 00000000 08:01 11010342
>> /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
>> 7f898b03c000-7f898b23b000 ---p 00003000 08:01 11010342
>> /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
>> 7f898b23b000-7f898b23c000 r--p 00002000 08:01 11010342
>> /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
>> 7f898b23c000-7f898b23d000 rw-p 00003000 08:01 11010342
>> /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
>> 7f898b23d000-7f898b24e000 r-xp 00000000 08:01 5773577
>> /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
>> 7f898b24e000-7f898b44d000 ---p 00011000 08:01 5773577
>> /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
>> 7f898b44d000-7f898b44e000 r--p 00010000 08:01 5773577
>> /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
>> 7f898b44e000-7f898b44f000 rw-p 00011000 08:01 5773577
>> /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
>> 7f898b44f000-7f898b45f000 r-xp 00000000 08:01 5771972
>> /usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.12
>> 7f898b45f000-7f898b65e000 ---p 00010000 08:01 5771972
>> /usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.12
>> 7f898b65e000-7f898b65f000 r--p 0000f000 08:01 5771972
>> /usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.12
>> 7f898b65f000-7f898b660000 rw-p 00010000 08:01 5771972
>> /usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.12
>> 7f898b660000-7f898b667000 r-xp 00000000 08:01 5772636
>> /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
>> 7f898b667000-7f898b866000 ---p 00007000 08:01 5772636
>> /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
>> 7f898b866000-7f898b867000 r--p 00006000 08:01 5772636
>> /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
>> 7f898b867000-7f898b868000 rw-p 00007000 08:01 5772636
>> /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
>> 7f898b868000-7f898b86b000 r-xp 00000000 08:01 11010057
>> /lib/x86_64-linux-gnu/libcom_err.so.2.1
>> 7f898b86b000-7f898ba6a000 ---p 00003000 08:01 11010057
>> /lib/x86_64-linux-gnu/libcom_err.so.2.1
>> 7f898ba6a000-7f898ba6b000 r--p 00002000 08:01 11010057
>> /lib/x86_64-linux-gnu/libcom_err.so.2.1
>> 7f898ba6b000-7f898ba6c000 rw-p 00003000 08:01 11010057
>> /lib/x86_64-linux-gnu/libcom_err.so.2.1
>> 7f898ba6c000-7f898ba91000 r-xp 00000000 08:01 5773583
>> /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
>> 7f898ba91000-7f898bc91000 ---p 00025000 08:01 5773583
>> /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
>> 7f898bc91000-7f898bc92000 r--p 00025000 08:01 5773583
>> /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
>> 7f898bc92000-7f898bc93000 rw-p 00026000 08:01 5773583
>> /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
>> 7f898bc93000-7f898bc94000 rw-p 00000000 00:00 0
>> 7f898bc94000-7f898bd58000 r-xp 00000000 08:01 5786863
>> /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
>> 7f898bd58000-7f898bf57000 ---p 000c4000 08:01 5786863
>> /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
>> 7f898bf57000-7f898bf61000 r--p 000c3000 08:01 5786863
>> /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
>> 7f898bf61000-7f898bf62000 rw-p 000cd000 08:01 5786863
>> /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
>> 7f898bf62000-7f898bf9c000 r-xp 00000000 08:01 5773604
>> /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
>> 7f898bf9c000-7f898c19c000 ---p 0003a000 08:01 5773604
>> /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
>> 7f898c19c000-7f898c19d000 r--p 0003a000 08:01 5773604
>> /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
>> 7f898c19d000-7f898c1a0000 rw-p 0003b000 08:01 5773604
>> /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
>> 7f898c1a0000-7f898c1ba000 r-xp 00000000 08:01 5773607
>> /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
>> 7f898c1ba000-7f898c3b9000 ---p 0001a000 08:01 5773607
>> /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
>> 7f898c3b9000-7f898c3ba000 r--p 00019000 08:01 5773607
>> /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
>> 7f898c3ba000-7f898c3bb000 rw-p 0001a000 08:01 5773607
>> /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
>> 7f898c3bb000-7f898c3d3000 r-xp 00000000 08:01 11010858
>> /lib/x86_64-linux-gnu/libresolv-2.15.so
>> 7f898c3d3000-7f898c5d3000 ---p 00018000 08:01 11010858
>> /lib/x86_64-linux-gnu/libresolv-2.15.so
>> 7f898c5d3000-7f898c5d4000 r--p 00018000 08:01 11010858
>> /lib/x86_64-linux-gnu/libresolv-2.15.so
>> 7f898c5d4000-7f898c5d5000 rw-p 00019000 08:01 11010858
>> /lib/x86_64-linux-gnu/libresolv-2.15.so
>> 7f898c5d5000-7f898c5d7000 rw-p 00000000 00:00 0
>> 7f898c5d7000-7f898c5ef000 r-xp 00000000 08:01 11010853
>> /lib/x86_64-linux-gnu/libpthread-2.15.so
>> 7f898c5ef000-7f898c7ee000 ---p 00018000 08:01 11010853
>> /lib/x86_64-linux-gnu/libpthread-2.15.so
>> 7f898c7ee000-7f898c7ef000 r--p 00017000 08:01 11010853
>> /lib/x86_64-linux-gnu/libpthread-2.15.so
>> 7f898c7ef000-7f898c7f0000 rw-p 00018000 08:01 11010853
>> /lib/x86_64-linux-gnu/libpthread-2.15.so
>> 7f898c7f0000-7f898c7f4000 rw-p 00000000 00:00 0
>> 7f898c7f4000-7f898c80c000 r-xp 00000000 08:01 5773616
>> /usr/lib/x86_64-linux-gnu/librtmp.so.0
>> 7f898c80c000-7f898ca0c000 ---p 00018000 08:01 5773616
>> /usr/lib/x86_64-linux-gnu/librtmp.so.0
>> 7f898ca0c000-7f898ca0d000 r--p 00018000 08:01 5773616
>> /usr/lib/x86_64-linux-gnu/librtmp.so.0
>> 7f898ca0d000-7f898ca0e000 rw-p 00019000 08:01 5773616
>> /usr/lib/x86_64-linux-gnu/librtmp.so.0
>> 7f898ca0e000-7f898ca88000 r-xp 00000000 08:01 11010063
>> /lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
>> 7f898ca88000-7f898cc88000 ---p 0007a000 08:01 11010063
>> /lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
>> 7f898cc88000-7f898cc89000 r--p 0007a000 08:01 11010063
>> /lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
>> 7f898cc89000-7f898cc8c000 rw-p 0007b000 08:01 11010063
>> /lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
>> 7f898cc8c000-7f898cd40000 r-xp 00000000 08:01 5786861
>> /usr/lib/x86_64-linux-gnu/libgnutls.so.26.21.8
>> 7f898cd40000-7f898cf40000 ---p 000b4000 08:01 5786861
>> /usr/lib/x86_64-linux-gnu/libgnutls.so.26.21.8
>> 7f898cf40000-7f898cf46000 r--p 000b4000 08:01 5786861
>> /usr/lib/x86_64-linux-gnu/libgnutls.so.26.21.8
>> 7f898cf46000-7f898cf47000 rw-p 000ba000 08:01 5786861
>> /usr/lib/x86_64-linux-gnu/libgnutls.so.26.21.8
>> 7f898cf47000-7f898cf48000 rw-p 00000000 00:00 0
>> 7f898cf48000-7f898cf5e000 r-xp 00000000 08:01 11010218
>> /lib/x86_64-linux-gnu/libz.so.1.2.3.4
>> 7f898cf5e000-7f898d15d000 ---p 00016000 08:01 11010218
>> /lib/x86_64-linux-gnu/libz.so.1.2.3.4
>> 7f898d15d000-7f898d15e000 r--p 00015000 08:01 11010218
>> /lib/x86_64-linux-gnu/libz.so.1.2.3.4
>> 7f898d15e000-7f898d15f000 rw-p 00016000 08:01 11010218
>> /lib/x86_64-linux-gnu/libz.so.1.2.3.4
>> 7f898d15f000-7f898d19a000 r-xp 00000000 08:01 5772630
>> /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
>> 7f898d19a000-7f898d39a000 ---p 0003b000 08:01 5772630
>> /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
>> 7f898d39a000-7f898d39b000 r--p 0003b000 08:01 5772630
>> /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
>> 7f898d39b000-7f898d39d000 rw-p 0003c000 08:01 5772630
>> /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
>> 7f898d39d000-7f898d3a4000 r-xp 00000000 08:01 11010856
>> /lib/x86_64-linux-gnu/librt-2.15.so
>> 7f898d3a4000-7f898d5a3000 ---p 00007000 08:01 11010856
>> /lib/x86_64-linux-gnu/librt-2.15.so
>> 7f898d5a3000-7f898d5a4000 r--p 00006000 08:01 11010856
>> /lib/x86_64-linux-gnu/librt-2.15.so
>> 7f898d5a4000-7f898d5a5000 rw-p 00007000 08:01 11010856
>> /lib/x86_64-linux-gnu/librt-2.15.so
>> 7f898d5a5000-7f898d5f0000 r-xp 00000000 08:01 5772626
>> /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.8.1
>> 7f898d5f0000-7f898d7ef000 ---p 0004b000 08:01 5772626
>> /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.8.1
>> 7f898d7ef000-7f898d7f1000 r--p 0004a000 08:01 5772626
>> /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.8.1
>> 7f898d7f1000-7f898d7f2000 rw-p 0004c000 08:01 5772626
>> /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.8.1
>> 7f898d7f2000-7f898d7f4000 rw-p 00000000 00:00 0
>> 7f898d7f4000-7f898d801000 r-xp 00000000 08:01 5786866
>> /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.8.1
>> 7f898d801000-7f898da00000 ---p 0000d000 08:01 5786866
>> /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.8.1
>> 7f898da00000-7f898da01000 r--p 0000c000 08:01 5786866
>> /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.8.1
>> 7f898da01000-7f898da02000 rw-p 0000d000 08:01 5786866
>> /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.8.1
>> 7f898da02000-7f898da34000 r-xp 00000000 08:01 5773087
>> /usr/lib/x86_64-linux-gnu/libidn.so.11.6.6
>> 7f898da34000-7f898dc33000 ---p 00032000 08:01 5773087
>> /usr/lib/x86_64-linux-gnu/libidn.so.11.6.6
>> 7f898dc33000-7f898dc34000 r--p 00031000 08:01 5773087
>> /usr/lib/x86_64-linux-gnu/libidn.so.11.6.6
>> 7f898dc34000-7f898dc35000 rw-p 00032000 08:01 5773087
>> /usr/lib/x86_64-linux-gnu/libidn.so.11.6.6
>> 7f898dc35000-7f898dfc7000 r-xp 00000000 08:01 5786767
>> /usr/lib/libhdf5.so.6.0.3
>> 7f898dfc7000-7f898e1c6000 ---p 00392000 08:01 5786767
>> /usr/lib/libhdf5.so.6.0.3
>> 7f898e1c6000-7f898e1cb000 r--p 00391000 08:01 5786767
>> /usr/lib/libhdf5.so.6.0.3
>> 7f898e1cb000-7f898e1cf000 rw-p 00396000 08:01 5786767
>> /usr/lib/libhdf5.so.6.0.3
>> 7f898e1cf000-7f898e1d0000 rw-p 00000000 00:00 0
>> 7f898e1d0000-7f898e1f0000 r-xp 00000000 08:01 5786770
>> /usr/lib/libhdf5_hl.so.6.0.3
>> 7f898e1f0000-7f898e3ef000 ---p 00020000 08:01 5786770
>> /usr/lib/libhdf5_hl.so.6.0.3
>> 7f898e3ef000-7f898e3f0000 r--p 0001f000 08:01 5786770
>> /usr/lib/libhdf5_hl.so.6.0.3
>> 7f898e3f0000-7f898e3f1000 rw-p 00020000 08:01 5786770
>> /usr/lib/libhdf5_hl.so.6.0.3
>> 7f898e3f1000-7f898e402000 rw-p 00000000 00:00 0
>> 7f898e402000-7f898e457000 r-xp 00000000 08:01 5773609
>> /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.2.0
>> 7f898e457000-7f898e657000 ---p 00055000 08:01 5773609
>> /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.2.0
>> 7f898e657000-7f898e659000 r--p 00055000 08:01 5773609
>> /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.2.0
>> 7f898e659000-7f898e65a000 rw-p 00057000 08:01 5773609
>> /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.2.0
>> 7f898e65a000-7f898e73d000 r-xp 00000000 08:01 5789585
>> /usr/lib/libnetcdf.so.6.0.0
>> 7f898e73d000-7f898e93d000 ---p 000e3000 08:01 5789585
>> /usr/lib/libnetcdf.so.6.0.0
>> 7f898e93d000-7f898e98b000 r--p 000e3000 08:01 5789585
>> /usr/lib/libnetcdf.so.6.0.0
>> 7f898e98b000-7f898e98d000 rw-p 00131000 08:01 5789585
>> /usr/lib/libnetcdf.so.6.0.0
>> 7f898e98d000-7f898e998000 rw-p 00000000 00:00 0
>> 7f898e998000-7f898eb4d000 r-xp 00000000 08:01 11010850
>> /lib/x86_64-linux-gnu/libc-2.15.so
>> 7f898eb4d000-7f898ed4c000 ---p 001b5000 08:01 11010850
>> /lib/x86_64-linux-gnu/libc-2.15.so
>> 7f898ed4c000-7f898ed50000 r--p 001b4000 08:01 11010850
>> /lib/x86_64-linux-gnu/libc-2.15.so
>> 7f898ed50000-7f898ed52000 rw-p 001b8000 08:01 11010850
>> /lib/x86_64-linux-gnu/libc-2.15.so
>> 7f898ed52000-7f898ed57000 rw-p 00000000 00:00 0
>> 7f898ed57000-7f898ee52000 r-xp 00000000 08:01 11010864
>> /lib/x86_64-linux-gnu/libm-2.15.so
>> 7f898ee52000-7f898f051000 ---p 000fb000 08:01 11010864
>> /lib/x86_64-linux-gnu/libm-2.15.so
>> 7f898f051000-7f898f052000 r--p 000fa000 08:01 11010864
>> /lib/x86_64-linux-gnu/libm-2.15.so
>> 7f898f052000-7f898f053000 rw-p 000fb000 08:01 11010864
>> /lib/x86_64-linux-gnu/libm-2.15.so
>> 7f898f053000-7f898f114000 r-xp 00000000 08:01 5789952
>> /usr/lib/libgmt.so.4
>> 7f898f114000-7f898f314000 ---p 000c1000 08:01 5789952
>> /usr/lib/libgmt.so.4
>> 7f898f314000-7f898f315000 r--p 000c1000 08:01 5789952
>> /usr/lib/libgmt.so.4
>> 7f898f315000-7f898f33a000 rw-p 000c2000 08:01 5789952
>> /usr/lib/libgmt.so.4
>> 7f898f33a000-7f898f366000 rw-p 00000000 00:00 0
>> 7f898f366000-7f898f388000 r-xp 00000000 08:01 11010876
>> /lib/x86_64-linux-gnu/ld-2.15.so
>> 7f898f555000-7f898f568000 rw-p 00000000 00:00 0
>> 7f898f585000-7f898f588000 rw-p 00000000 00:00 0
>> 7f898f588000-7f898f589000 r--p 00022000 08:01 11010876
>> /lib/x86_64-linux-gnu/ld-2.15.so
>> 7f898f589000-7f898f58b000 rw-p 00023000 08:01 11010876
>> /lib/x86_64-linux-gnu/ld-2.15.so
>> 7fff436ef000-7fff43723000 rw-p 00000000 00:00 0
>> [stack]
>> 7fff437ff000-7fff43800000 r-xp 00000000 00:00 0
>> [vdso]
>> ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0
>> [vsyscall]
>> *grdmath: Not a supported grid format
>> [/opt/shakemap/bin/../data/9583161/output/BeQLbKDM1a.grd]*
>> *grdmath: Not a supported grid format
>> [/opt/shakemap/bin/../data/9583161/output/mScnvFV9i7.grd]*
>> *grdmath: Not a supported grid format
>> [/opt/shakemap/bin/../data/9583161/output/sU3YUndBaC.grd]*
>> *grdmath: Not a supported grid format
>> [/opt/shakemap/bin/../data/9583161/output/eDQoJ6czSe.grd]*
>> *grdmath: GMT SYNTAX ERROR:
>> /opt/shakemap/bin/../data/9583161/output/mi.grd is not a number, operator
>> or file name*
>> *grdmath: GMT SYNTAX ERROR:
>> /opt/shakemap/bin/../data/9583161/output/mi.grd is not a number, operator
>> or file name*
>> grdinfo: Could not find file
>> [/opt/shakemap/bin/../data/9583161/output/mi.grd]
>> *grdmath: GMT SYNTAX ERROR:
>> /opt/shakemap/bin/../data/9583161/output/mi.grd is not a number, operator
>> or file name*
>> grd2xyz: Could not find file
>> [/opt/shakemap/bin/../data/9583161/output/mi.grd]
>> Uncertainty computation skipped (no Intensity > 6.0)
>>
>> also,
>> ***@osop-displays2:/usr/lib/gmt/bin$ ./grdmath
>> grdmath 4.5.6 [64-bit]
>>
>> As expected.
>>
>>
>> Best regards,
>>
>>
>> *Branden Christensen*
>> The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
>> Take a Virtual Tour: http://www.osop.com.pa/tour
>>
>>
>> On Tue, Nov 26, 2013 at 1:33 AM, Paul Wessel <***@hawaii.edu> wrote:
>>
>>> Hi Brandon-
>>>
>>> That is not clear, but for starters you should upgrade to 4.5.11 first
>>> as we cannot debug obsolete versions.
>>> You could then try again, this time with verbose output from your script
>>> so we can see what the commands are.
>>> -p
>>>
>>> On Nov 25, 2013, at 4:25 PM, Branden Christensen <
>>> ***@OSOP.COM.PA> wrote:
>>>
>>> Hi all:
>>>
>>>
>>> I have spent a few days trying to solve this now. Time for some
>>> professional input.
>>>
>>> I have been trying to upgrade my ShakeMap installation to Ubuntu 12.04
>>> 64-bit. It is stumbling on grdmath.
>>>
>>> What would produce grdmath errors like?:
>>>
>>> *** buffer overflow detected ***: /usr/lib/gmt/bin/grdmath terminated
>>>
>>> &
>>>
>>> grdmath: Not a supported grid format
>>>
>>>
>>> I am running GMT-4.5.6 with GSHHS2.1.1.
>>>
>>> Thanks for any input, suggestions, solutions.
>>>
>>>
>>> Best regards from Panama,
>>>
>>>
>>> *Branden Christensen*
>>> The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
>>> Take a Virtual Tour: http://www.osop.com.pa/tour
>>> To unsubscribe, send the message "signoff gmt-help" to
>>> ***@lists.hawaii.edu
>>>
>>>
>>> To unsubscribe, send the message "signoff gmt-help" to
>>> ***@lists.hawaii.edu
>>
>>
>> To unsubscribe, send the message "signoff gmt-help" to
>> ***@lists.hawaii.edu
>>
>>
>> To unsubscribe, send the message "signoff gmt-help" to
>> ***@lists.hawaii.edu
>>
>
> To unsubscribe, send the message "signoff gmt-help" to
> ***@lists.hawaii.edu <outfile.txt>
>
>
> To unsubscribe, send the message "signoff gmt-help" to
> ***@lists.hawaii.edu
>

To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
Branden Christensen
2013-11-29 03:54:52 UTC
Permalink
Paul, HTH:


Good evening.

Thanks HTH, I fixed the sm_nearneighbor problem. It was not compiling.

Paul, I upgraded to 4.5.11 a few days ago. Unfortunately, I get the same
grdmath errors.

What can I send you besides the debug (attached, grepped for grdmath below)
of the program that spits the grdmath error to help you get a fuller
understanding of the problem?


****@branden:~/Desktop$ grep grdmath debug.txt *
/usr/lib/gmt/bin/grdmath
/opt/shakemap2/bin/../data/9583161/output/topo_data.grd.landmask
/opt/shakemap2/bin/../data/9583161/output/topo_data.grd.grad AND =
/opt/shakemap2/bin/../data/9583161/output/topo_data.grd.grad.1
grdmath: Given domain implies y_inc = 0.0250076
grdmath: (/opt/shakemap2/bin/../data/9583161/richter/jVGMTfrlN3.xy) PDIST =
/opt/shakemap2/bin/../data/9583161/richter/RdHTTANfG6.grd
grdmath: /opt/shakemap2/bin/../data/9583161/richter/RdHTTANfG6.grd DUP 1.35
HYPOT DUP 1 DIV LOG -0.683878 MUL EXCH 1 SUB -0.01151 MUL ADD EXCH 10 ADD
LOG 0.737604 MUL SUB 0.986633 ADD -1.85017 ADD EXP 1.1 MUL 100 MUL =
/opt/shakemap2/bin/../data/9583161/richter/pga_est.grd
grdmath: /opt/shakemap2/bin/../data/9583161/richter/RdHTTANfG6.grd DUP 2.54
HYPOT DUP 1 DIV LOG -0.892013 MUL EXCH 1 SUB -0.00334 MUL ADD EXCH 10 ADD
LOG 0.73084 MUL SUB 0.977695 ADD 2.00752 ADD EXP =
/opt/shakemap2/bin/../data/9583161/richter/pgv_est.grd
grdmath: /opt/shakemap2/bin/../data/9583161/richter/pga_est.grd 0 MUL
grdmath: Warning, operand two == 0!
grdmath: /opt/shakemap2/bin/../data/9583161/output/3wAxSXjMgy.grd
/opt/shakemap2/bin/../data/9583161/output/jgFVq3WALA.grd ADD
/opt/shakemap2/bin/../data/9583161/output/bvwDXGVlTj.grd 2 POW INV ADD
/opt/shakemap2/bin/../data/9583161/richter/pga_est.grd MUL 0 AND
/opt/shakemap2/bin/../data/9583161/output/R91lVjYTYy.grd
/opt/shakemap2/bin/../data/9583161/output/xyMlC1DEK5.grd ADD
/opt/shakemap2/bin/../data/9583161/output/bvwDXGVlTj.grd 2 POW INV ADD DIV
= /opt/shakemap2/bin/../data/9583161/richter/pga_rock.grd
grdmath: /opt/shakemap2/bin/../data/9583161/output/R91lVjYTYy.grd
/opt/shakemap2/bin/../data/9583161/output/xyMlC1DEK5.grd ADD
/opt/shakemap2/bin/../data/9583161/output/bvwDXGVlTj.grd 2 POW INV ADD INV
SQRT = /opt/shakemap2/bin/../data/9583161/output/pga_std.grd
grdmath: /opt/shakemap2/bin/../data/9583161/output/pga_std.grd
/opt/shakemap2/bin/../data/9583161/output/bvwDXGVlTj.grd DIV =
/opt/shakemap2/bin/../data/9583161/output/urat_pga.grd
grdmath: /opt/shakemap2/bin/../data/9583161/richter/pgv_est.grd 0 MUL
grdmath: Warning, operand two == 0!
grdmath: /opt/shakemap2/bin/../data/9583161/output/FMnJo7tIbZ.grd
/opt/shakemap2/bin/../data/9583161/output/Mm_qhbIeYt.grd 2 POW INV ADD
/opt/shakemap2/bin/../data/9583161/richter/pgv_est.grd MUL 0 AND
/opt/shakemap2/bin/../data/9583161/output/qT0ZFYUpjF.grd
/opt/shakemap2/bin/../data/9583161/output/Mm_qhbIeYt.grd 2 POW INV ADD DIV
= /opt/shakemap2/bin/../data/9583161/richter/pgv_rock.grd
grdmath: /opt/shakemap2/bin/../data/9583161/output/qT0ZFYUpjF.grd
/opt/shakemap2/bin/../data/9583161/output/Mm_qhbIeYt.grd 2 POW INV ADD INV
SQRT = /opt/shakemap2/bin/../data/9583161/output/pgv_std.grd
grdmath: /opt/shakemap2/bin/../data/9583161/richter/pga_rock.grd DUP DUP 10
LE 0.35 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.1
MUL 0.35 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV
-0.15 MUL 0.25 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10
DIV -0.15 MUL 0.1 ADD MUL EXCH 40 GT -0.05 MUL ADD ADD ADD ADD 686
/opt/shakemap2/bin/../data/9583161/output/pH2TflnsIF.grd DIV EXCH POW MUL =
/opt/shakemap2/bin/../data/9583161/output/pga.grd
grdmath: /opt/shakemap2/bin/../data/9583161/richter/pgv_rock.grd DUP DUP 10
LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05
MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV
-0.07 MUL 0.6 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10
DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686
/opt/shakemap2/bin/../data/9583161/output/pH2TflnsIF.grd DIV EXCH POW MUL =
/opt/shakemap2/bin/../data/9583161/output/pgv.grd
grdmath: Given domain implies y_inc = 0.0250076
grdmath: (/opt/shakemap2/bin/../data/9583161/richter/WV8nAeqmGZ.xy) PDIST =
/opt/shakemap2/bin/../data/9583161/richter/_kwsuoQiA6.grd
grdmath: /opt/shakemap2/bin/../data/9583161/richter/_kwsuoQiA6.grd DUP 1.35
HYPOT DUP 1 DIV LOG -0.675565 MUL EXCH 1 SUB -0.01151 MUL ADD EXCH 10 ADD
LOG 0.702188 MUL SUB 0.939828 ADD -1.79613 ADD EXP 1.1 MUL 100 MUL =
/opt/shakemap2/bin/../data/9583161/richter/pga_est.grd
grdmath: /opt/shakemap2/bin/../data/9583161/richter/_kwsuoQiA6.grd DUP 2.54
HYPOT DUP 1 DIV LOG -0.886361 MUL EXCH 1 SUB -0.00334 MUL ADD EXCH 10 ADD
LOG 0.702188 MUL SUB 0.939828 ADD 2.07726 ADD EXP =
/opt/shakemap2/bin/../data/9583161/richter/pgv_est.grd
grdmath: Given domain implies y_inc = 0.0250076
grdmath: (/opt/shakemap2/bin/../data/9583161/richter/77gmf8THF1.xy) PDIST
27.47 HYPOT = /opt/shakemap2/bin/../data/9583161/richter/FztS1T5WdS.grd
grdmath: /opt/shakemap2/bin/../data/9583161/richter/pgv_est.grd LOG10 0 AND
DUP DUP 2.17 MUL 4.62 ADD EXCH -1.21 LE MUL EXCH DUP DUP 1.47 MUL 3.78 ADD
EXCH DUP -1.21 GT EXCH 0.53 LE MUL MUL EXCH DUP 3.16 MUL 2.89 ADD EXCH 0.53
GT MUL ADD ADD 0.9 ADD 0
/opt/shakemap2/bin/../data/9583161/richter/FztS1T5WdS.grd 10 MAX 300 MIN
LOG10 MUL grdmath: Warning, operand one == 0!
grdmath: /opt/shakemap2/bin/../data/9583161/richter/pga_est.grd 9.81 MUL
LOG10 0 AND DUP DUP 2.08 MUL 1.71 ADD EXCH 0.14 LE MUL EXCH DUP DUP 1.55
MUL 1.78 ADD EXCH DUP 0.14 GT EXCH 1.57 LE MUL MUL EXCH DUP 3.7 MUL -1.6
ADD EXCH 1.57 GT MUL ADD ADD -0.91 ADD 1.02
/opt/shakemap2/bin/../data/9583161/richter/FztS1T5WdS.grd 10 MAX 300 MIN
LOG10 MUL ADD -0.17 3.9 MUL ADD 100 MUL FLOOR 100 DIV 1 MAX 10 MIN
/opt/shakemap2/bin/../data/9583161/richter/pga_est.grd OR =
/opt/shakemap2/bin/../data/9583161/richter/PKMV7rja6o.grd
grdmath: /opt/shakemap2/bin/../data/9583161/richter/MvmX0fKK55.grd
/opt/shakemap2/bin/../data/9583161/richter/PKMV7rja6o.grd AND =
/opt/shakemap2/bin/../data/9583161/richter/mi_est.grd
grdmath: Given domain implies y_inc = 0.0250076
grdmath: (/opt/shakemap2/bin/../data/9583161/output/3UYetSbqeE.xy) PDIST
27.47 HYPOT = /opt/shakemap2/bin/../data/9583161/output/H8Xa0QNpEH.grd
grdmath: /opt/shakemap2/bin/../data/9583161/richter/mi_est.grd 0.9 0
/opt/shakemap2/bin/../data/9583161/output/H8Xa0QNpEH.grd 10 MAX 300 MIN
LOG10 MUL grdmath: Warning, operand one == 0!
grdmath: /opt/shakemap2/bin/../data/9583161/richter/mi_est.grd -0.91 1.02
/opt/shakemap2/bin/../data/9583161/output/H8Xa0QNpEH.grd 10 MAX 300 MIN
LOG10 MUL ADD -0.17 3.9 MUL ADD SUB DUP DUP 2 LE EXCH 1.71 SUB 2.08 DIV MUL
EXCH DUP DUP DUP 2 GT EXCH 4.22 LE MUL EXCH 1.78 SUB 1.55 DIV MUL EXCH DUP
4.22 GT EXCH -1.6 SUB 3.7 DIV MUL ADD ADD 10 EXCH POW 9.81 DIV =
/opt/shakemap2/bin/../data/9583161/output/9DLrlfZ3ID.grd
grdmath: /opt/shakemap2/bin/../data/9583161/output/9DLrlfZ3ID.grd
/opt/shakemap2/bin/../data/9583161/output/zAC_vb2lfI.grd DIV =
/opt/shakemap2/bin/../data/9583161/output/nqexY3K47n.grd/opt/shakemap2/bin/../data/9583161/output/9DLrlfZ3ID.grd
/opt/shakemap2/bin/../data/9583161/output/zAC_vb2lfI.grd MUL =
/opt/shakemap2/bin/../data/9583161/output/YA4j8CtBj2.grd
grdmath: /opt/shakemap2/bin/../data/9583161/output/Jyh94_byR9.grd
/opt/shakemap2/bin/../data/9583161/output/CW3EMLqf_v.grd DIV =
/opt/shakemap2/bin/../data/9583161/output/nG2D0zyB4r.grd/opt/shakemap2/bin/../data/9583161/output/Jyh94_byR9.grd
/opt/shakemap2/bin/../data/9583161/output/CW3EMLqf_v.grd MUL =
/opt/shakemap2/bin/../data/9583161/output/PskMeQG9w6.grd
grdmath: Given domain implies y_inc = 0.0250076
grdmath: (/opt/shakemap2/bin/../data/9583161/output/A3A5rC858H.xy) PDIST
27.47 HYPOT = /opt/shakemap2/bin/../data/9583161/output/PsZpX7_0Kc.grd
grdmath: /opt/shakemap2/bin/../data/9583161/output/nG2D0zyB4r.grd LOG10 0
AND DUP DUP 2.17 MUL 4.62 ADD EXCH -1.21 LE MUL EXCH DUP DUP 1.47 MUL 3.78
ADD EXCH DUP -1.21 GT EXCH 0.53 LE MUL MUL EXCH DUP 3.16 MUL 2.89 ADD EXCH
0.53 GT MUL ADD ADD 0.9 ADD 0
/opt/shakemap2/bin/../data/9583161/output/PsZpX7_0Kc.grd 10 MAX 300 MIN
LOG10 MUL grdmath: Warning, operand one == 0!
grdmath: /opt/shakemap2/bin/../data/9583161/output/nqexY3K47n.grd 9.81 MUL
LOG10 0 AND DUP DUP 2.08 MUL 1.71 ADD EXCH 0.14 LE MUL EXCH DUP DUP 1.55
MUL 1.78 ADD EXCH DUP 0.14 GT EXCH 1.57 LE MUL MUL EXCH DUP 3.7 MUL -1.6
ADD EXCH 1.57 GT MUL ADD ADD -0.91 ADD 1.02
/opt/shakemap2/bin/../data/9583161/output/PsZpX7_0Kc.grd 10 MAX 300 MIN
LOG10 MUL ADD -0.17 3.9 MUL ADD 100 MUL FLOOR 100 DIV 1 MAX 10 MIN
/opt/shakemap2/bin/../data/9583161/output/nqexY3K47n.grd OR =
/opt/shakemap2/bin/../data/9583161/output/oXX6kM44SR.grd
grdmath: /opt/shakemap2/bin/../data/9583161/output/o2m3hjesRD.grd
/opt/shakemap2/bin/../data/9583161/output/oXX6kM44SR.grd AND =
/opt/shakemap2/bin/../data/9583161/output/UzGgrqve2S.grd
grdmath: /opt/shakemap2/bin/../data/9583161/output/PskMeQG9w6.grd LOG10 0
AND DUP DUP 2.17 MUL 4.62 ADD EXCH -1.21 LE MUL EXCH DUP DUP 1.47 MUL 3.78
ADD EXCH DUP -1.21 GT EXCH 0.53 LE MUL MUL EXCH DUP 3.16 MUL 2.89 ADD EXCH
0.53 GT MUL ADD ADD 0.9 ADD 0
/opt/shakemap2/bin/../data/9583161/output/PsZpX7_0Kc.grd 10 MAX 300 MIN
LOG10 MUL grdmath: Warning, operand one == 0!
grdmath: /opt/shakemap2/bin/../data/9583161/output/YA4j8CtBj2.grd 9.81 MUL
LOG10 0 AND DUP DUP 2.08 MUL 1.71 ADD EXCH 0.14 LE MUL EXCH DUP DUP 1.55
MUL 1.78 ADD EXCH DUP 0.14 GT EXCH 1.57 LE MUL MUL EXCH DUP 3.7 MUL -1.6
ADD EXCH 1.57 GT MUL ADD ADD -0.91 ADD 1.02
/opt/shakemap2/bin/../data/9583161/output/PsZpX7_0Kc.grd 10 MAX 300 MIN
LOG10 MUL ADD -0.17 3.9 MUL ADD 100 MUL FLOOR 100 DIV 1 MAX 10 MIN
/opt/shakemap2/bin/../data/9583161/output/YA4j8CtBj2.grd OR =
/opt/shakemap2/bin/../data/9583161/output/l2kBnFttHJ.grd
grdmath: /opt/shakemap2/bin/../data/9583161/output/sjmheg0UIm.grd
/opt/shakemap2/bin/../data/9583161/output/l2kBnFttHJ.grd AND =
/opt/shakemap2/bin/../data/9583161/output/25otkw3LUl.grd
grdmath: /opt/shakemap2/bin/../data/9583161/output/25otkw3LUl.grd
/opt/shakemap2/bin/../data/9583161/output/UzGgrqve2S.grd SUB 0 AND 2 DIV
0.63 HYPOT = /opt/shakemap2/bin/../data/9583161/output/veVoXyW8n8.grd
grdmath: /opt/shakemap2/bin/../data/9583161/output/PDtHS1TcYy.grd
/opt/shakemap2/bin/../data/9583161/output/iaZJy1JwVZ.grd ADD
/opt/shakemap2/bin/../data/9583161/output/veVoXyW8n8.grd 2 POW INV ADD
/opt/shakemap2/bin/../data/9583161/richter/mi_est.grd 10 ADD MUL 0 AND
/opt/shakemap2/bin/../data/9583161/output/s2GnsxBqbx.grd
/opt/shakemap2/bin/../data/9583161/output/UrrxcjogWB.grd ADD
/opt/shakemap2/bin/../data/9583161/output/veVoXyW8n8.grd 2 POW INV ADD DIV
10 SUB = /opt/shakemap2/bin/../data/9583161/richter/mi_rock.grd
grdmath: /opt/shakemap2/bin/../data/9583161/output/s2GnsxBqbx.grd
/opt/shakemap2/bin/../data/9583161/output/UrrxcjogWB.grd ADD
/opt/shakemap2/bin/../data/9583161/output/veVoXyW8n8.grd 2 POW INV ADD INV
SQRT = /opt/shakemap2/bin/../data/9583161/output/mi_std.grd
grdmath: Given domain implies y_inc = 0.0250076
grdmath: (/opt/shakemap2/bin/../data/9583161/output/hwxDhIWuGY.xy) PDIST
27.47 HYPOT = /opt/shakemap2/bin/../data/9583161/output/D7FwNIcwDT.grd
*** buffer overflow detected ***: /usr/lib/gmt/bin/grdmath terminated
/usr/lib/gmt/bin/grdmath[0x40528b]
/usr/lib/gmt/bin/grdmath[0x4077a9]
00400000-0041c000 r-xp 00000000 08:01 5904758
/usr/lib/gmt/bin/grdmath
0061b000-0061c000 r--p 0001b000 08:01 5904758
/usr/lib/gmt/bin/grdmath
0061c000-0061d000 rw-p 0001c000 08:01 5904758
/usr/lib/gmt/bin/grdmath
*** buffer overflow detected ***: /usr/lib/gmt/bin/grdmath terminated
/usr/lib/gmt/bin/grdmath[0x40528b]
/usr/lib/gmt/bin/grdmath[0x4077a9]
00400000-0041c000 r-xp 00000000 08:01 5904758
/usr/lib/gmt/bin/grdmath
0061b000-0061c000 r--p 0001b000 08:01 5904758
/usr/lib/gmt/bin/grdmath
0061c000-0061d000 rw-p 0001c000 08:01 5904758
/usr/lib/gmt/bin/grdmath
grdmath: Not a supported grid format
[/opt/shakemap2/bin/../data/9583161/output/i_mIH4yeOk.grd]
grdmath: Not a supported grid format
[/opt/shakemap2/bin/../data/9583161/output/Jj0mM44AlK.grd]
*** buffer overflow detected ***: /usr/lib/gmt/bin/grdmath terminated
/usr/lib/gmt/bin/grdmath[0x40528b]
/usr/lib/gmt/bin/grdmath[0x4077a9]
00400000-0041c000 r-xp 00000000 08:01 5904758
/usr/lib/gmt/bin/grdmath
0061b000-0061c000 r--p 0001b000 08:01 5904758
/usr/lib/gmt/bin/grdmath
0061c000-0061d000 rw-p 0001c000 08:01 5904758
/usr/lib/gmt/bin/grdmath
grdmath: Not a supported grid format
[/opt/shakemap2/bin/../data/9583161/output/TJdSGzBD1c.grd]
grdmath: Given domain implies y_inc = 0.0250076
grdmath: (/opt/shakemap2/bin/../data/9583161/output/FyzmDCRlbO.xy) PDIST
27.47 HYPOT = /opt/shakemap2/bin/../data/9583161/output/j5C6foAepC.grd
grdmath: Not a supported grid format
[/opt/shakemap2/bin/../data/9583161/output/X6IgtandE9.grd]
grdmath: Not a supported grid format
[/opt/shakemap2/bin/../data/9583161/output/7JXYtCICgI.grd]
grdmath: Not a supported grid format
[/opt/shakemap2/bin/../data/9583161/output/yreSNhi5Ei.grd]
grdmath: GMT SYNTAX ERROR: /opt/shakemap2/bin/../data/9583161/output/mi.grd
is not a number, operator or file name
grdmath: GMT SYNTAX ERROR: /opt/shakemap2/bin/../data/9583161/output/mi.grd
is not a number, operator or file name



Thanks for your input and suggestions!


Best regards,


*Branden Christensen*
The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
Take a Virtual Tour: http://www.osop.com.pa/tour

To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
Paul Wessel
2013-11-29 09:32:37 UTC
Permalink
Brendan-

It would be helpful if you could save the files used to run the grdmath command below which seems to be the first that crashes. However, that is clearly not the full grdmath command since there is no -R -I or gridfile on the input side. If I am to be of any help I will need an actual grdmath command line that crashes and all the input files that it requires so I can try to recreate the situation here.

Cheers,
-p



On Nov 28, 2013, at 5:54 PM, Branden Christensen <***@OSOP.COM.PA> wrote:

> grdmath: (/opt/shakemap2/bin/../data/9583161/output/hwxDhIWuGY.xy) PDIST 27.47 HYPOT = /opt/shakemap2/bin/../data/9583161/output/D7FwNIcwDT.grd
> *** buffer overflow detected ***: /usr/lib/gmt/bin/grdmath terminated


To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
Branden Christensen
2014-01-22 18:51:03 UTC
Permalink
Paul:


Buenas tardes.

I would like to take up this issue again.

The buffer overflow is caused by grdmath on a 64-bit 12.04 LTS Ubuntu
machine running GMT 4.5.11.

Here is the complete command and resulting error:

/usr/src/gmt-4.5.11/bin/grdmath
/opt/shakemap2/bin/../data/9583161/richter/pgv_rock.grd DUP DUP 10 LE 0.65
MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65
ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL
0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08
MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686
/opt/shakemap2/bin/../data/9583161/output/UFVS74PC0J.grd DIV EXCH POW MUL =
/opt/shakemap2/bin/../data/9583161/output/pgv.grd
*** buffer overflow detected ***: /usr/src/gmt-4.5.11/bin/grdmath terminated

The input files do not matter. I created a new directory "tmp" and touched
1.grd, 2.grd and 3.grd. Then:
***@osop-displays2:~/tmp$ /usr/src/gmt-4.5.11/bin/grdmath 1.grd DUP DUP 10
LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05
MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV
-0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10
DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd
DIV EXCH POW MUL = 3.grd*** buffer overflow detected ***:
/usr/src/gmt-4.5.11/bin/grdmath terminated


Thank you for your expertise.


Kind Regards from Panama,


*Branden Christensen*
The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
Take a Virtual Tour: http://www.osop.com.pa/tour
Sign up for the OSOP mailing list:
http://www.osop.com.pa/about/osop-mailing-list/


On Fri, Nov 29, 2013 at 9:32 AM, Paul Wessel <***@hawaii.edu> wrote:

> Brendan-
>
> It would be helpful if you could save the files used to run the grdmath
> command below which seems to be the first that crashes. However, that is
> clearly not the full grdmath command since there is no -R -I or gridfile on
> the input side. If I am to be of any help I will need an actual grdmath
> command line that crashes and all the input files that it requires so I can
> try to recreate the situation here.
>
> Cheers,
> -p
>
>
>
> On Nov 28, 2013, at 5:54 PM, Branden Christensen <
> ***@OSOP.COM.PA> wrote:
>
> grdmath: (/opt/shakemap2/bin/../data/9583161/output/hwxDhIWuGY.xy) PDIST
> 27.47 HYPOT = /opt/shakemap2/bin/../data/9583161/output/D7FwNIcwDT.grd
> *** buffer overflow detected ***: /usr/lib/gmt/bin/grdmath terminated
>
>
> To unsubscribe, send the message "signoff gmt-help" to
> ***@lists.hawaii.edu
>

To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
Paul Wessel
2014-01-22 19:05:59 UTC
Permalink
Hi Brandan-

Even if the input grids dont matter I will need to create dummy ones with the right dimensions since grdmath is reading them to detect -R -I. If I just try

grdmath -R0/10/0/10 -I1 X = 1.grd
grdmath -R0/10/0/10 -I1 X = 2.grd
grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd

I get no errors. Let me know if the above crashes for you. I will then fire up Ubuntu in parallels and see what happens there.
-p

On Jan 22, 2014, at 8:51 AM, Branden Christensen <***@OSOP.COM.PA> wrote:

> Paul:
>
>
> Buenas tardes.
>
> I would like to take up this issue again.
>
> The buffer overflow is caused by grdmath on a 64-bit 12.04 LTS Ubuntu machine running GMT 4.5.11.
>
> Here is the complete command and resulting error:
>
> /usr/src/gmt-4.5.11/bin/grdmath /opt/shakemap2/bin/../data/9583161/richter/pgv_rock.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 /opt/shakemap2/bin/../data/9583161/output/UFVS74PC0J.grd DIV EXCH POW MUL = /opt/shakemap2/bin/../data/9583161/output/pgv.grd
> *** buffer overflow detected ***: /usr/src/gmt-4.5.11/bin/grdmath terminated
>
> The input files do not matter. I created a new directory "tmp" and touched 1.grd, 2.grd and 3.grd. Then:
> ***@osop-displays2:~/tmp$ /usr/src/gmt-4.5.11/bin/grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd*** buffer overflow detected ***: /usr/src/gmt-4.5.11/bin/grdmath terminated
>
>
> Thank you for your expertise.
>
>
> Kind Regards from Panama,
>
>
> Branden Christensen
> The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
> Take a Virtual Tour: http://www.osop.com.pa/tour
> Sign up for the OSOP mailing list: http://www.osop.com.pa/about/osop-mailing-list/
>
>
> On Fri, Nov 29, 2013 at 9:32 AM, Paul Wessel <***@hawaii.edu> wrote:
> Brendan-
>
> It would be helpful if you could save the files used to run the grdmath command below which seems to be the first that crashes. However, that is clearly not the full grdmath command since there is no -R -I or gridfile on the input side. If I am to be of any help I will need an actual grdmath command line that crashes and all the input files that it requires so I can try to recreate the situation here.
>
> Cheers,
> -p
>
>
>
> On Nov 28, 2013, at 5:54 PM, Branden Christensen <***@OSOP.COM.PA> wrote:
>
>> grdmath: (/opt/shakemap2/bin/../data/9583161/output/hwxDhIWuGY.xy) PDIST 27.47 HYPOT = /opt/shakemap2/bin/../data/9583161/output/D7FwNIcwDT.grd
>> *** buffer overflow detected ***: /usr/lib/gmt/bin/grdmath terminated
>
> To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
>
> To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu

To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
Branden Christensen
2014-01-22 19:16:48 UTC
Permalink
Paul:


I get this:
***@osop-displays2:~$ /usr/src/gmt-4.5.11/bin/grdmath -R0/10/0/10 -I1 X =
1.grd
***@osop-displays2:~$ /usr/src/gmt-4.5.11/bin/grdmath -R0/10/0/10 -I1 X =
2.grd
***@osop-displays2:~$ /usr/src/gmt-4.5.11/bin/grdmath 1.grd DUP DUP 10 LE
0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL
0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07
MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV
-0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV
EXCH POW MUL = 3.grd
*** buffer overflow detected ***: /usr/src/gmt-4.5.11/bin/grdmath terminated

So will you still need the original files if these dummy files produce the
same error? Please let me know!


Kind Regards,


*Branden Christensen*
The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
Take a Virtual Tour: http://www.osop.com.pa/tour
Sign up for the OSOP mailing list:
http://www.osop.com.pa/about/osop-mailing-list/


On Wed, Jan 22, 2014 at 7:05 PM, Paul Wessel <***@hawaii.edu> wrote:

> Hi Brandan-
>
> Even if the input grids dont matter I will need to create dummy ones with
> the right dimensions since grdmath is reading them to detect -R -I. If I
> just try
>
> grdmath -R0/10/0/10 -I1 X = 1.grd
> grdmath -R0/10/0/10 -I1 X = 2.grd
> grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL
> EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE
> MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH
> 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD
> ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd
>
> I get no errors. Let me know if the above crashes for you. I will then
> fire up Ubuntu in parallels and see what happens there.
> -p
>
> On Jan 22, 2014, at 8:51 AM, Branden Christensen <
> ***@OSOP.COM.PA> wrote:
>
> > Paul:
> >
> >
> > Buenas tardes.
> >
> > I would like to take up this issue again.
> >
> > The buffer overflow is caused by grdmath on a 64-bit 12.04 LTS Ubuntu
> machine running GMT 4.5.11.
> >
> > Here is the complete command and resulting error:
> >
> > /usr/src/gmt-4.5.11/bin/grdmath
> /opt/shakemap2/bin/../data/9583161/richter/pgv_rock.grd DUP DUP 10 LE 0.65
> MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65
> ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL
> 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08
> MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686
> /opt/shakemap2/bin/../data/9583161/output/UFVS74PC0J.grd DIV EXCH POW MUL =
> /opt/shakemap2/bin/../data/9583161/output/pgv.grd
> > *** buffer overflow detected ***: /usr/src/gmt-4.5.11/bin/grdmath
> terminated
> >
> > The input files do not matter. I created a new directory "tmp" and
> touched 1.grd, 2.grd and 3.grd. Then:
> > ***@osop-displays2:~/tmp$ /usr/src/gmt-4.5.11/bin/grdmath 1.grd DUP
> DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV
> -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10
> DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30
> SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686
> 2.grd DIV EXCH POW MUL = 3.grd*** buffer overflow detected ***:
> /usr/src/gmt-4.5.11/bin/grdmath terminated
> >
> >
> > Thank you for your expertise.
> >
> >
> > Kind Regards from Panama,
> >
> >
> > Branden Christensen
> > The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
> > Take a Virtual Tour: http://www.osop.com.pa/tour
> > Sign up for the OSOP mailing list:
> http://www.osop.com.pa/about/osop-mailing-list/
> >
> >
> > On Fri, Nov 29, 2013 at 9:32 AM, Paul Wessel <***@hawaii.edu> wrote:
> > Brendan-
> >
> > It would be helpful if you could save the files used to run the grdmath
> command below which seems to be the first that crashes. However, that is
> clearly not the full grdmath command since there is no -R -I or gridfile on
> the input side. If I am to be of any help I will need an actual grdmath
> command line that crashes and all the input files that it requires so I can
> try to recreate the situation here.
> >
> > Cheers,
> > -p
> >
> >
> >
> > On Nov 28, 2013, at 5:54 PM, Branden Christensen <
> ***@OSOP.COM.PA> wrote:
> >
> >> grdmath: (/opt/shakemap2/bin/../data/9583161/output/hwxDhIWuGY.xy)
> PDIST 27.47 HYPOT = /opt/shakemap2/bin/../data/9583161/output/D7FwNIcwDT.grd
> >> *** buffer overflow detected ***: /usr/lib/gmt/bin/grdmath terminated
> >
> > To unsubscribe, send the message "signoff gmt-help" to
> ***@lists.hawaii.edu
> >
> > To unsubscribe, send the message "signoff gmt-help" to
> ***@lists.hawaii.edu
>
> To unsubscribe, send the message "signoff gmt-help" to
> ***@lists.hawaii.edu
>

To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
Paul Wessel
2014-01-22 19:31:24 UTC
Permalink
No, this should be good - I just need to reproduce it in Ubuntu, or have some of our other guys try it as well (Marcelo? Eduardo?)

-p

On Jan 22, 2014, at 9:16 AM, Branden Christensen <***@OSOP.COM.PA> wrote:

> Paul:
>
>
> I get this:
> ***@osop-displays2:~$ /usr/src/gmt-4.5.11/bin/grdmath -R0/10/0/10 -I1 X = 1.grd
> ***@osop-displays2:~$ /usr/src/gmt-4.5.11/bin/grdmath -R0/10/0/10 -I1 X = 2.grd
> ***@osop-displays2:~$ /usr/src/gmt-4.5.11/bin/grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd
> *** buffer overflow detected ***: /usr/src/gmt-4.5.11/bin/grdmath terminated
>
> So will you still need the original files if these dummy files produce the same error? Please let me know!
>
>
> Kind Regards,
>
>
> Branden Christensen
> The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
> Take a Virtual Tour: http://www.osop.com.pa/tour
> Sign up for the OSOP mailing list: http://www.osop.com.pa/about/osop-mailing-list/
>
>
> On Wed, Jan 22, 2014 at 7:05 PM, Paul Wessel <***@hawaii.edu> wrote:
> Hi Brandan-
>
> Even if the input grids dont matter I will need to create dummy ones with the right dimensions since grdmath is reading them to detect -R -I. If I just try
>
> grdmath -R0/10/0/10 -I1 X = 1.grd
> grdmath -R0/10/0/10 -I1 X = 2.grd
> grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd
>
> I get no errors. Let me know if the above crashes for you. I will then fire up Ubuntu in parallels and see what happens there.
> -p
>
> On Jan 22, 2014, at 8:51 AM, Branden Christensen <***@OSOP.COM.PA> wrote:
>
> > Paul:
> >
> >
> > Buenas tardes.
> >
> > I would like to take up this issue again.
> >
> > The buffer overflow is caused by grdmath on a 64-bit 12.04 LTS Ubuntu machine running GMT 4.5.11.
> >
> > Here is the complete command and resulting error:
> >
> > /usr/src/gmt-4.5.11/bin/grdmath /opt/shakemap2/bin/../data/9583161/richter/pgv_rock.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 /opt/shakemap2/bin/../data/9583161/output/UFVS74PC0J.grd DIV EXCH POW MUL = /opt/shakemap2/bin/../data/9583161/output/pgv.grd
> > *** buffer overflow detected ***: /usr/src/gmt-4.5.11/bin/grdmath terminated
> >
> > The input files do not matter. I created a new directory "tmp" and touched 1.grd, 2.grd and 3.grd. Then:
> > ***@osop-displays2:~/tmp$ /usr/src/gmt-4.5.11/bin/grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd*** buffer overflow detected ***: /usr/src/gmt-4.5.11/bin/grdmath terminated
> >
> >
> > Thank you for your expertise.
> >
> >
> > Kind Regards from Panama,
> >
> >
> > Branden Christensen
> > The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
> > Take a Virtual Tour: http://www.osop.com.pa/tour
> > Sign up for the OSOP mailing list: http://www.osop.com.pa/about/osop-mailing-list/
> >
> >
> > On Fri, Nov 29, 2013 at 9:32 AM, Paul Wessel <***@hawaii.edu> wrote:
> > Brendan-
> >
> > It would be helpful if you could save the files used to run the grdmath command below which seems to be the first that crashes. However, that is clearly not the full grdmath command since there is no -R -I or gridfile on the input side. If I am to be of any help I will need an actual grdmath command line that crashes and all the input files that it requires so I can try to recreate the situation here.
> >
> > Cheers,
> > -p
> >
> >
> >
> > On Nov 28, 2013, at 5:54 PM, Branden Christensen <***@OSOP.COM.PA> wrote:
> >
> >> grdmath: (/opt/shakemap2/bin/../data/9583161/output/hwxDhIWuGY.xy) PDIST 27.47 HYPOT = /opt/shakemap2/bin/../data/9583161/output/D7FwNIcwDT.grd
> >> *** buffer overflow detected ***: /usr/lib/gmt/bin/grdmath terminated
> >
> > To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
> >
> > To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
>
> To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
>
> To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu


To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
Branden Christensen
2014-01-22 19:43:59 UTC
Permalink
Paul:


If you guys want access to a server running 12.04 let me know.


Kind Regards,


*Branden Christensen*
The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
Take a Virtual Tour: http://www.osop.com.pa/tour
Sign up for the OSOP mailing list:
http://www.osop.com.pa/about/osop-mailing-list/


On Wed, Jan 22, 2014 at 7:31 PM, Paul Wessel <***@hawaii.edu> wrote:

> No, this should be good - I just need to reproduce it in Ubuntu, or have
> some of our other guys try it as well (Marcelo? Eduardo?)
>
> -p
>
> On Jan 22, 2014, at 9:16 AM, Branden Christensen <
> ***@OSOP.COM.PA> wrote:
>
> Paul:
>
>
> I get this:
> ***@osop-displays2:~$ /usr/src/gmt-4.5.11/bin/grdmath -R0/10/0/10 -I1 X
> = 1.grd
> ***@osop-displays2:~$ /usr/src/gmt-4.5.11/bin/grdmath -R0/10/0/10 -I1 X
> = 2.grd
> ***@osop-displays2:~$ /usr/src/gmt-4.5.11/bin/grdmath 1.grd DUP DUP 10
> LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05
> MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV
> -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10
> DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd
> DIV EXCH POW MUL = 3.grd
> *** buffer overflow detected ***: /usr/src/gmt-4.5.11/bin/grdmath
> terminated
>
> So will you still need the original files if these dummy files produce the
> same error? Please let me know!
>
>
> Kind Regards,
>
>
> *Branden Christensen*
> The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
> Take a Virtual Tour: http://www.osop.com.pa/tour
> Sign up for the OSOP mailing list:
> http://www.osop.com.pa/about/osop-mailing-list/
>
>
> On Wed, Jan 22, 2014 at 7:05 PM, Paul Wessel <***@hawaii.edu> wrote:
>
>> Hi Brandan-
>>
>> Even if the input grids dont matter I will need to create dummy ones with
>> the right dimensions since grdmath is reading them to detect -R -I. If I
>> just try
>>
>> grdmath -R0/10/0/10 -I1 X = 1.grd
>> grdmath -R0/10/0/10 -I1 X = 2.grd
>> grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE
>> MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH
>> 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT
>> EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45
>> MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd
>>
>> I get no errors. Let me know if the above crashes for you. I will then
>> fire up Ubuntu in parallels and see what happens there.
>> -p
>>
>> On Jan 22, 2014, at 8:51 AM, Branden Christensen <
>> ***@OSOP.COM.PA> wrote:
>>
>> > Paul:
>> >
>> >
>> > Buenas tardes.
>> >
>> > I would like to take up this issue again.
>> >
>> > The buffer overflow is caused by grdmath on a 64-bit 12.04 LTS Ubuntu
>> machine running GMT 4.5.11.
>> >
>> > Here is the complete command and resulting error:
>> >
>> > /usr/src/gmt-4.5.11/bin/grdmath
>> /opt/shakemap2/bin/../data/9583161/richter/pgv_rock.grd DUP DUP 10 LE 0.65
>> MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65
>> ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL
>> 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08
>> MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686
>> /opt/shakemap2/bin/../data/9583161/output/UFVS74PC0J.grd DIV EXCH POW MUL =
>> /opt/shakemap2/bin/../data/9583161/output/pgv.grd
>> > *** buffer overflow detected ***: /usr/src/gmt-4.5.11/bin/grdmath
>> terminated
>> >
>> > The input files do not matter. I created a new directory "tmp" and
>> touched 1.grd, 2.grd and 3.grd. Then:
>> > ***@osop-displays2:~/tmp$ /usr/src/gmt-4.5.11/bin/grdmath 1.grd DUP
>> DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV
>> -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10
>> DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30
>> SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686
>> 2.grd DIV EXCH POW MUL = 3.grd*** buffer overflow detected ***:
>> /usr/src/gmt-4.5.11/bin/grdmath terminated
>> >
>> >
>> > Thank you for your expertise.
>> >
>> >
>> > Kind Regards from Panama,
>> >
>> >
>> > Branden Christensen
>> > The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
>> > Take a Virtual Tour: http://www.osop.com.pa/tour
>> > Sign up for the OSOP mailing list:
>> http://www.osop.com.pa/about/osop-mailing-list/
>> >
>> >
>> > On Fri, Nov 29, 2013 at 9:32 AM, Paul Wessel <***@hawaii.edu>
>> wrote:
>> > Brendan-
>> >
>> > It would be helpful if you could save the files used to run the grdmath
>> command below which seems to be the first that crashes. However, that is
>> clearly not the full grdmath command since there is no -R -I or gridfile on
>> the input side. If I am to be of any help I will need an actual grdmath
>> command line that crashes and all the input files that it requires so I can
>> try to recreate the situation here.
>> >
>> > Cheers,
>> > -p
>> >
>> >
>> >
>> > On Nov 28, 2013, at 5:54 PM, Branden Christensen <
>> ***@OSOP.COM.PA> wrote:
>> >
>> >> grdmath: (/opt/shakemap2/bin/../data/9583161/output/hwxDhIWuGY.xy)
>> PDIST 27.47 HYPOT = /opt/shakemap2/bin/../data/9583161/output/D7FwNIcwDT.grd
>> >> *** buffer overflow detected ***: /usr/lib/gmt/bin/grdmath terminated
>> >
>> > To unsubscribe, send the message "signoff gmt-help" to
>> ***@lists.hawaii.edu
>> >
>> > To unsubscribe, send the message "signoff gmt-help" to
>> ***@lists.hawaii.edu
>>
>> To unsubscribe, send the message "signoff gmt-help" to
>> ***@lists.hawaii.edu
>>
>
> To unsubscribe, send the message "signoff gmt-help" to
> ***@lists.hawaii.edu
>
>
> To unsubscribe, send the message "signoff gmt-help" to
> ***@lists.hawaii.edu
>

To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
Paul Wessel
2014-01-22 20:06:59 UTC
Permalink
Hi Brandan-

I think I forgot how this started. Did you build GMT yourself or installed via ubuntu package manager? We have had lots of issues with the ubuntu-built GMT release but people who build it themselves have no issues. I know a ticket was opened with Ubuntu so maybe in 4 years it will be addressed... We suspect they used some unhealthy compiler flag but we do not know.
-p

On Jan 22, 2014, at 9:43 AM, Branden Christensen <***@OSOP.COM.PA> wrote:

> Paul:
>
>
> If you guys want access to a server running 12.04 let me know.
>
>
> Kind Regards,
>
>
> Branden Christensen
> The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
> Take a Virtual Tour: http://www.osop.com.pa/tour
> Sign up for the OSOP mailing list: http://www.osop.com.pa/about/osop-mailing-list/
>
>
> On Wed, Jan 22, 2014 at 7:31 PM, Paul Wessel <***@hawaii.edu> wrote:
> No, this should be good - I just need to reproduce it in Ubuntu, or have some of our other guys try it as well (Marcelo? Eduardo?)
>
> -p
>
> On Jan 22, 2014, at 9:16 AM, Branden Christensen <***@OSOP.COM.PA> wrote:
>
>> Paul:
>>
>>
>> I get this:
>> ***@osop-displays2:~$ /usr/src/gmt-4.5.11/bin/grdmath -R0/10/0/10 -I1 X = 1.grd
>> ***@osop-displays2:~$ /usr/src/gmt-4.5.11/bin/grdmath -R0/10/0/10 -I1 X = 2.grd
>> ***@osop-displays2:~$ /usr/src/gmt-4.5.11/bin/grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd
>> *** buffer overflow detected ***: /usr/src/gmt-4.5.11/bin/grdmath terminated
>>
>> So will you still need the original files if these dummy files produce the same error? Please let me know!
>>
>>
>> Kind Regards,
>>
>>
>> Branden Christensen
>> The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
>> Take a Virtual Tour: http://www.osop.com.pa/tour
>> Sign up for the OSOP mailing list: http://www.osop.com.pa/about/osop-mailing-list/
>>
>>
>> On Wed, Jan 22, 2014 at 7:05 PM, Paul Wessel <***@hawaii.edu> wrote:
>> Hi Brandan-
>>
>> Even if the input grids dont matter I will need to create dummy ones with the right dimensions since grdmath is reading them to detect -R -I. If I just try
>>
>> grdmath -R0/10/0/10 -I1 X = 1.grd
>> grdmath -R0/10/0/10 -I1 X = 2.grd
>> grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd
>>
>> I get no errors. Let me know if the above crashes for you. I will then fire up Ubuntu in parallels and see what happens there.
>> -p
>>
>> On Jan 22, 2014, at 8:51 AM, Branden Christensen <***@OSOP.COM.PA> wrote:
>>
>> > Paul:
>> >
>> >
>> > Buenas tardes.
>> >
>> > I would like to take up this issue again.
>> >
>> > The buffer overflow is caused by grdmath on a 64-bit 12.04 LTS Ubuntu machine running GMT 4.5.11.
>> >
>> > Here is the complete command and resulting error:
>> >
>> > /usr/src/gmt-4.5.11/bin/grdmath /opt/shakemap2/bin/../data/9583161/richter/pgv_rock.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 /opt/shakemap2/bin/../data/9583161/output/UFVS74PC0J.grd DIV EXCH POW MUL = /opt/shakemap2/bin/../data/9583161/output/pgv.grd
>> > *** buffer overflow detected ***: /usr/src/gmt-4.5.11/bin/grdmath terminated
>> >
>> > The input files do not matter. I created a new directory "tmp" and touched 1.grd, 2.grd and 3.grd. Then:
>> > ***@osop-displays2:~/tmp$ /usr/src/gmt-4.5.11/bin/grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd*** buffer overflow detected ***: /usr/src/gmt-4.5.11/bin/grdmath terminated
>> >
>> >
>> > Thank you for your expertise.
>> >
>> >
>> > Kind Regards from Panama,
>> >
>> >
>> > Branden Christensen
>> > The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
>> > Take a Virtual Tour: http://www.osop.com.pa/tour
>> > Sign up for the OSOP mailing list: http://www.osop.com.pa/about/osop-mailing-list/
>> >
>> >
>> > On Fri, Nov 29, 2013 at 9:32 AM, Paul Wessel <***@hawaii.edu> wrote:
>> > Brendan-
>> >
>> > It would be helpful if you could save the files used to run the grdmath command below which seems to be the first that crashes. However, that is clearly not the full grdmath command since there is no -R -I or gridfile on the input side. If I am to be of any help I will need an actual grdmath command line that crashes and all the input files that it requires so I can try to recreate the situation here.
>> >
>> > Cheers,
>> > -p
>> >
>> >
>> >
>> > On Nov 28, 2013, at 5:54 PM, Branden Christensen <***@OSOP.COM.PA> wrote:
>> >
>> >> grdmath: (/opt/shakemap2/bin/../data/9583161/output/hwxDhIWuGY.xy) PDIST 27.47 HYPOT = /opt/shakemap2/bin/../data/9583161/output/D7FwNIcwDT.grd
>> >> *** buffer overflow detected ***: /usr/lib/gmt/bin/grdmath terminated
>> >
>> > To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
>> >
>> > To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
>>
>> To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
>>
>> To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
>
> To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
>
> To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu


To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
Branden Christensen
2014-01-23 23:12:55 UTC
Permalink
Paul:


Good evening.

I originally had the buffer overflow problem when I installed GMT on Ubuntu
12.04 using "sudo apt-get install gmt". You recommended I install 4.5.11
from sources which I did using the attached script "siposg4511-1.sh". But
the problems persists.

In the end I hope to be able to execute grdmath by calling the full path.



*Branden Christensen*
The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
Take a Virtual Tour: http://www.osop.com.pa/tour
Sign up for the OSOP mailing list:
http://www.osop.com.pa/about/osop-mailing-list/


On Wed, Jan 22, 2014 at 7:06 PM, Paul Wessel <***@hawaii.edu> wrote:

> Hi Brandan-
>
> I think I forgot how this started. Did you build GMT yourself or
> installed via ubuntu package manager? We have had lots of issues with the
> ubuntu-built GMT release but people who build it themselves have no issues.
> I know a ticket was opened with Ubuntu so maybe in 4 years it will be
> addressed... We suspect they used some unhealthy compiler flag but we do
> not know.
> -p
>
> On Jan 22, 2014, at 9:43 AM, Branden Christensen <
> ***@OSOP.COM.PA> wrote:
>
> Paul:
>
>
> If you guys want access to a server running 12.04 let me know.
>
>
> Kind Regards,
>
>
> *Branden Christensen*
> The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
> Take a Virtual Tour: http://www.osop.com.pa/tour
> Sign up for the OSOP mailing list:
> http://www.osop.com.pa/about/osop-mailing-list/
>
>
> On Wed, Jan 22, 2014 at 7:31 PM, Paul Wessel <***@hawaii.edu> wrote:
>
>> No, this should be good - I just need to reproduce it in Ubuntu, or have
>> some of our other guys try it as well (Marcelo? Eduardo?)
>>
>> -p
>>
>> On Jan 22, 2014, at 9:16 AM, Branden Christensen <
>> ***@OSOP.COM.PA> wrote:
>>
>> Paul:
>>
>>
>> I get this:
>> ***@osop-displays2:~$ /usr/src/gmt-4.5.11/bin/grdmath -R0/10/0/10 -I1 X
>> = 1.grd
>> ***@osop-displays2:~$ /usr/src/gmt-4.5.11/bin/grdmath -R0/10/0/10 -I1 X
>> = 2.grd
>> ***@osop-displays2:~$ /usr/src/gmt-4.5.11/bin/grdmath 1.grd DUP DUP 10
>> LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05
>> MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV
>> -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10
>> DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd
>> DIV EXCH POW MUL = 3.grd
>> *** buffer overflow detected ***: /usr/src/gmt-4.5.11/bin/grdmath
>> terminated
>>
>> So will you still need the original files if these dummy files produce
>> the same error? Please let me know!
>>
>>
>> Kind Regards,
>>
>>
>> *Branden Christensen*
>> The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
>> Take a Virtual Tour: http://www.osop.com.pa/tour
>> Sign up for the OSOP mailing list:
>> http://www.osop.com.pa/about/osop-mailing-list/
>>
>>
>> On Wed, Jan 22, 2014 at 7:05 PM, Paul Wessel <***@hawaii.edu> wrote:
>>
>>> Hi Brandan-
>>>
>>> Even if the input grids dont matter I will need to create dummy ones
>>> with the right dimensions since grdmath is reading them to detect -R -I.
>>> If I just try
>>>
>>> grdmath -R0/10/0/10 -I1 X = 1.grd
>>> grdmath -R0/10/0/10 -I1 X = 2.grd
>>> grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE
>>> MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH
>>> 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT
>>> EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45
>>> MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd
>>>
>>> I get no errors. Let me know if the above crashes for you. I will then
>>> fire up Ubuntu in parallels and see what happens there.
>>> -p
>>>
>>> On Jan 22, 2014, at 8:51 AM, Branden Christensen <
>>> ***@OSOP.COM.PA> wrote:
>>>
>>> > Paul:
>>> >
>>> >
>>> > Buenas tardes.
>>> >
>>> > I would like to take up this issue again.
>>> >
>>> > The buffer overflow is caused by grdmath on a 64-bit 12.04 LTS Ubuntu
>>> machine running GMT 4.5.11.
>>> >
>>> > Here is the complete command and resulting error:
>>> >
>>> > /usr/src/gmt-4.5.11/bin/grdmath
>>> /opt/shakemap2/bin/../data/9583161/richter/pgv_rock.grd DUP DUP 10 LE 0.65
>>> MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65
>>> ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL
>>> 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08
>>> MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686
>>> /opt/shakemap2/bin/../data/9583161/output/UFVS74PC0J.grd DIV EXCH POW MUL =
>>> /opt/shakemap2/bin/../data/9583161/output/pgv.grd
>>> > *** buffer overflow detected ***: /usr/src/gmt-4.5.11/bin/grdmath
>>> terminated
>>> >
>>> > The input files do not matter. I created a new directory "tmp" and
>>> touched 1.grd, 2.grd and 3.grd. Then:
>>> > ***@osop-displays2:~/tmp$ /usr/src/gmt-4.5.11/bin/grdmath 1.grd DUP
>>> DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV
>>> -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10
>>> DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30
>>> SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686
>>> 2.grd DIV EXCH POW MUL = 3.grd*** buffer overflow detected ***:
>>> /usr/src/gmt-4.5.11/bin/grdmath terminated
>>> >
>>> >
>>> > Thank you for your expertise.
>>> >
>>> >
>>> > Kind Regards from Panama,
>>> >
>>> >
>>> > Branden Christensen
>>> > The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
>>> > Take a Virtual Tour: http://www.osop.com.pa/tour
>>> > Sign up for the OSOP mailing list:
>>> http://www.osop.com.pa/about/osop-mailing-list/
>>> >
>>> >
>>> > On Fri, Nov 29, 2013 at 9:32 AM, Paul Wessel <***@hawaii.edu>
>>> wrote:
>>> > Brendan-
>>> >
>>> > It would be helpful if you could save the files used to run the
>>> grdmath command below which seems to be the first that crashes. However,
>>> that is clearly not the full grdmath command since there is no -R -I or
>>> gridfile on the input side. If I am to be of any help I will need an actual
>>> grdmath command line that crashes and all the input files that it requires
>>> so I can try to recreate the situation here.
>>> >
>>> > Cheers,
>>> > -p
>>> >
>>> >
>>> >
>>> > On Nov 28, 2013, at 5:54 PM, Branden Christensen <
>>> ***@OSOP.COM.PA> wrote:
>>> >
>>> >> grdmath: (/opt/shakemap2/bin/../data/9583161/output/hwxDhIWuGY.xy)
>>> PDIST 27.47 HYPOT = /opt/shakemap2/bin/../data/9583161/output/D7FwNIcwDT.grd
>>> >> *** buffer overflow detected ***: /usr/lib/gmt/bin/grdmath terminated
>>> >
>>> > To unsubscribe, send the message "signoff gmt-help" to
>>> ***@lists.hawaii.edu
>>> >
>>> > To unsubscribe, send the message "signoff gmt-help" to
>>> ***@lists.hawaii.edu
>>>
>>> To unsubscribe, send the message "signoff gmt-help" to
>>> ***@lists.hawaii.edu
>>>
>>
>> To unsubscribe, send the message "signoff gmt-help" to
>> ***@lists.hawaii.edu
>>
>>
>> To unsubscribe, send the message "signoff gmt-help" to
>> ***@lists.hawaii.edu
>>
>
> To unsubscribe, send the message "signoff gmt-help" to
> ***@lists.hawaii.edu
>
>
> To unsubscribe, send the message "signoff gmt-help" to
> ***@lists.hawaii.edu
>

To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
Marcelo Banik
2014-01-24 12:03:23 UTC
Permalink
I tested in an ubuntu 13.10.


Following command pass:

~/strange_behavior$ /usr/local/GMT4.5.11/bin/grdmath 1.grd DUP DUP 10 LE
0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL
0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07
MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV
-0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV
EXCH POW MUL = 3.grd


But if I did:

~/strange_behavior$ ln -s /usr/local/GMT4.5.11/bin .

~/strange_behavior$ bin/grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP
DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP
DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH
DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL
EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd

*** buffer overflow detected ***: bin/grdmath terminated


And if I use full path to grdmath 4.5.12_r10185 [64-bit], it fails:

/opt/gmt/4.5.12/bin/grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP DUP
10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP
DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP
DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH
40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd

*** buffer overflow detected ***: /opt/gmt/4.5.12/bin/grdmath terminated


In both cases, it succeed if I use ./1.grd instead of 1.grd.


Could someone more reproduce these results?


Marcelo




On Thu, Jan 23, 2014 at 9:12 PM, Branden Christensen <
***@osop.com.pa> wrote:

> Paul:
>
>
> Good evening.
>
> I originally had the buffer overflow problem when I installed GMT on
> Ubuntu 12.04 using "sudo apt-get install gmt". You recommended I install
> 4.5.11 from sources which I did using the attached script
> "siposg4511-1.sh". But the problems persists.
>
> In the end I hope to be able to execute grdmath by calling the full path.
>
>
>
> *Branden Christensen*
> The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
> Take a Virtual Tour: http://www.osop.com.pa/tour
> Sign up for the OSOP mailing list:
> http://www.osop.com.pa/about/osop-mailing-list/
>
>
> On Wed, Jan 22, 2014 at 7:06 PM, Paul Wessel <***@hawaii.edu> wrote:
>
>> Hi Brandan-
>>
>> I think I forgot how this started. Did you build GMT yourself or
>> installed via ubuntu package manager? We have had lots of issues with the
>> ubuntu-built GMT release but people who build it themselves have no issues.
>> I know a ticket was opened with Ubuntu so maybe in 4 years it will be
>> addressed... We suspect they used some unhealthy compiler flag but we do
>> not know.
>> -p
>>
>> On Jan 22, 2014, at 9:43 AM, Branden Christensen <
>> ***@OSOP.COM.PA> wrote:
>>
>> Paul:
>>
>>
>> If you guys want access to a server running 12.04 let me know.
>>
>>
>> Kind Regards,
>>
>>
>> *Branden Christensen*
>> The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
>> Take a Virtual Tour: http://www.osop.com.pa/tour
>> Sign up for the OSOP mailing list:
>> http://www.osop.com.pa/about/osop-mailing-list/
>>
>>
>> On Wed, Jan 22, 2014 at 7:31 PM, Paul Wessel <***@hawaii.edu> wrote:
>>
>>> No, this should be good - I just need to reproduce it in Ubuntu, or have
>>> some of our other guys try it as well (Marcelo? Eduardo?)
>>>
>>> -p
>>>
>>> On Jan 22, 2014, at 9:16 AM, Branden Christensen <
>>> ***@OSOP.COM.PA> wrote:
>>>
>>> Paul:
>>>
>>>
>>> I get this:
>>> ***@osop-displays2:~$ /usr/src/gmt-4.5.11/bin/grdmath -R0/10/0/10 -I1
>>> X = 1.grd
>>> ***@osop-displays2:~$ /usr/src/gmt-4.5.11/bin/grdmath -R0/10/0/10 -I1
>>> X = 2.grd
>>> ***@osop-displays2:~$ /usr/src/gmt-4.5.11/bin/grdmath 1.grd DUP DUP 10
>>> LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05
>>> MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV
>>> -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10
>>> DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd
>>> DIV EXCH POW MUL = 3.grd
>>> *** buffer overflow detected ***: /usr/src/gmt-4.5.11/bin/grdmath
>>> terminated
>>>
>>> So will you still need the original files if these dummy files produce
>>> the same error? Please let me know!
>>>
>>>
>>> Kind Regards,
>>>
>>>
>>> *Branden Christensen*
>>> The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
>>> Take a Virtual Tour: http://www.osop.com.pa/tour
>>> Sign up for the OSOP mailing list:
>>> http://www.osop.com.pa/about/osop-mailing-list/
>>>
>>>
>>> On Wed, Jan 22, 2014 at 7:05 PM, Paul Wessel <***@hawaii.edu> wrote:
>>>
>>>> Hi Brandan-
>>>>
>>>> Even if the input grids dont matter I will need to create dummy ones
>>>> with the right dimensions since grdmath is reading them to detect -R -I.
>>>> If I just try
>>>>
>>>> grdmath -R0/10/0/10 -I1 X = 1.grd
>>>> grdmath -R0/10/0/10 -I1 X = 2.grd
>>>> grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE
>>>> MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH
>>>> 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT
>>>> EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45
>>>> MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd
>>>>
>>>> I get no errors. Let me know if the above crashes for you. I will
>>>> then fire up Ubuntu in parallels and see what happens there.
>>>> -p
>>>>
>>>> On Jan 22, 2014, at 8:51 AM, Branden Christensen <
>>>> ***@OSOP.COM.PA> wrote:
>>>>
>>>> > Paul:
>>>> >
>>>> >
>>>> > Buenas tardes.
>>>> >
>>>> > I would like to take up this issue again.
>>>> >
>>>> > The buffer overflow is caused by grdmath on a 64-bit 12.04 LTS Ubuntu
>>>> machine running GMT 4.5.11.
>>>> >
>>>> > Here is the complete command and resulting error:
>>>> >
>>>> > /usr/src/gmt-4.5.11/bin/grdmath
>>>> /opt/shakemap2/bin/../data/9583161/richter/pgv_rock.grd DUP DUP 10 LE 0.65
>>>> MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65
>>>> ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL
>>>> 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08
>>>> MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686
>>>> /opt/shakemap2/bin/../data/9583161/output/UFVS74PC0J.grd DIV EXCH POW MUL =
>>>> /opt/shakemap2/bin/../data/9583161/output/pgv.grd
>>>> > *** buffer overflow detected ***: /usr/src/gmt-4.5.11/bin/grdmath
>>>> terminated
>>>> >
>>>> > The input files do not matter. I created a new directory "tmp" and
>>>> touched 1.grd, 2.grd and 3.grd. Then:
>>>> > ***@osop-displays2:~/tmp$ /usr/src/gmt-4.5.11/bin/grdmath 1.grd DUP
>>>> DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV
>>>> -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10
>>>> DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30
>>>> SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686
>>>> 2.grd DIV EXCH POW MUL = 3.grd*** buffer overflow detected ***:
>>>> /usr/src/gmt-4.5.11/bin/grdmath terminated
>>>> >
>>>> >
>>>> > Thank you for your expertise.
>>>> >
>>>> >
>>>> > Kind Regards from Panama,
>>>> >
>>>> >
>>>> > Branden Christensen
>>>> > The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
>>>> > Take a Virtual Tour: http://www.osop.com.pa/tour
>>>> > Sign up for the OSOP mailing list:
>>>> http://www.osop.com.pa/about/osop-mailing-list/
>>>> >
>>>> >
>>>> > On Fri, Nov 29, 2013 at 9:32 AM, Paul Wessel <***@hawaii.edu>
>>>> wrote:
>>>> > Brendan-
>>>> >
>>>> > It would be helpful if you could save the files used to run the
>>>> grdmath command below which seems to be the first that crashes. However,
>>>> that is clearly not the full grdmath command since there is no -R -I or
>>>> gridfile on the input side. If I am to be of any help I will need an actual
>>>> grdmath command line that crashes and all the input files that it requires
>>>> so I can try to recreate the situation here.
>>>> >
>>>> > Cheers,
>>>> > -p
>>>> >
>>>> >
>>>> >
>>>> > On Nov 28, 2013, at 5:54 PM, Branden Christensen <
>>>> ***@OSOP.COM.PA> wrote:
>>>> >
>>>> >> grdmath: (/opt/shakemap2/bin/../data/9583161/output/hwxDhIWuGY.xy)
>>>> PDIST 27.47 HYPOT = /opt/shakemap2/bin/../data/9583161/output/D7FwNIcwDT.grd
>>>> >> *** buffer overflow detected ***: /usr/lib/gmt/bin/grdmath terminated
>>>> >
>>>> > To unsubscribe, send the message "signoff gmt-help" to
>>>> ***@lists.hawaii.edu
>>>> >
>>>> > To unsubscribe, send the message "signoff gmt-help" to
>>>> ***@lists.hawaii.edu
>>>>
>>>> To unsubscribe, send the message "signoff gmt-help" to
>>>> ***@lists.hawaii.edu
>>>>
>>>
>>> To unsubscribe, send the message "signoff gmt-help" to
>>> ***@lists.hawaii.edu
>>>
>>>
>>> To unsubscribe, send the message "signoff gmt-help" to
>>> ***@lists.hawaii.edu
>>>
>>
>> To unsubscribe, send the message "signoff gmt-help" to
>> ***@lists.hawaii.edu
>>
>>
>> To unsubscribe, send the message "signoff gmt-help" to
>> ***@lists.hawaii.edu
>>
>
> To unsubscribe, send the message "signoff gmt-help" to
> ***@lists.hawaii.edu
>

To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
J. Luis
2014-01-24 23:30:22 UTC
Permalink
> /opt/gmt/4.5.12/bin/grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP
> DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL
> EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL
> 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV
> -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd
> DIV EXCH POW MUL = 3.grd
>
> *** buffer overflow detected ***: /opt/gmt/4.5.12/bin/grdmath terminated
>
> In both cases, it succeed if I use ./1.grd instead of 1.grd.
>
> Could someone more reproduce these results?
>
>

I can not reproduce them on a Lubuntu 13.10 VM with GMT5 (the only one I
have installed there)

To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
Joaquim Luis
2014-01-24 23:42:00 UTC
Permalink
Does the problem persist if grids are named with letters? e.g. g1.grd,
g2.grd, etc...


>> /opt/gmt/4.5.12/bin/grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP
>> DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL
>> EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL
>> 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV
>> -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd
>> DIV EXCH POW MUL = 3.grd
>>
>> *** buffer overflow detected ***: /opt/gmt/4.5.12/bin/grdmath terminated
>>
>> In both cases, it succeed if I use ./1.grd instead of 1.grd.
>>
>> Could someone more reproduce these results?
>>
>>
>
> I can not reproduce them on a Lubuntu 13.10 VM with GMT5 (the only one
> I have installed there)
>
> To unsubscribe, send the message "signoff gmt-help" to
> ***@lists.hawaii.edu
>
>

To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
Paul Wessel
2014-01-24 19:48:49 UTC
Permalink
Cannot reproduce on OSX. Are you able to run this in any debugger to see what exactly is happening to give us a clue?
-p

On Jan 24, 2014, at 2:03 AM, Marcelo Banik <***@GMAIL.COM> wrote:

> I tested in an ubuntu 13.10.
>
> Following command pass:
> ~/strange_behavior$ /usr/local/GMT4.5.11/bin/grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd
>
> But if I did:
> ~/strange_behavior$ ln -s /usr/local/GMT4.5.11/bin .
> ~/strange_behavior$ bin/grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd
> *** buffer overflow detected ***: bin/grdmath terminated
>
> And if I use full path to grdmath 4.5.12_r10185 [64-bit], it fails:
> /opt/gmt/4.5.12/bin/grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd
> *** buffer overflow detected ***: /opt/gmt/4.5.12/bin/grdmath terminated
>
> In both cases, it succeed if I use ./1.grd instead of 1.grd.
>
> Could someone more reproduce these results?
>
> Marcelo
>
>
>
> On Thu, Jan 23, 2014 at 9:12 PM, Branden Christensen <***@osop.com.pa> wrote:
> Paul:
>
>
> Good evening.
>
> I originally had the buffer overflow problem when I installed GMT on Ubuntu 12.04 using "sudo apt-get install gmt". You recommended I install 4.5.11 from sources which I did using the attached script "siposg4511-1.sh". But the problems persists.
>
> In the end I hope to be able to execute grdmath by calling the full path.
>
>
>
> Branden Christensen
> The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
> Take a Virtual Tour: http://www.osop.com.pa/tour
> Sign up for the OSOP mailing list: http://www.osop.com.pa/about/osop-mailing-list/
>
>
> On Wed, Jan 22, 2014 at 7:06 PM, Paul Wessel <***@hawaii.edu> wrote:
> Hi Brandan-
>
> I think I forgot how this started. Did you build GMT yourself or installed via ubuntu package manager? We have had lots of issues with the ubuntu-built GMT release but people who build it themselves have no issues. I know a ticket was opened with Ubuntu so maybe in 4 years it will be addressed... We suspect they used some unhealthy compiler flag but we do not know.
> -p
>
> On Jan 22, 2014, at 9:43 AM, Branden Christensen <***@OSOP.COM.PA> wrote:
>
>> Paul:
>>
>>
>> If you guys want access to a server running 12.04 let me know.
>>
>>
>> Kind Regards,
>>
>>
>> Branden Christensen
>> The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
>> Take a Virtual Tour: http://www.osop.com.pa/tour
>> Sign up for the OSOP mailing list: http://www.osop.com.pa/about/osop-mailing-list/
>>
>>
>> On Wed, Jan 22, 2014 at 7:31 PM, Paul Wessel <***@hawaii.edu> wrote:
>> No, this should be good - I just need to reproduce it in Ubuntu, or have some of our other guys try it as well (Marcelo? Eduardo?)
>>
>> -p
>>
>> On Jan 22, 2014, at 9:16 AM, Branden Christensen <***@OSOP.COM.PA> wrote:
>>
>>> Paul:
>>>
>>>
>>> I get this:
>>> ***@osop-displays2:~$ /usr/src/gmt-4.5.11/bin/grdmath -R0/10/0/10 -I1 X = 1.grd
>>> ***@osop-displays2:~$ /usr/src/gmt-4.5.11/bin/grdmath -R0/10/0/10 -I1 X = 2.grd
>>> ***@osop-displays2:~$ /usr/src/gmt-4.5.11/bin/grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd
>>> *** buffer overflow detected ***: /usr/src/gmt-4.5.11/bin/grdmath terminated
>>>
>>> So will you still need the original files if these dummy files produce the same error? Please let me know!
>>>
>>>
>>> Kind Regards,
>>>
>>>
>>> Branden Christensen
>>> The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
>>> Take a Virtual Tour: http://www.osop.com.pa/tour
>>> Sign up for the OSOP mailing list: http://www.osop.com.pa/about/osop-mailing-list/
>>>
>>>
>>> On Wed, Jan 22, 2014 at 7:05 PM, Paul Wessel <***@hawaii.edu> wrote:
>>> Hi Brandan-
>>>
>>> Even if the input grids dont matter I will need to create dummy ones with the right dimensions since grdmath is reading them to detect -R -I. If I just try
>>>
>>> grdmath -R0/10/0/10 -I1 X = 1.grd
>>> grdmath -R0/10/0/10 -I1 X = 2.grd
>>> grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd
>>>
>>> I get no errors. Let me know if the above crashes for you. I will then fire up Ubuntu in parallels and see what happens there.
>>> -p
>>>
>>> On Jan 22, 2014, at 8:51 AM, Branden Christensen <***@OSOP.COM.PA> wrote:
>>>
>>> > Paul:
>>> >
>>> >
>>> > Buenas tardes.
>>> >
>>> > I would like to take up this issue again.
>>> >
>>> > The buffer overflow is caused by grdmath on a 64-bit 12.04 LTS Ubuntu machine running GMT 4.5.11.
>>> >
>>> > Here is the complete command and resulting error:
>>> >
>>> > /usr/src/gmt-4.5.11/bin/grdmath /opt/shakemap2/bin/../data/9583161/richter/pgv_rock.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 /opt/shakemap2/bin/../data/9583161/output/UFVS74PC0J.grd DIV EXCH POW MUL = /opt/shakemap2/bin/../data/9583161/output/pgv.grd
>>> > *** buffer overflow detected ***: /usr/src/gmt-4.5.11/bin/grdmath terminated
>>> >
>>> > The input files do not matter. I created a new directory "tmp" and touched 1.grd, 2.grd and 3.grd. Then:
>>> > ***@osop-displays2:~/tmp$ /usr/src/gmt-4.5.11/bin/grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd*** buffer overflow detected ***: /usr/src/gmt-4.5.11/bin/grdmath terminated
>>> >
>>> >
>>> > Thank you for your expertise.
>>> >
>>> >
>>> > Kind Regards from Panama,
>>> >
>>> >
>>> > Branden Christensen
>>> > The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
>>> > Take a Virtual Tour: http://www.osop.com.pa/tour
>>> > Sign up for the OSOP mailing list: http://www.osop.com.pa/about/osop-mailing-list/
>>> >
>>> >
>>> > On Fri, Nov 29, 2013 at 9:32 AM, Paul Wessel <***@hawaii.edu> wrote:
>>> > Brendan-
>>> >
>>> > It would be helpful if you could save the files used to run the grdmath command below which seems to be the first that crashes. However, that is clearly not the full grdmath command since there is no -R -I or gridfile on the input side. If I am to be of any help I will need an actual grdmath command line that crashes and all the input files that it requires so I can try to recreate the situation here.
>>> >
>>> > Cheers,
>>> > -p
>>> >
>>> >
>>> >
>>> > On Nov 28, 2013, at 5:54 PM, Branden Christensen <***@OSOP.COM.PA> wrote:
>>> >
>>> >> grdmath: (/opt/shakemap2/bin/../data/9583161/output/hwxDhIWuGY.xy) PDIST 27.47 HYPOT = /opt/shakemap2/bin/../data/9583161/output/D7FwNIcwDT.grd
>>> >> *** buffer overflow detected ***: /usr/lib/gmt/bin/grdmath terminated
>>> >
>>> > To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
>>> >
>>> > To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
>>>
>>> To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
>>>
>>> To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
>>
>> To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
>>
>> To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
>
> To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
>
> To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
>
> To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu


To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
Paul Wessel
2014-01-25 00:49:55 UTC
Permalink
I've running the tests in ubuntu 13.04 and no problems. Given the various strange GMT errors we have seen over the last years, always involving ubuntu, especially their own package builds, makes me wonder if there is something very odd with that platform. Since I cannot even reproduce the problem on ubuntu (Not to mention other os) I am afraid the original poster will need to run debug on that command to see what is going on. For starters, could you add -V so you can see how far it gets (the order of the operators) before it dies. Perhaps that can give a clue. Otherwise build with debug flags and what line it dies in.

-p

On Jan 24, 2014, at 9:48 AM, Paul Wessel <***@hawaii.edu> wrote:

> Cannot reproduce on OSX. Are you able to run this in any debugger to see what exactly is happening to give us a clue?
> -p
>
> On Jan 24, 2014, at 2:03 AM, Marcelo Banik <***@GMAIL.COM> wrote:
>
>> I tested in an ubuntu 13.10.
>>
>> Following command pass:
>> ~/strange_behavior$ /usr/local/GMT4.5.11/bin/grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd
>>
>> But if I did:
>> ~/strange_behavior$ ln -s /usr/local/GMT4.5.11/bin .
>> ~/strange_behavior$ bin/grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd
>> *** buffer overflow detected ***: bin/grdmath terminated
>>
>> And if I use full path to grdmath 4.5.12_r10185 [64-bit], it fails:
>> /opt/gmt/4.5.12/bin/grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd
>> *** buffer overflow detected ***: /opt/gmt/4.5.12/bin/grdmath terminated
>>
>> In both cases, it succeed if I use ./1.grd instead of 1.grd.
>>
>> Could someone more reproduce these results?
>>
>> Marcelo
>>
>>
>>
>> On Thu, Jan 23, 2014 at 9:12 PM, Branden Christensen <***@osop.com.pa> wrote:
>> Paul:
>>
>>
>> Good evening.
>>
>> I originally had the buffer overflow problem when I installed GMT on Ubuntu 12.04 using "sudo apt-get install gmt". You recommended I install 4.5.11 from sources which I did using the attached script "siposg4511-1.sh". But the problems persists.
>>
>> In the end I hope to be able to execute grdmath by calling the full path.
>>
>>
>>
>> Branden Christensen
>> The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
>> Take a Virtual Tour: http://www.osop.com.pa/tour
>> Sign up for the OSOP mailing list: http://www.osop.com.pa/about/osop-mailing-list/
>>
>>
>> On Wed, Jan 22, 2014 at 7:06 PM, Paul Wessel <***@hawaii.edu> wrote:
>> Hi Brandan-
>>
>> I think I forgot how this started. Did you build GMT yourself or installed via ubuntu package manager? We have had lots of issues with the ubuntu-built GMT release but people who build it themselves have no issues. I know a ticket was opened with Ubuntu so maybe in 4 years it will be addressed... We suspect they used some unhealthy compiler flag but we do not know.
>> -p
>>
>> On Jan 22, 2014, at 9:43 AM, Branden Christensen <***@OSOP.COM.PA> wrote:
>>
>>> Paul:
>>>
>>>
>>> If you guys want access to a server running 12.04 let me know.
>>>
>>>
>>> Kind Regards,
>>>
>>>
>>> Branden Christensen
>>> The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
>>> Take a Virtual Tour: http://www.osop.com.pa/tour
>>> Sign up for the OSOP mailing list: http://www.osop.com.pa/about/osop-mailing-list/
>>>
>>>
>>> On Wed, Jan 22, 2014 at 7:31 PM, Paul Wessel <***@hawaii.edu> wrote:
>>> No, this should be good - I just need to reproduce it in Ubuntu, or have some of our other guys try it as well (Marcelo? Eduardo?)
>>>
>>> -p
>>>
>>> On Jan 22, 2014, at 9:16 AM, Branden Christensen <***@OSOP.COM.PA> wrote:
>>>
>>>> Paul:
>>>>
>>>>
>>>> I get this:
>>>> ***@osop-displays2:~$ /usr/src/gmt-4.5.11/bin/grdmath -R0/10/0/10 -I1 X = 1.grd
>>>> ***@osop-displays2:~$ /usr/src/gmt-4.5.11/bin/grdmath -R0/10/0/10 -I1 X = 2.grd
>>>> ***@osop-displays2:~$ /usr/src/gmt-4.5.11/bin/grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd
>>>> *** buffer overflow detected ***: /usr/src/gmt-4.5.11/bin/grdmath terminated
>>>>
>>>> So will you still need the original files if these dummy files produce the same error? Please let me know!
>>>>
>>>>
>>>> Kind Regards,
>>>>
>>>>
>>>> Branden Christensen
>>>> The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
>>>> Take a Virtual Tour: http://www.osop.com.pa/tour
>>>> Sign up for the OSOP mailing list: http://www.osop.com.pa/about/osop-mailing-list/
>>>>
>>>>
>>>> On Wed, Jan 22, 2014 at 7:05 PM, Paul Wessel <***@hawaii.edu> wrote:
>>>> Hi Brandan-
>>>>
>>>> Even if the input grids dont matter I will need to create dummy ones with the right dimensions since grdmath is reading them to detect -R -I. If I just try
>>>>
>>>> grdmath -R0/10/0/10 -I1 X = 1.grd
>>>> grdmath -R0/10/0/10 -I1 X = 2.grd
>>>> grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd
>>>>
>>>> I get no errors. Let me know if the above crashes for you. I will then fire up Ubuntu in parallels and see what happens there.
>>>> -p
>>>>
>>>> On Jan 22, 2014, at 8:51 AM, Branden Christensen <***@OSOP.COM.PA> wrote:
>>>>
>>>> > Paul:
>>>> >
>>>> >
>>>> > Buenas tardes.
>>>> >
>>>> > I would like to take up this issue again.
>>>> >
>>>> > The buffer overflow is caused by grdmath on a 64-bit 12.04 LTS Ubuntu machine running GMT 4.5.11.
>>>> >
>>>> > Here is the complete command and resulting error:
>>>> >
>>>> > /usr/src/gmt-4.5.11/bin/grdmath /opt/shakemap2/bin/../data/9583161/richter/pgv_rock.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 /opt/shakemap2/bin/../data/9583161/output/UFVS74PC0J.grd DIV EXCH POW MUL = /opt/shakemap2/bin/../data/9583161/output/pgv.grd
>>>> > *** buffer overflow detected ***: /usr/src/gmt-4.5.11/bin/grdmath terminated
>>>> >
>>>> > The input files do not matter. I created a new directory "tmp" and touched 1.grd, 2.grd and 3.grd. Then:
>>>> > ***@osop-displays2:~/tmp$ /usr/src/gmt-4.5.11/bin/grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd*** buffer overflow detected ***: /usr/src/gmt-4.5.11/bin/grdmath terminated
>>>> >
>>>> >
>>>> > Thank you for your expertise.
>>>> >
>>>> >
>>>> > Kind Regards from Panama,
>>>> >
>>>> >
>>>> > Branden Christensen
>>>> > The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
>>>> > Take a Virtual Tour: http://www.osop.com.pa/tour
>>>> > Sign up for the OSOP mailing list: http://www.osop.com.pa/about/osop-mailing-list/
>>>> >
>>>> >
>>>> > On Fri, Nov 29, 2013 at 9:32 AM, Paul Wessel <***@hawaii.edu> wrote:
>>>> > Brendan-
>>>> >
>>>> > It would be helpful if you could save the files used to run the grdmath command below which seems to be the first that crashes. However, that is clearly not the full grdmath command since there is no -R -I or gridfile on the input side. If I am to be of any help I will need an actual grdmath command line that crashes and all the input files that it requires so I can try to recreate the situation here.
>>>> >
>>>> > Cheers,
>>>> > -p
>>>> >
>>>> >
>>>> >
>>>> > On Nov 28, 2013, at 5:54 PM, Branden Christensen <***@OSOP.COM.PA> wrote:
>>>> >
>>>> >> grdmath: (/opt/shakemap2/bin/../data/9583161/output/hwxDhIWuGY.xy) PDIST 27.47 HYPOT = /opt/shakemap2/bin/../data/9583161/output/D7FwNIcwDT.grd
>>>> >> *** buffer overflow detected ***: /usr/lib/gmt/bin/grdmath terminated
>>>> >
>>>> > To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
>>>> >
>>>> > To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
>>>>
>>>> To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
>>>>
>>>> To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
>>>
>>> To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
>>>
>>> To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
>>
>> To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
>>
>> To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
>>
>> To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
>


To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
Branden Christensen
2014-01-25 16:06:54 UTC
Permalink
Paul, Marcelo and others:


Good day.

*First, -V:*

Unfortunately, -V does not appear to produce valuable output....

****@osop-displays2:/opt$ /usr/src/gmt-4.5.11/bin/grdmath 1.grd DUP DUP
10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV
-0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10
DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30
SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686
2.grd DIV EXCH POW MUL = 3.grd -V*
-bash: /usr/src/gmt-4.5.11/bin/grdmath 1.grd: No such file or directory
****@osop-displays2:/opt$ /usr/src/gmt-4.5.11/bin/grdmath -V 1.grd DUP DUP
10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV
-0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10
DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30
SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686
2.grd DIV EXCH POW MUL = 3.grd *
grdmath: GMT SYNTAX ERROR: 1.grd is not a number, operator or file name

Maybe I am placing the flag in the wrong place...

Without the flag I get the buffer overflow (as you already know):
****@osop-displays2:/opt$ /usr/src/gmt-4.5.11/bin/grdmath 1.grd DUP DUP 10
LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05
MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV
-0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10
DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd
DIV EXCH POW MUL = 3.grd*
*** buffer overflow detected ***: /usr/src/gmt-4.5.11/bin/grdmath terminated
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x7f8759adb807]
/lib/x86_64-linux-gnu/libc.so.6(+0x109700)[0x7f8759ada700]
/lib/x86_64-linux-gnu/libc.so.6(+0x1085d3)[0x7f8759ad95d3]
/usr/src/gmt-4.5.11/bin/grdmath[0x41e286]
/usr/src/gmt-4.5.11/bin/grdmath[0x40cd4a]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7f87599f276d]
/usr/src/gmt-4.5.11/bin/grdmath[0x40f409]
======= Memory map: ========
00400000-004c9000 r-xp 00000000 08:01 9834075
/usr/src/gmt-4.5.11/bin/grdmath
006c8000-006ca000 r--p 000c8000 08:01 9834075
/usr/src/gmt-4.5.11/bin/grdmath
006ca000-006ee000 rw-p 000ca000 08:01 9834075
/usr/src/gmt-4.5.11/bin/grdmath
006ee000-0073a000 rw-p 00000000 00:00 0
01724000-01796000 rw-p 00000000 00:00 0
[heap]
7f874c3e5000-7f874c3ee000 r-xp 00000000 08:01 11010866
/lib/x86_64-linux-gnu/libcrypt-2.15.so
7f874c3ee000-7f874c5ee000 ---p 00009000 08:01 11010866
/lib/x86_64-linux-gnu/libcrypt-2.15.so
7f874c5ee000-7f874c5ef000 r--p 00009000 08:01 11010866
/lib/x86_64-linux-gnu/libcrypt-2.15.so
7f874c5ef000-7f874c5f0000 rw-p 0000a000 08:01 11010866
/lib/x86_64-linux-gnu/libcrypt-2.15.so
7f874c5f0000-7f874c61e000 rw-p 00000000 00:00 0
7f874c61e000-7f874c663000 r-xp 00000000 08:01 5773595
/usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
7f874c663000-7f874c863000 ---p 00045000 08:01 5773595
/usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
7f874c863000-7f874c865000 r--p 00045000 08:01 5773595
/usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
7f874c865000-7f874c867000 rw-p 00047000 08:01 5773595
/usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
7f874c867000-7f874c868000 rw-p 00000000 00:00 0
7f874c868000-7f874c876000 r-xp 00000000 08:01 5773589
/usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
7f874c876000-7f874ca75000 ---p 0000e000 08:01 5773589
/usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
7f874ca75000-7f874ca76000 r--p 0000d000 08:01 5773589
/usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
7f874ca76000-7f874ca77000 rw-p 0000e000 08:01 5773589
/usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
7f874ca77000-7f874ca9f000 r-xp 00000000 08:01 5773592
/usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
7f874ca9f000-7f874cc9e000 ---p 00028000 08:01 5773592
/usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
7f874cc9e000-7f874cc9f000 r--p 00027000 08:01 5773592
/usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
7f874cc9f000-7f874cca0000 rw-p 00028000 08:01 5773592
/usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
7f874cca0000-7f874ccd5000 r-xp 00000000 08:01 5776318
/usr/lib/x86_64-linux-gnu/libquadmath.so.0.0.0
7f874ccd5000-7f874ced4000 ---p 00035000 08:01 5776318
/usr/lib/x86_64-linux-gnu/libquadmath.so.0.0.0
7f874ced4000-7f874ced5000 r--p 00034000 08:01 5776318
/usr/lib/x86_64-linux-gnu/libquadmath.so.0.0.0
7f874ced5000-7f874ced6000 rw-p 00035000 08:01 5776318
/usr/lib/x86_64-linux-gnu/libquadmath.so.0.0.0
7f874ced6000-7f874ceea000 r-xp 00000000 08:01 5773571
/usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
7f874ceea000-7f874d0e9000 ---p 00014000 08:01 5773571
/usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
7f874d0e9000-7f874d0ea000 r--p 00013000 08:01 5773571
/usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
7f874d0ea000-7f874d0eb000 rw-p 00014000 08:01 5773571
/usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
7f874d0eb000-7f874d11c000 r-xp 00000000 08:01 5773586
/usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
7f874d11c000-7f874d31c000 ---p 00031000 08:01 5773586
/usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
7f874d31c000-7f874d31d000 r--p 00031000 08:01 5773586
/usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
7f874d31d000-7f874d31e000 rw-p 00032000 08:01 5773586
/usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
7f874d31e000-7f874d31f000 rw-p 00000000 00:00 0
7f874d31f000-7f874d3ba000 r-xp 00000000 08:01 5773574
/usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
7f874d3ba000-7f874d5b9000 ---p 0009b000 08:01 5773574
/usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
7f874d5b9000-7f874d5bb000 r--p 0009a000 08:01 5773574
/usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
7f874d5bb000-7f874d5bf000 rw-p 0009c000 08:01 5773574
/usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
7f874d5bf000-7f874d63f000 r-xp 00000000 08:01 5773598
/usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
7f874d63f000-7f874d83f000 ---p 00080000 08:01 5773598
/usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
7f874d83f000-7f874d841000 r--p 00080000 08:01 5773598
/usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
7f874d841000-7f874d845000 rw-p 00082000 08:01 5773598
/usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
7f874d845000-7f874d84b000 r-xp 00000000 08:01 5773601
/usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
7f874d84b000-7f874da4a000 ---p 00006000 08:01 5773601
/usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
7f874da4a000-7f874da4b000 r--p 00005000 08:01 5773601
/usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
7f874da4b000-7f874da4c000 rw-p 00006000 08:01 5773601
/usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
7f874da4c000-7f874da4f000 r-xp 00000000 08:01 11010397
/lib/x86_64-linux-gnu/libkeyutils.so.1.4
7f874da4f000-7f874dc4e000 ---p 00003000 08:01 11010397
/lib/x86_64-linux-gnu/libkeyutils.so.1.4
7f874dc4e000-7f874dc4f000 r--p 00002000 08:01 11010397
/lib/x86_64-linux-gnu/libkeyutils.so.1.4
7f874dc4f000-7f874dc50000 rw-p 00003000 08:01 11010397
/lib/x86_64-linux-gnu/libkeyutils.so.1.4
7f874dc50000-7f874edbf000 r-xp 00000000 08:01 5776023
/usr/lib/libicudata.so.48.1.1
7f874edbf000-7f874efbe000 ---p 0116f000 08:01 5776023
/usr/lib/libicudata.so.48.1.1
7f874efbe000-7f874efbf000 r--p 0116e000 08:01 5776023
/usr/lib/libicudata.so.48.1.1
7f874efbf000-7f874efc0000 rw-p 0116f000 08:01 5776023
/usr/lib/libicudata.so.48.1.1
7f874efc0000-7f874f0d4000 r-xp 00000000 08:01 5782149
/usr/lib/x86_64-linux-gnu/libgfortran.so.3.0.0
7f874f0d4000-7f874f2d4000 ---p 00114000 08:01 5782149
/usr/lib/x86_64-linux-gnu/libgfortran.so.3.0.0
7f874f2d4000-7f874f2d5000 r--p 00114000 08:01 5782149
/usr/lib/x86_64-linux-gnu/libgfortran.so.3.0.0
7f874f2d5000-7f874f2d7000 rw-p 00115000 08:01 5782149
/usr/lib/x86_64-linux-gnu/libgfortran.so.3.0.0
7f874f2d7000-7f874f2da000 r-xp 00000000 08:01 11010342
/lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
7f874f2da000-7f874f4d9000 ---p 00003000 08:01 11010342
/lib/x86_64-linux-gnu/libgpg-error.so.0.8.0Aborted (core dumped)


*Second, Debugging:*
I created a special output file to start debugging with strace. You can
find this file attached (grdmath.strace.out). This was generated by:
*strace -o ~/grdmath.strace.out -t -ff /usr/src/gmt-4.5.11/bin/grdmath
1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10
SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL
EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE
MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD
ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd*


Let me know if you need any additional information.



Kind Regards,


*Branden Christensen*
The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
Take a Virtual Tour: http://www.osop.com.pa/tour
Sign up for the OSOP mailing list:
http://www.osop.com.pa/about/osop-mailing-list/


On Sat, Jan 25, 2014 at 12:49 AM, Paul Wessel <***@hawaii.edu> wrote:

> I've running the tests in ubuntu 13.04 and no problems. Given the various
> strange GMT errors we have seen over the last years, always involving
> ubuntu, especially their own package builds, makes me wonder if there is
> something very odd with that platform. Since I cannot even reproduce the
> problem on ubuntu (Not to mention other os) I am afraid the original poster
> will need to run debug on that command to see what is going on. For
> starters, could you add -V so you can see how far it gets (the order of the
> operators) before it dies. Perhaps that can give a clue. Otherwise build
> with debug flags and what line it dies in.
>
> -p
>
> On Jan 24, 2014, at 9:48 AM, Paul Wessel <***@hawaii.edu> wrote:
>
> Cannot reproduce on OSX. Are you able to run this in any debugger to see
> what exactly is happening to give us a clue?
> -p
>
> On Jan 24, 2014, at 2:03 AM, Marcelo Banik <***@GMAIL.COM>
> wrote:
>
> I tested in an ubuntu 13.10.
>
>
> Following command pass:
>
> ~/strange_behavior$ /usr/local/GMT4.5.11/bin/grdmath 1.grd DUP DUP 10 LE
> 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL
> 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07
> MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV
> -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV
> EXCH POW MUL = 3.grd
>
>
> But if I did:
>
> ~/strange_behavior$ ln -s /usr/local/GMT4.5.11/bin .
>
> ~/strange_behavior$ bin/grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP
> DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP
> DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH
> DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL
> EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd
>
> *** buffer overflow detected ***: bin/grdmath terminated
>
>
> And if I use full path to grdmath 4.5.12_r10185 [64-bit], it fails:
>
> /opt/gmt/4.5.12/bin/grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP DUP
> 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP
> DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP
> DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH
> 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd
>
> *** buffer overflow detected ***: /opt/gmt/4.5.12/bin/grdmath terminated
>
>
> In both cases, it succeed if I use ./1.grd instead of 1.grd.
>
>
> Could someone more reproduce these results?
>
>
> Marcelo
>
>
>
>
> On Thu, Jan 23, 2014 at 9:12 PM, Branden Christensen <
> ***@osop.com.pa> wrote:
>
>> Paul:
>>
>>
>> Good evening.
>>
>> I originally had the buffer overflow problem when I installed GMT on
>> Ubuntu 12.04 using "sudo apt-get install gmt". You recommended I install
>> 4.5.11 from sources which I did using the attached script
>> "siposg4511-1.sh". But the problems persists.
>>
>> In the end I hope to be able to execute grdmath by calling the full path.
>>
>>
>>
>> *Branden Christensen*
>> The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
>> Take a Virtual Tour: http://www.osop.com.pa/tour
>> Sign up for the OSOP mailing list:
>> http://www.osop.com.pa/about/osop-mailing-list/
>>
>>
>> On Wed, Jan 22, 2014 at 7:06 PM, Paul Wessel <***@hawaii.edu> wrote:
>>
>>> Hi Brandan-
>>>
>>> I think I forgot how this started. Did you build GMT yourself or
>>> installed via ubuntu package manager? We have had lots of issues with the
>>> ubuntu-built GMT release but people who build it themselves have no issues.
>>> I know a ticket was opened with Ubuntu so maybe in 4 years it will be
>>> addressed... We suspect they used some unhealthy compiler flag but we do
>>> not know.
>>> -p
>>>
>>> On Jan 22, 2014, at 9:43 AM, Branden Christensen <
>>> ***@OSOP.COM.PA> wrote:
>>>
>>> Paul:
>>>
>>>
>>> If you guys want access to a server running 12.04 let me know.
>>>
>>>
>>> Kind Regards,
>>>
>>>
>>> *Branden Christensen*
>>> The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
>>> Take a Virtual Tour: http://www.osop.com.pa/tour
>>> Sign up for the OSOP mailing list:
>>> http://www.osop.com.pa/about/osop-mailing-list/
>>>
>>>
>>> On Wed, Jan 22, 2014 at 7:31 PM, Paul Wessel <***@hawaii.edu> wrote:
>>>
>>>> No, this should be good - I just need to reproduce it in Ubuntu, or
>>>> have some of our other guys try it as well (Marcelo? Eduardo?)
>>>>
>>>> -p
>>>>
>>>> On Jan 22, 2014, at 9:16 AM, Branden Christensen <
>>>> ***@OSOP.COM.PA> wrote:
>>>>
>>>> Paul:
>>>>
>>>>
>>>> I get this:
>>>> ***@osop-displays2:~$ /usr/src/gmt-4.5.11/bin/grdmath -R0/10/0/10 -I1
>>>> X = 1.grd
>>>> ***@osop-displays2:~$ /usr/src/gmt-4.5.11/bin/grdmath -R0/10/0/10 -I1
>>>> X = 2.grd
>>>> ***@osop-displays2:~$ /usr/src/gmt-4.5.11/bin/grdmath 1.grd DUP DUP
>>>> 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV
>>>> -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10
>>>> DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30
>>>> SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686
>>>> 2.grd DIV EXCH POW MUL = 3.grd
>>>> *** buffer overflow detected ***: /usr/src/gmt-4.5.11/bin/grdmath
>>>> terminated
>>>>
>>>> So will you still need the original files if these dummy files produce
>>>> the same error? Please let me know!
>>>>
>>>>
>>>> Kind Regards,
>>>>
>>>>
>>>> *Branden Christensen*
>>>> The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
>>>> Take a Virtual Tour: http://www.osop.com.pa/tour
>>>> Sign up for the OSOP mailing list:
>>>> http://www.osop.com.pa/about/osop-mailing-list/
>>>>
>>>>
>>>> On Wed, Jan 22, 2014 at 7:05 PM, Paul Wessel <***@hawaii.edu>
>>>> wrote:
>>>>
>>>>> Hi Brandan-
>>>>>
>>>>> Even if the input grids dont matter I will need to create dummy ones
>>>>> with the right dimensions since grdmath is reading them to detect -R -I.
>>>>> If I just try
>>>>>
>>>>> grdmath -R0/10/0/10 -I1 X = 1.grd
>>>>> grdmath -R0/10/0/10 -I1 X = 2.grd
>>>>> grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE
>>>>> MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH
>>>>> 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT
>>>>> EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45
>>>>> MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd
>>>>>
>>>>> I get no errors. Let me know if the above crashes for you. I will
>>>>> then fire up Ubuntu in parallels and see what happens there.
>>>>> -p
>>>>>
>>>>> On Jan 22, 2014, at 8:51 AM, Branden Christensen <
>>>>> ***@OSOP.COM.PA> wrote:
>>>>>
>>>>> > Paul:
>>>>> >
>>>>> >
>>>>> > Buenas tardes.
>>>>> >
>>>>> > I would like to take up this issue again.
>>>>> >
>>>>> > The buffer overflow is caused by grdmath on a 64-bit 12.04 LTS
>>>>> Ubuntu machine running GMT 4.5.11.
>>>>> >
>>>>> > Here is the complete command and resulting error:
>>>>> >
>>>>> > /usr/src/gmt-4.5.11/bin/grdmath
>>>>> /opt/shakemap2/bin/../data/9583161/richter/pgv_rock.grd DUP DUP 10 LE 0.65
>>>>> MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65
>>>>> ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL
>>>>> 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08
>>>>> MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686
>>>>> /opt/shakemap2/bin/../data/9583161/output/UFVS74PC0J.grd DIV EXCH POW MUL =
>>>>> /opt/shakemap2/bin/../data/9583161/output/pgv.grd
>>>>> > *** buffer overflow detected ***: /usr/src/gmt-4.5.11/bin/grdmath
>>>>> terminated
>>>>> >
>>>>> > The input files do not matter. I created a new directory "tmp" and
>>>>> touched 1.grd, 2.grd and 3.grd. Then:
>>>>> > ***@osop-displays2:~/tmp$ /usr/src/gmt-4.5.11/bin/grdmath 1.grd
>>>>> DUP DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10
>>>>> DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20
>>>>> SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL
>>>>> EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD
>>>>> ADD 686 2.grd DIV EXCH POW MUL = 3.grd*** buffer overflow detected ***:
>>>>> /usr/src/gmt-4.5.11/bin/grdmath terminated
>>>>> >
>>>>> >
>>>>> > Thank you for your expertise.
>>>>> >
>>>>> >
>>>>> > Kind Regards from Panama,
>>>>> >
>>>>> >
>>>>> > Branden Christensen
>>>>> > The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
>>>>> > Take a Virtual Tour: http://www.osop.com.pa/tour
>>>>> > Sign up for the OSOP mailing list:
>>>>> http://www.osop.com.pa/about/osop-mailing-list/
>>>>> >
>>>>> >
>>>>> > On Fri, Nov 29, 2013 at 9:32 AM, Paul Wessel <***@hawaii.edu>
>>>>> wrote:
>>>>> > Brendan-
>>>>> >
>>>>> > It would be helpful if you could save the files used to run the
>>>>> grdmath command below which seems to be the first that crashes. However,
>>>>> that is clearly not the full grdmath command since there is no -R -I or
>>>>> gridfile on the input side. If I am to be of any help I will need an actual
>>>>> grdmath command line that crashes and all the input files that it requires
>>>>> so I can try to recreate the situation here.
>>>>> >
>>>>> > Cheers,
>>>>> > -p
>>>>> >
>>>>> >
>>>>> >
>>>>> > On Nov 28, 2013, at 5:54 PM, Branden Christensen <
>>>>> ***@OSOP.COM.PA> wrote:
>>>>> >
>>>>> >> grdmath: (/opt/shakemap2/bin/../data/9583161/output/hwxDhIWuGY.xy)
>>>>> PDIST 27.47 HYPOT = /opt/shakemap2/bin/../data/9583161/output/D7FwNIcwDT.grd
>>>>> >> *** buffer overflow detected ***: /usr/lib/gmt/bin/grdmath
>>>>> terminated
>>>>> >
>>>>> > To unsubscribe, send the message "signoff gmt-help" to
>>>>> ***@lists.hawaii.edu
>>>>> >
>>>>> > To unsubscribe, send the message "signoff gmt-help" to
>>>>> ***@lists.hawaii.edu
>>>>>
>>>>> To unsubscribe, send the message "signoff gmt-help" to
>>>>> ***@lists.hawaii.edu
>>>>>
>>>>
>>>> To unsubscribe, send the message "signoff gmt-help" to
>>>> ***@lists.hawaii.edu
>>>>
>>>>
>>>> To unsubscribe, send the message "signoff gmt-help" to
>>>> ***@lists.hawaii.edu
>>>>
>>>
>>> To unsubscribe, send the message "signoff gmt-help" to
>>> ***@lists.hawaii.edu
>>>
>>>
>>> To unsubscribe, send the message "signoff gmt-help" to
>>> ***@lists.hawaii.edu
>>>
>>
>> To unsubscribe, send the message "signoff gmt-help" to
>> ***@lists.hawaii.edu
>>
>
> To unsubscribe, send the message "signoff gmt-help" to
> ***@lists.hawaii.edu
>
>
>
> To unsubscribe, send the message "signoff gmt-help" to
> ***@lists.hawaii.edu
>

To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
Eduardo A. Suárez
2014-01-25 16:50:25 UTC
Permalink
Hi Branden,

(only if you aren't tired of this)

* compile GMT 4.5.11 without any optimization and with debug flag.
This is done setting CFLAGS environment variable, in bash shell:

export CFLAGS="-g -O0"

Then go to gmt-45-11 directory and ./configure and make (no install)

* Install valgrind in Ubuntu. Valgrind is a tool for debugging programs.
Then with GMT freshly compiled, go to gmt-4-5-11/src directory and run
your commands:

./grdmath -R0/10/0/10 -I1 X = 1.grd

./grdmath -R0/10/0/10 -I1 X = 2.grd

valgrind ./grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT
EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP
DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL
EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL
0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH
POW MUL = 3.grd

Look that you're running under valgrind the grdmath in the src directory!

Paste and send the screen output

Eduardo.-

Quoting Branden Christensen <***@OSOP.COM.PA>:

> Paul, Marcelo and others:
>
>
> Good day.
>
> *First, -V:*
>
> Unfortunately, -V does not appear to produce valuable output....
>
> ****@osop-displays2:/opt$ /usr/src/gmt-4.5.11/bin/grdmath 1.grd DUP DUP
> 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV
> -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10
> DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30
> SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686
> 2.grd DIV EXCH POW MUL = 3.grd -V*
> -bash: /usr/src/gmt-4.5.11/bin/grdmath 1.grd: No such file or directory
> ****@osop-displays2:/opt$ /usr/src/gmt-4.5.11/bin/grdmath -V 1.grd DUP DUP
> 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV
> -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10
> DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30
> SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686
> 2.grd DIV EXCH POW MUL = 3.grd *
> grdmath: GMT SYNTAX ERROR: 1.grd is not a number, operator or file name
>
> Maybe I am placing the flag in the wrong place...
>
> Without the flag I get the buffer overflow (as you already know):
> ****@osop-displays2:/opt$ /usr/src/gmt-4.5.11/bin/grdmath 1.grd DUP DUP 10
> LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05
> MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV
> -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10
> DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd
> DIV EXCH POW MUL = 3.grd*
> *** buffer overflow detected ***: /usr/src/gmt-4.5.11/bin/grdmath terminated
> ======= Backtrace: =========
> /lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x7f8759adb807]
> /lib/x86_64-linux-gnu/libc.so.6(+0x109700)[0x7f8759ada700]
> /lib/x86_64-linux-gnu/libc.so.6(+0x1085d3)[0x7f8759ad95d3]
> /usr/src/gmt-4.5.11/bin/grdmath[0x41e286]
> /usr/src/gmt-4.5.11/bin/grdmath[0x40cd4a]
> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7f87599f276d]
> /usr/src/gmt-4.5.11/bin/grdmath[0x40f409]
> ======= Memory map: ========
> 00400000-004c9000 r-xp 00000000 08:01 9834075
> /usr/src/gmt-4.5.11/bin/grdmath
> 006c8000-006ca000 r--p 000c8000 08:01 9834075
> /usr/src/gmt-4.5.11/bin/grdmath
> 006ca000-006ee000 rw-p 000ca000 08:01 9834075
> /usr/src/gmt-4.5.11/bin/grdmath
> 006ee000-0073a000 rw-p 00000000 00:00 0
> 01724000-01796000 rw-p 00000000 00:00 0
> [heap]
> 7f874c3e5000-7f874c3ee000 r-xp 00000000 08:01 11010866
> /lib/x86_64-linux-gnu/libcrypt-2.15.so
> 7f874c3ee000-7f874c5ee000 ---p 00009000 08:01 11010866
> /lib/x86_64-linux-gnu/libcrypt-2.15.so
> 7f874c5ee000-7f874c5ef000 r--p 00009000 08:01 11010866
> /lib/x86_64-linux-gnu/libcrypt-2.15.so
> 7f874c5ef000-7f874c5f0000 rw-p 0000a000 08:01 11010866
> /lib/x86_64-linux-gnu/libcrypt-2.15.so
> 7f874c5f0000-7f874c61e000 rw-p 00000000 00:00 0
> 7f874c61e000-7f874c663000 r-xp 00000000 08:01 5773595
> /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
> 7f874c663000-7f874c863000 ---p 00045000 08:01 5773595
> /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
> 7f874c863000-7f874c865000 r--p 00045000 08:01 5773595
> /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
> 7f874c865000-7f874c867000 rw-p 00047000 08:01 5773595
> /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
> 7f874c867000-7f874c868000 rw-p 00000000 00:00 0
> 7f874c868000-7f874c876000 r-xp 00000000 08:01 5773589
> /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
> 7f874c876000-7f874ca75000 ---p 0000e000 08:01 5773589
> /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
> 7f874ca75000-7f874ca76000 r--p 0000d000 08:01 5773589
> /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
> 7f874ca76000-7f874ca77000 rw-p 0000e000 08:01 5773589
> /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
> 7f874ca77000-7f874ca9f000 r-xp 00000000 08:01 5773592
> /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
> 7f874ca9f000-7f874cc9e000 ---p 00028000 08:01 5773592
> /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
> 7f874cc9e000-7f874cc9f000 r--p 00027000 08:01 5773592
> /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
> 7f874cc9f000-7f874cca0000 rw-p 00028000 08:01 5773592
> /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
> 7f874cca0000-7f874ccd5000 r-xp 00000000 08:01 5776318
> /usr/lib/x86_64-linux-gnu/libquadmath.so.0.0.0
> 7f874ccd5000-7f874ced4000 ---p 00035000 08:01 5776318
> /usr/lib/x86_64-linux-gnu/libquadmath.so.0.0.0
> 7f874ced4000-7f874ced5000 r--p 00034000 08:01 5776318
> /usr/lib/x86_64-linux-gnu/libquadmath.so.0.0.0
> 7f874ced5000-7f874ced6000 rw-p 00035000 08:01 5776318
> /usr/lib/x86_64-linux-gnu/libquadmath.so.0.0.0
> 7f874ced6000-7f874ceea000 r-xp 00000000 08:01 5773571
> /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
> 7f874ceea000-7f874d0e9000 ---p 00014000 08:01 5773571
> /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
> 7f874d0e9000-7f874d0ea000 r--p 00013000 08:01 5773571
> /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
> 7f874d0ea000-7f874d0eb000 rw-p 00014000 08:01 5773571
> /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
> 7f874d0eb000-7f874d11c000 r-xp 00000000 08:01 5773586
> /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
> 7f874d11c000-7f874d31c000 ---p 00031000 08:01 5773586
> /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
> 7f874d31c000-7f874d31d000 r--p 00031000 08:01 5773586
> /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
> 7f874d31d000-7f874d31e000 rw-p 00032000 08:01 5773586
> /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
> 7f874d31e000-7f874d31f000 rw-p 00000000 00:00 0
> 7f874d31f000-7f874d3ba000 r-xp 00000000 08:01 5773574
> /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
> 7f874d3ba000-7f874d5b9000 ---p 0009b000 08:01 5773574
> /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
> 7f874d5b9000-7f874d5bb000 r--p 0009a000 08:01 5773574
> /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
> 7f874d5bb000-7f874d5bf000 rw-p 0009c000 08:01 5773574
> /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
> 7f874d5bf000-7f874d63f000 r-xp 00000000 08:01 5773598
> /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
> 7f874d63f000-7f874d83f000 ---p 00080000 08:01 5773598
> /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
> 7f874d83f000-7f874d841000 r--p 00080000 08:01 5773598
> /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
> 7f874d841000-7f874d845000 rw-p 00082000 08:01 5773598
> /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
> 7f874d845000-7f874d84b000 r-xp 00000000 08:01 5773601
> /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
> 7f874d84b000-7f874da4a000 ---p 00006000 08:01 5773601
> /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
> 7f874da4a000-7f874da4b000 r--p 00005000 08:01 5773601
> /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
> 7f874da4b000-7f874da4c000 rw-p 00006000 08:01 5773601
> /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
> 7f874da4c000-7f874da4f000 r-xp 00000000 08:01 11010397
> /lib/x86_64-linux-gnu/libkeyutils.so.1.4
> 7f874da4f000-7f874dc4e000 ---p 00003000 08:01 11010397
> /lib/x86_64-linux-gnu/libkeyutils.so.1.4
> 7f874dc4e000-7f874dc4f000 r--p 00002000 08:01 11010397
> /lib/x86_64-linux-gnu/libkeyutils.so.1.4
> 7f874dc4f000-7f874dc50000 rw-p 00003000 08:01 11010397
> /lib/x86_64-linux-gnu/libkeyutils.so.1.4
> 7f874dc50000-7f874edbf000 r-xp 00000000 08:01 5776023
> /usr/lib/libicudata.so.48.1.1
> 7f874edbf000-7f874efbe000 ---p 0116f000 08:01 5776023
> /usr/lib/libicudata.so.48.1.1
> 7f874efbe000-7f874efbf000 r--p 0116e000 08:01 5776023
> /usr/lib/libicudata.so.48.1.1
> 7f874efbf000-7f874efc0000 rw-p 0116f000 08:01 5776023
> /usr/lib/libicudata.so.48.1.1
> 7f874efc0000-7f874f0d4000 r-xp 00000000 08:01 5782149
> /usr/lib/x86_64-linux-gnu/libgfortran.so.3.0.0
> 7f874f0d4000-7f874f2d4000 ---p 00114000 08:01 5782149
> /usr/lib/x86_64-linux-gnu/libgfortran.so.3.0.0
> 7f874f2d4000-7f874f2d5000 r--p 00114000 08:01 5782149
> /usr/lib/x86_64-linux-gnu/libgfortran.so.3.0.0
> 7f874f2d5000-7f874f2d7000 rw-p 00115000 08:01 5782149
> /usr/lib/x86_64-linux-gnu/libgfortran.so.3.0.0
> 7f874f2d7000-7f874f2da000 r-xp 00000000 08:01 11010342
> /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
> 7f874f2da000-7f874f4d9000 ---p 00003000 08:01 11010342
> /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0Aborted (core dumped)
>
>
> *Second, Debugging:*
> I created a special output file to start debugging with strace. You can
> find this file attached (grdmath.strace.out). This was generated by:
> *strace -o ~/grdmath.strace.out -t -ff /usr/src/gmt-4.5.11/bin/grdmath
> 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10
> SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL
> EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE
> MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD
> ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd*
>
>
> Let me know if you need any additional information.
>
>
>
> Kind Regards,
>
>
> *Branden Christensen*
> The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
> Take a Virtual Tour: http://www.osop.com.pa/tour
> Sign up for the OSOP mailing list:
> http://www.osop.com.pa/about/osop-mailing-list/
>
>
> On Sat, Jan 25, 2014 at 12:49 AM, Paul Wessel <***@hawaii.edu> wrote:
>
>> I've running the tests in ubuntu 13.04 and no problems. Given the various
>> strange GMT errors we have seen over the last years, always involving
>> ubuntu, especially their own package builds, makes me wonder if there is
>> something very odd with that platform. Since I cannot even reproduce the
>> problem on ubuntu (Not to mention other os) I am afraid the original poster
>> will need to run debug on that command to see what is going on. For
>> starters, could you add -V so you can see how far it gets (the order of the
>> operators) before it dies. Perhaps that can give a clue. Otherwise build
>> with debug flags and what line it dies in.
>>
>> -p
>>
>> On Jan 24, 2014, at 9:48 AM, Paul Wessel <***@hawaii.edu> wrote:
>>
>> Cannot reproduce on OSX. Are you able to run this in any debugger to see
>> what exactly is happening to give us a clue?
>> -p
>>
>> On Jan 24, 2014, at 2:03 AM, Marcelo Banik <***@GMAIL.COM>
>> wrote:
>>
>> I tested in an ubuntu 13.10.
>>
>>
>> Following command pass:
>>
>> ~/strange_behavior$ /usr/local/GMT4.5.11/bin/grdmath 1.grd DUP DUP 10 LE
>> 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL
>> 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07
>> MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV
>> -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV
>> EXCH POW MUL = 3.grd
>>
>>
>> But if I did:
>>
>> ~/strange_behavior$ ln -s /usr/local/GMT4.5.11/bin .
>>
>> ~/strange_behavior$ bin/grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP
>> DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP
>> DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH
>> DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL
>> EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd
>>
>> *** buffer overflow detected ***: bin/grdmath terminated
>>
>>
>> And if I use full path to grdmath 4.5.12_r10185 [64-bit], it fails:
>>
>> /opt/gmt/4.5.12/bin/grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP DUP
>> 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP
>> DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP
>> DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH
>> 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd
>>
>> *** buffer overflow detected ***: /opt/gmt/4.5.12/bin/grdmath terminated
>>
>>
>> In both cases, it succeed if I use ./1.grd instead of 1.grd.
>>
>>
>> Could someone more reproduce these results?
>>
>>
>> Marcelo
>>
>>
>>
>>
>> On Thu, Jan 23, 2014 at 9:12 PM, Branden Christensen <
>> ***@osop.com.pa> wrote:
>>
>>> Paul:
>>>
>>>
>>> Good evening.
>>>
>>> I originally had the buffer overflow problem when I installed GMT on
>>> Ubuntu 12.04 using "sudo apt-get install gmt". You recommended I install
>>> 4.5.11 from sources which I did using the attached script
>>> "siposg4511-1.sh". But the problems persists.
>>>
>>> In the end I hope to be able to execute grdmath by calling the full path.
>>>
>>>
>>>
>>> *Branden Christensen*
>>> The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
>>> Take a Virtual Tour: http://www.osop.com.pa/tour
>>> Sign up for the OSOP mailing list:
>>> http://www.osop.com.pa/about/osop-mailing-list/
>>>
>>>
>>> On Wed, Jan 22, 2014 at 7:06 PM, Paul Wessel <***@hawaii.edu> wrote:
>>>
>>>> Hi Brandan-
>>>>
>>>> I think I forgot how this started. Did you build GMT yourself or
>>>> installed via ubuntu package manager? We have had lots of issues with the
>>>> ubuntu-built GMT release but people who build it themselves have
>>>> no issues.
>>>> I know a ticket was opened with Ubuntu so maybe in 4 years it will be
>>>> addressed... We suspect they used some unhealthy compiler flag but we do
>>>> not know.
>>>> -p
>>>>
>>>> On Jan 22, 2014, at 9:43 AM, Branden Christensen <
>>>> ***@OSOP.COM.PA> wrote:
>>>>
>>>> Paul:
>>>>
>>>>
>>>> If you guys want access to a server running 12.04 let me know.
>>>>
>>>>
>>>> Kind Regards,
>>>>
>>>>
>>>> *Branden Christensen*
>>>> The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
>>>> Take a Virtual Tour: http://www.osop.com.pa/tour
>>>> Sign up for the OSOP mailing list:
>>>> http://www.osop.com.pa/about/osop-mailing-list/
>>>>
>>>>
>>>> On Wed, Jan 22, 2014 at 7:31 PM, Paul Wessel <***@hawaii.edu> wrote:
>>>>
>>>>> No, this should be good - I just need to reproduce it in Ubuntu, or
>>>>> have some of our other guys try it as well (Marcelo? Eduardo?)
>>>>>
>>>>> -p
>>>>>
>>>>> On Jan 22, 2014, at 9:16 AM, Branden Christensen <
>>>>> ***@OSOP.COM.PA> wrote:
>>>>>
>>>>> Paul:
>>>>>
>>>>>
>>>>> I get this:
>>>>> ***@osop-displays2:~$ /usr/src/gmt-4.5.11/bin/grdmath -R0/10/0/10 -I1
>>>>> X = 1.grd
>>>>> ***@osop-displays2:~$ /usr/src/gmt-4.5.11/bin/grdmath -R0/10/0/10 -I1
>>>>> X = 2.grd
>>>>> ***@osop-displays2:~$ /usr/src/gmt-4.5.11/bin/grdmath 1.grd DUP DUP
>>>>> 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV
>>>>> -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL
>>>>> EXCH 20 SUB 10
>>>>> DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30
>>>>> SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686
>>>>> 2.grd DIV EXCH POW MUL = 3.grd
>>>>> *** buffer overflow detected ***: /usr/src/gmt-4.5.11/bin/grdmath
>>>>> terminated
>>>>>
>>>>> So will you still need the original files if these dummy files produce
>>>>> the same error? Please let me know!
>>>>>
>>>>>
>>>>> Kind Regards,
>>>>>
>>>>>
>>>>> *Branden Christensen*
>>>>> The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
>>>>> Take a Virtual Tour: http://www.osop.com.pa/tour
>>>>> Sign up for the OSOP mailing list:
>>>>> http://www.osop.com.pa/about/osop-mailing-list/
>>>>>
>>>>>
>>>>> On Wed, Jan 22, 2014 at 7:05 PM, Paul Wessel <***@hawaii.edu>
>>>>> wrote:
>>>>>
>>>>>> Hi Brandan-
>>>>>>
>>>>>> Even if the input grids dont matter I will need to create dummy ones
>>>>>> with the right dimensions since grdmath is reading them to detect -R -I.
>>>>>> If I just try
>>>>>>
>>>>>> grdmath -R0/10/0/10 -I1 X = 1.grd
>>>>>> grdmath -R0/10/0/10 -I1 X = 2.grd
>>>>>> grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE
>>>>>> MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP
>>>>>> 20 GT EXCH
>>>>>> 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP
>>>>>> DUP DUP 30 GT
>>>>>> EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45
>>>>>> MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd
>>>>>>
>>>>>> I get no errors. Let me know if the above crashes for you. I will
>>>>>> then fire up Ubuntu in parallels and see what happens there.
>>>>>> -p
>>>>>>
>>>>>> On Jan 22, 2014, at 8:51 AM, Branden Christensen <
>>>>>> ***@OSOP.COM.PA> wrote:
>>>>>>
>>>>>> > Paul:
>>>>>> >
>>>>>> >
>>>>>> > Buenas tardes.
>>>>>> >
>>>>>> > I would like to take up this issue again.
>>>>>> >
>>>>>> > The buffer overflow is caused by grdmath on a 64-bit 12.04 LTS
>>>>>> Ubuntu machine running GMT 4.5.11.
>>>>>> >
>>>>>> > Here is the complete command and resulting error:
>>>>>> >
>>>>>> > /usr/src/gmt-4.5.11/bin/grdmath
>>>>>> /opt/shakemap2/bin/../data/9583161/richter/pgv_rock.grd DUP DUP
>>>>>> 10 LE 0.65
>>>>>> MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV
>>>>>> -0.05 MUL 0.65
>>>>>> ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10
>>>>>> DIV -0.07 MUL
>>>>>> 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB
>>>>>> 10 DIV -0.08
>>>>>> MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686
>>>>>> /opt/shakemap2/bin/../data/9583161/output/UFVS74PC0J.grd DIV
>>>>>> EXCH POW MUL =
>>>>>> /opt/shakemap2/bin/../data/9583161/output/pgv.grd
>>>>>> > *** buffer overflow detected ***: /usr/src/gmt-4.5.11/bin/grdmath
>>>>>> terminated
>>>>>> >
>>>>>> > The input files do not matter. I created a new directory "tmp" and
>>>>>> touched 1.grd, 2.grd and 3.grd. Then:
>>>>>> > ***@osop-displays2:~/tmp$ /usr/src/gmt-4.5.11/bin/grdmath 1.grd
>>>>>> DUP DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL
>>>>>> EXCH 10 SUB 10
>>>>>> DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20
>>>>>> SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL
>>>>>> EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL
>>>>>> ADD ADD ADD
>>>>>> ADD 686 2.grd DIV EXCH POW MUL = 3.grd*** buffer overflow detected ***:
>>>>>> /usr/src/gmt-4.5.11/bin/grdmath terminated
>>>>>> >
>>>>>> >
>>>>>> > Thank you for your expertise.
>>>>>> >
>>>>>> >
>>>>>> > Kind Regards from Panama,
>>>>>> >
>>>>>> >
>>>>>> > Branden Christensen
>>>>>> > The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
>>>>>> > Take a Virtual Tour: http://www.osop.com.pa/tour
>>>>>> > Sign up for the OSOP mailing list:
>>>>>> http://www.osop.com.pa/about/osop-mailing-list/
>>>>>> >
>>>>>> >
>>>>>> > On Fri, Nov 29, 2013 at 9:32 AM, Paul Wessel <***@hawaii.edu>
>>>>>> wrote:
>>>>>> > Brendan-
>>>>>> >
>>>>>> > It would be helpful if you could save the files used to run the
>>>>>> grdmath command below which seems to be the first that crashes.
>>>>>> However,
>>>>>> that is clearly not the full grdmath command since there is no -R -I or
>>>>>> gridfile on the input side. If I am to be of any help I will
>>>>>> need an actual
>>>>>> grdmath command line that crashes and all the input files that
>>>>>> it requires
>>>>>> so I can try to recreate the situation here.
>>>>>> >
>>>>>> > Cheers,
>>>>>> > -p
>>>>>> >
>>>>>> >
>>>>>> >
>>>>>> > On Nov 28, 2013, at 5:54 PM, Branden Christensen <
>>>>>> ***@OSOP.COM.PA> wrote:
>>>>>> >
>>>>>> >> grdmath: (/opt/shakemap2/bin/../data/9583161/output/hwxDhIWuGY.xy)
>>>>>> PDIST 27.47 HYPOT =
>>>>>> /opt/shakemap2/bin/../data/9583161/output/D7FwNIcwDT.grd
>>>>>> >> *** buffer overflow detected ***: /usr/lib/gmt/bin/grdmath
>>>>>> terminated
>>>>>> >
>>>>>> > To unsubscribe, send the message "signoff gmt-help" to
>>>>>> ***@lists.hawaii.edu
>>>>>> >
>>>>>> > To unsubscribe, send the message "signoff gmt-help" to
>>>>>> ***@lists.hawaii.edu
>>>>>>
>>>>>> To unsubscribe, send the message "signoff gmt-help" to
>>>>>> ***@lists.hawaii.edu
>>>>>>
>>>>>
>>>>> To unsubscribe, send the message "signoff gmt-help" to
>>>>> ***@lists.hawaii.edu
>>>>>
>>>>>
>>>>> To unsubscribe, send the message "signoff gmt-help" to
>>>>> ***@lists.hawaii.edu
>>>>>
>>>>
>>>> To unsubscribe, send the message "signoff gmt-help" to
>>>> ***@lists.hawaii.edu
>>>>
>>>>
>>>> To unsubscribe, send the message "signoff gmt-help" to
>>>> ***@lists.hawaii.edu
>>>>
>>>
>>> To unsubscribe, send the message "signoff gmt-help" to
>>> ***@lists.hawaii.edu
>>>
>>
>> To unsubscribe, send the message "signoff gmt-help" to
>> ***@lists.hawaii.edu
>>
>>
>>
>> To unsubscribe, send the message "signoff gmt-help" to
>> ***@lists.hawaii.edu
>>
>
> To unsubscribe, send the message "signoff gmt-help" to
> ***@lists.hawaii.edu
>



--
Eduardo A. Suarez
Facultad de Ciencias Astronómicas y Geofísicas - UNLP
FCAG: (0221)-4236593 int. 172/Cel: (0221)-15-4557542/Casa: (0221)-4526589


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
Branden Christensen
2014-01-25 20:28:47 UTC
Permalink
Joaquim, Eduardo:


Joaquim:


Sorry. Somehow I missed your original email. Here are the results of your
suggestion:

****@osop-displays2:~$ /usr/src/gmt-4.5.11/bin/grdmath -R0/10/0/10 -I1 X =
a.grd *
****@osop-displays2:~$ /usr/src/gmt-4.5.11/bin/grdmath -R0/10/0/10 -I1 X =
b.grd *
****@osop-displays2:~$ /usr/src/gmt-4.5.11/bin/grdmath a.grd DUP DUP 10 LE
0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL
0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07
MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV
-0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 b.grd DIV
EXCH POW MUL = c.grd*
*** buffer overflow detected ***: /usr/src/gmt-4.5.11/bin/grdmath terminated


Eduardo:


I am definitely tired of this error but I am in it to win it. I am
especially energized by so many people (Paul, Marcelo, Joaquim, Jim, Ingo,
you) who are willing to see this through with me.

Here are the results of cd /usr/src/gmt-4.5.11; export CFLAGS="-g -O0";
sudo ./configure; sudo make:

- No errors were thrown on compilation
-
- grdmath looks OK:

***@osop-displays2:/usr/src/gmt-4.5.11$ grep grdmath
make-terminal-output2.txt
gcc -O2 -Wall -fPIC -fno-strict-aliasing -std=c99 -I/usr/include
-DGMT_SHARE_PATH=\"/usr/src/gmt-4.5.11/share\" -DGMT_GSHHG_PATH=\"no\"
-c -o grdmath.o grdmath.c
gcc -s -Wl,-rpath,/usr/lib grdmath.o -L. -lgmt -L/usr/lib -lnetcdf -lm -o
grdmath

But after compilation, the command still fails:
****@osop-displays2:~$ /usr/src/gmt-4.5.11/bin/grdmath 1.grd DUP DUP 10 LE
0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL
0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07
MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV
-0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV
EXCH POW MUL = 3.grd*
*** buffer overflow detected ***: /usr/src/gmt-4.5.11/bin/grdmath terminated

Here are the results of the same exercise from /usr/src/gmt-4.5.11/src:
****@osop-displays2:/usr/src/gmt-4.5.11/src$ sudo ./grdmath -R0/10/0/10
-I1 X = 1.grd*
****@osop-displays2:/usr/src/gmt-4.5.11/src$ sudo ./grdmath -R0/10/0/10
-I1 X = 2.grd*
****@osop-displays2:/usr/src/gmt-4.5.11/src$ sudo ./grdmath 1.grd DUP DUP
10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV
-0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10
DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30
SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686
2.grd DIV EXCH POW MUL = 3.grd*
****@osop-displays2:/usr/src/gmt-4.5.11/src$ sudo
/usr/src/gmt-4.5.11/src/grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP
DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP
DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH
DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL
EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd*
*** buffer overflow detected ***: /usr/src/gmt-4.5.11/src/grdmath terminated

As I have shown before, the command only fails with a buffer overflow error
when the full path is given to grdmath.

Here are the results of the same exercise from valgrind:
****@osop-displays2:/usr/src/gmt-4.5.11/src$ sudo valgrind ./grdmath 1.grd
DUP DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10
DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20
SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL
EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD
ADD 686 2.grd DIV EXCH POW MUL = 3.grd*
==10805== Memcheck, a memory error detector
==10805== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==10805== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
==10805== Command: ./grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP DUP
10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP
DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP
DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH
40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd
==10805==
==10805==
==10805== HEAP SUMMARY:
==10805== in use at exit: 1,336 bytes in 3 blocks
==10805== total heap usage: 3,692 allocs, 3,689 frees, 611,642 bytes
allocated
==10805==
==10805== LEAK SUMMARY:
==10805== definitely lost: 0 bytes in 0 blocks
==10805== indirectly lost: 0 bytes in 0 blocks
==10805== possibly lost: 0 bytes in 0 blocks
==10805== still reachable: 1,336 bytes in 3 blocks
==10805== suppressed: 0 bytes in 0 blocks
==10805== Rerun with --leak-check=full to see details of leaked memory
==10805==
==10805== For counts of detected and suppressed errors, rerun with: -v
==10805== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 2 from 2)
****@osop-displays2:/usr/src/gmt-4.5.11/src$ sudo valgrind
/usr/src/gmt-4.5.11/src/grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP
DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP
DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH
DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL
EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd*
==10991== Memcheck, a memory error detector
==10991== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==10991== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
==10991== Command: /usr/src/gmt-4.5.11/src/grdmath 1.grd DUP DUP 10 LE 0.65
MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65
ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL
0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08
MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW
MUL = 3.grd
==10991==
*** buffer overflow detected ***: /usr/src/gmt-4.5.11/src/grdmath terminated
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x5576f47]
/lib/x86_64-linux-gnu/libc.so.6(+0x109e40)[0x5575e40]
/lib/x86_64-linux-gnu/libc.so.6(+0x108d13)[0x5574d13]
/usr/src/gmt-4.5.11/src/grdmath[0x41e0e6]
/usr/src/gmt-4.5.11/src/grdmath[0x40befa]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x548d76d]
/usr/src/gmt-4.5.11/src/grdmath[0x40e415]
======= Memory map: ========
00400000-004c5000 r-xp 00000000 08:01 9836504
/usr/src/gmt-4.5.11/src/grdmath
006c4000-006c6000 r--p 000c4000 08:01 9836504
/usr/src/gmt-4.5.11/src/grdmath
006c6000-006ea000 rw-p 000c6000 08:01 9836504
/usr/src/gmt-4.5.11/src/grdmath
006ea000-00716000 rw-p 00000000 00:00 0
04000000-04022000 r-xp 00000000 08:01 11010114
/lib/x86_64-linux-gnu/ld-2.15.so
04022000-04023000 rw-s 00000000 08:01 4194333
/tmp/vgdb-pipe-shared-mem-vgdb-10991-by-root-on-???
04023000-04027000 rw-p 00000000 00:00 0
04044000-04055000 rw-p 00000000 00:00 0
04222000-04223000 r--p 00022000 08:01 11010114
/lib/x86_64-linux-gnu/ld-2.15.so
04223000-04225000 rw-p 00023000 08:01 11010114
/lib/x86_64-linux-gnu/ld-2.15.so
04225000-04226000 rwxp 00000000 00:00 0
04a25000-04a26000 r-xp 00000000 08:01 5905261
/usr/lib/valgrind/vgpreload_core-amd64-linux.so
04a26000-04c25000 ---p 00001000 08:01 5905261
/usr/lib/valgrind/vgpreload_core-amd64-linux.so
04c25000-04c26000 r--p 00000000 08:01 5905261
/usr/lib/valgrind/vgpreload_core-amd64-linux.so
04c26000-04c27000 rw-p 00001000 08:01 5905261
/usr/lib/valgrind/vgpreload_core-amd64-linux.so
04c27000-04c31000 r-xp 00000000 08:01 5905274
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so
04c31000-04e30000 ---p 0000a000 08:01 5905274
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so
04e30000-04e31000 r--p 00009000 08:01 5905274
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so
04e31000-04e32000 rw-p 0000a000 08:01 5905274
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so
04e32000-04f15000 r-xp 00000000 08:01 5789585
/usr/lib/libnetcdf.so.6.0.0
04f15000-05115000 ---p 000e3000 08:01 5789585
/usr/lib/libnetcdf.so.6.0.0
05115000-05163000 r--p 000e3000 08:01 5789585
/usr/lib/libnetcdf.so.6.0.0
05163000-05165000 rw-p 00131000 08:01 5789585
/usr/lib/libnetcdf.so.6.0.0
05165000-05170000 rw-p 00000000 00:00 0
05170000-0526b000 r-xp 00000000 08:01 11010107
/lib/x86_64-linux-gnu/libm-2.15.so
0526b000-0546a000 ---p 000fb000 08:01 11010107
/lib/x86_64-linux-gnu/libm-2.15.so
0546a000-0546b000 r--p 000fa000 08:01 11010107
/lib/x86_64-linux-gnu/libm-2.15.so
0546b000-0546c000 rw-p 000fb000 08:01 11010107
/lib/x86_64-linux-gnu/libm-2.15.so
0546c000-05621000 r-xp 00000000 08:01 11010079
/lib/x86_64-linux-gnu/libc-2.15.so
05621000-05821000 ---p 001b5000 08:01 11010079
/lib/x86_64-linux-gnu/libc-2.15.so
05821000-05825000 r--p 001b5000 08:01 11010079
/lib/x86_64-linux-gnu/libc-2.15.so
05825000-05827000 rw-p 001b9000 08:01 11010079
/lib/x86_64-linux-gnu/libc-2.15.so
05827000-0582c000 rw-p 00000000 00:00 0
0582c000-05881000 r-xp 00000000 08:01 5773609
/usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.2.0
05881000-05a81000 ---p 00055000 08:01 5773609
/usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.2.0
05a81000-05a83000 r--p 00055000 08:01 5773609
/usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.2.0
05a83000-05a84000 rw-p 00057000 08:01 5773609
/usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.2.0
05a84000-05aa4000 r-xp 00000000 08:01 5786770
/usr/lib/libhdf5_hl.so.6.0.3
05aa4000-05ca3000 ---p 00020000 08:01 5786770
/usr/lib/libhdf5_hl.so.6.0.3
05ca3000-05ca4000 r--p 0001f000 08:01 5786770
/usr/lib/libhdf5_hl.so.6.0.3
05ca4000-05ca5000 rw-p 00020000 08:01 5786770
/usr/lib/libhdf5_hl.so.6.0.3
05ca5000-05cb6000 rw-p 00000000 00:00 0
05cb6000-06048000 r-xp 00000000 08:01 5786767
/usr/lib/libhdf5.so.6.0.3
06048000-06247000 ---p 00392000 08:01 5786767
/usr/lib/libhdf5.so.6.0.3
06247000-0624c000 r--p 00391000 08:01 5786767
/usr/lib/libhdf5.so.6.0.3
0624c000-06250000 rw-p 00396000 08:01 5786767
/usr/lib/libhdf5.so.6.0.3
06250000-06251000 rw-p 00000000 00:00 0
06251000-06283000 r-xp 00000000 08:01 5773087
/usr/lib/x86_64-linux-gnu/libidn.so.11.6.6
06283000-06482000 ---p 00032000 08:01 5773087
/usr/lib/x86_64-linux-gnu/libidn.so.11.6.6
06482000-06483000 r--p 00031000 08:01 5773087
/usr/lib/x86_64-linux-gnu/libidn.so.11.6.6
06483000-06484000 rw-p 00032000 08:01 5773087
/usr/lib/x86_64-linux-gnu/libidn.so.11.6.6
06484000-06491000 r-xp 00000000 08:01 5786866
/usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.8.1
06491000-06690000 ---p 0000d000 08:01 5786866
/usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.8.1
06690000-06691000 r--p 0000c000 08:01 5786866
/usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.8.1
06691000-06692000 rw-p 0000d000 08:01 5786866
/usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.8.1
06692000-066dd000 r-xp 00000000 08:01 5772626
/usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.8.1
066dd000-068dc000 ---p 0004b000 08:01 5772626
/usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.8.1
068dc000-068de000 r--p 0004a000 08:01 5772626
/usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.8.1
068de000-068df000 rw-p 0004c000 08:01 5772626
/usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.8.1
068df000-068e1000 rw-p 00000000 00:00 0
068e1000-068e8000 r-xp 00000000 08:01 11010090
/lib/x86_64-linux-gnu/librt-2.15.so
068e8000-06ae7000 ---p 00007000 08:01 11010090
/lib/x86_64-linux-gnu/librt-2.15.so
06ae7000-06ae8000 r--p 00006000 08:01 11010090
/lib/x86_64-linux-gnu/librt-2.15.so
06ae8000-06ae9000 rw-p 00007000 08:01 11010090
/lib/x86_64-linux-gnu/librt-2.15.so
06ae9000-06b24000 r-xp 00000000 08:01 5772630
/usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
06b24000-06d24000 ---p 0003b000 08:01 5772630
/usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
06d24000-06d25000 r--p 0003b000 08:01 5772630
/usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
06d25000-06d27000 rw-p 0003c000 08:01 5772630
/usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2
06d27000-06d3d000 r-xp 00000000 08:01 11010218
/lib/x86_64-linux-gnu/libz.so.1.2.3.4
06d3d000-06f3c000 ---p 00016000 08:01 11010218
/lib/x86_64-linux-gnu/libz.so.1.2.3.4
06f3c000-06f3d000 r--p 00015000 08:01 11010218
/lib/x86_64-linux-gnu/libz.so.1.2.3.4
06f3d000-06f3e000 rw-p 00016000 08:01 11010218
/lib/x86_64-linux-gnu/libz.so.1.2.3.4
06f3e000-06ff2000 r-xp 00000000 08:01 5786861
/usr/lib/x86_64-linux-gnu/libgnutls.so.26.21.8
06ff2000-071f2000 ---p 000b4000 08:01 5786861
/usr/lib/x86_64-linux-gnu/libgnutls.so.26.21.8
071f2000-071f8000 r--p 000b4000 08:01 5786861
/usr/lib/x86_64-linux-gnu/libgnutls.so.26.21.8
071f8000-071f9000 rw-p 000ba000 08:01 5786861
/usr/lib/x86_64-linux-gnu/libgnutls.so.26.21.8
071f9000-071fa000 rw-p 00000000 00:00 0
071fa000-07274000 r-xp 00000000 08:01 11010063
/lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
07274000-07474000 ---p 0007a000 08:01 11010063
/lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
07474000-07475000 r--p 0007a000 08:01 11010063
/lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
07475000-07478000 rw-p 0007b000 08:01 11010063
/lib/x86_64-linux-gnu/libgcrypt.so.11.7.0
07478000-07490000 r-xp 00000000 08:01 5773616
/usr/lib/x86_64-linux-gnu/librtmp.so.0
07490000-07690000 ---p 00018000 08:01 5773616
/usr/lib/x86_64-linux-gnu/librtmp.so.0
07690000-07691000 r--p 00018000 08:01 5773616
/usr/lib/x86_64-linux-gnu/librtmp.so.0
07691000-07692000 rw-p 00019000 08:01 5773616
/usr/lib/x86_64-linux-gnu/librtmp.so.0
07692000-076aa000 r-xp 00000000 08:01 11010099
/lib/x86_64-linux-gnu/libpthread-2.15.so
076aa000-078a9000 ---p 00018000 08:01 11010099
/lib/x86_64-linux-gnu/libpthread-2.15.so
078a9000-078aa000 r--p 00017000 08:01 11010099
/lib/x86_64-linux-gnu/libpthread-2.15.so
078aa000-078ab000 rw-p 00018000 08:01 11010099
/lib/x86_64-linux-gnu/libpthread-2.15.so
078ab000-078af000 rw-p 00000000 00:00 0
078af000-078c7000 r-xp 00000000 08:01 11010085
/lib/x86_64-linux-gnu/libresolv-2.15.so
078c7000-07ac7000 ---p 00018000 08:01 11010085
/lib/x86_64-linux-gnu/libresolv-2.15.so
07ac7000-07ac8000 r--p 00018000 08:01 11010085
/lib/x86_64-linux-gnu/libresolv-2.15.so
07ac8000-07ac9000 rw-p 00019000 08:01 11010085
/lib/x86_64-linux-gnu/libresolv-2.15.so
07ac9000-07acb000 rw-p 00000000 00:00 0
07acb000-07ae5000 r-xp 00000000 08:01 5773607
/usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
07ae5000-07ce4000 ---p 0001a000 08:01 5773607
/usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
07ce4000-07ce5000 r--p 00019000 08:01 5773607
/usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
07ce5000-07ce6000 rw-p 0001a000 08:01 5773607
/usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
07ce6000-07d20000 r-xp 00000000 08:01 5773604
/usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
07d20000-07f20000 ---p 0003a000 08:01 5773604
/usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
07f20000-07f21000 r--p 0003a000 08:01 5773604
/usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
07f21000-07f24000 rw-p 0003b000 08:01 5773604
/usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
07f24000-07fe8000 r-xp 00000000 08:01 5786863
/usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
07fe8000-081e7000 ---p 000c4000 08:01 5786863
/usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
081e7000-081f1000 r--p 000c3000 08:01 5786863
/usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
081f1000-081f2000 rw-p 000cd000 08:01 5786863
/usr/lib/x86_64-linux-gnu/libkrb5.so.3.3
081f2000-08217000 r-xp 00000000 08:01 5773583
/usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
08217000-08417000 ---p 00025000 08:01 5773583
/usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
08417000-08418000 r--p 00025000 08:01 5773583
/usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
08418000-08419000 rw-p 00026000 08:01 5773583
/usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1
08419000-0841a000 rw-p 00000000 00:00 0
0841a000-0841d000 r-xp 00000000 08:01 11010057
/lib/x86_64-linux-gnu/libcom_err.so.2.1
0841d000-0861c000 ---p 00003000 08:01 11010057
/lib/x86_64-linux-gnu/libcom_err.so.2.1
0861c000-0861d000 r--p 00002000 08:01 11010057
/lib/x86_64-linux-gnu/libcom_err.so.2.1
0861d000-0861e000 rw-p 00003000 08:01 11010057
/lib/x86_64-linux-gnu/libcom_err.so.2.1
0861e000-08625000 r-xp 00000000 08:01 5772636
/usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
08625000-08824000 ---p 00007000 08:01 5772636
/usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
08824000-08825000 r--p 00006000 08:01 5772636
/usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
08825000-08826000 rw-p 00007000 08:01 5772636
/usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1
08826000-08836000 r-xp 00000000 08:01 5771972
/usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.12
08836000-08a35000 ---p 00010000 08:01 5771972
/usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.12
08a35000-08a36000 r--p 0000f000 08:01 5771972
/usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.12
08a36000-08a37000 rw-p 00010000 08:01 5771972
/usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.12
08a37000-08a48000 r-xp 00000000 08:01 5773577
/usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
08a48000-08c47000 ---p 00011000 08:01 5773577
/usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
08c47000-08c48000 r--p 00010000 08:01 5773577
/usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
08c48000-08c49000 rw-p 00011000 08:01 5773577
/usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
08c49000-08c4c000 r-xp 00000000 08:01 11010342
/lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
08c4c000-08e4b000 ---p 00003000 08:01 11010342
/lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
08e4b000-08e4c000 r--p 00002000 08:01 11010342
/lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
08e4c000-08e4d000 rw-p 00003000 08:01 11010342
/lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
08e4d000-08e4f000 r-xp 00000000 08:01 11010346
/lib/x86_64-linux-gnu/libdl-2.15.so
08e4f000-0904f000 ---p 00002000 08:01 11010346
/lib/x86_64-linux-gnu/libdl-2.15.so
0904f000-09050000 r--p 00002000 08:01 11010346
/lib/x86_64-linux-gnu/libdl-2.15.so
09050000-09051000 rw-p 00003000 08:01 11010346
/lib/x86_64-linux-gnu/libdl-2.15.so
09051000-09057000 r-xp 00000000 08:01 5773601
/usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
09057000-09256000 ---p 00006000 08:01 5773601
/usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
09256000-09257000 r--p 00005000 08:01 5773601
/usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
09257000-09258000 rw-p 00006000 08:01 5773601
/usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
09258000-092d8000 r-xp 00000000 08:01 5773598
/usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
092d8000-094d8000 ---p 00080000 08:01 5773598
/usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
094d8000-094da000 r--p 00080000 08:01 5773598
/usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
094da000-094de000 rw-p 00082000 08:01 5773598
/usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
094de000-09579000 r-xp 00000000 08:01 5773574
/usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
09579000-09778000 ---p 0009b000 08:01 5773574
/usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
09778000-0977a000 r--p 0009a000 08:01 5773574
/usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
0977a000-0977e000 rw-p 0009c000 08:01 5773574
/usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
0977e000-097af000 r-xp 00000000 08:01 5773586
/usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
097af000-099af000 ---p 00031000 08:01 5773586
/usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
099af000-099b0000 r--p 00031000 08:01 5773586
/usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
099b0000-099b1000 rw-p 00032000 08:01 5773586
/usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
099b1000-099b2000 rw-p 00000000 00:00 0
099b2000-099c6000 r-xp 00000000 08:01 5773571
/usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
099c6000-09bc5000 ---p 00014000 08:01 5773571
/usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
09bc5000-09bc6000 r--p 00013000 08:01 5773571
/usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
09bc6000-09bc7000 rw-p 00014000 08:01 5773571
/usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
09bc7000-09bca000 r-xp 00000000 08:01 11010397
/lib/x86_64-linux-gnu/libkeyutils.so.1.4
09bca000-09dc9000 ---p 00003000 08:01 11010397
/lib/x86_64-linux-gnu/libkeyutils.so.1.4
09dc9000-09dca000 r--p 00002000 08:01 11010397
/lib/x86_64-linux-gnu/libkeyutils.so.1.4
09dca000-09dcb000 rw-p 00003000 08:01 11010397
/lib/x86_64-linux-gnu/libkeyutils.so.1.4
09dcb000-09df3000 r-xp 00000000 08:01 5773592
/usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
09df3000-09ff2000 ---p 00028000 08:01 5773592
/usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
09ff2000-09ff3000 r--p 00027000 08:01 5773592
/usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
09ff3000-09ff4000 rw-p 00028000 08:01 5773592
/usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
09ff4000-0a002000 r-xp 00000000 08:01 5773589
/usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
0a002000-0a201000 ---p 0000e000 08:01 5773589
/usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
0a201000-0a202000 r--p 0000d000 08:01 5773589
/usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
0a202000-0a203000 rw-p 0000e000 08:01 5773589
/usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
0a203000-0a248000 r-xp 00000000 08:01 5773595
/usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
0a248000-0a448000 ---p 00045000 08:01 5773595
/usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
0a448000-0a44a000 r--p 00045000 08:01 5773595
/usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
0a44a000-0a44c000 rw-p 00047000 08:01 5773595
/usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
0a44c000-0a44d000 rw-p 00000000 00:00 0
0a44d000-0a4eb000 r-xp 00000000 08:01 5786858
/usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
0a4eb000-0a6eb000 ---p 0009e000 08:01 5786858
/usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
0a6eb000-0a6ed000 r--p 0009e000 08:01 5786858
/usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
0a6ed000-0a6ef000 rw-p 000a0000 08:01 5786858
/usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
0a6ef000-0a6f0000 rw-p 00000000 00:00 0
0a6f0000-0a6f9000 r-xp 00000000 08:01 11010080
/lib/x86_64-linux-gnu/libcrypt-2.15.so
0a6f9000-0a8f9000 ---p 00009000 08:01 11010080
/lib/x86_64-linux-gnu/libcrypt-2.15.so
0a8f9000-0a8fa000 r--p 00009000 08:01 11010080
/lib/x86_64-linux-gnu/libcrypt-2.15.so
0a8fa000-0a8fb000 rw-p 0000a000 08:01 11010080
/lib/x86_64-linux-gnu/libcrypt-2.15.so
0a8fb000-0a929000 rw-p 00000000 00:00 0
0a929000-0ad29000 rwxp 00000000 00:00 0
0ad29000-0ad3e000 r-xp 00000000 08:01 11010093
/lib/x86_64-linux-gnu/libgcc_s.so.1
0ad3e000-0af3d000 ---p 00015000 08:01 11010093
/lib/x86_64-linux-gnu/libgcc_s.so.1
0af3d000-0af3e000 r--p 00014000 08:01 11010093
/lib/x86_64-linux-gnu/libgcc_s.so.1
0af3e000-0af3f000 rw-p 00015000 08:01 11010093
/lib/x86_64-linux-gnu/libgcc_s.so.1
38000000-382c6000 r-xp 00200000 08:01 5905200
/usr/lib/valgrind/memcheck-amd64-linux
384c5000-384c9000 rw-p 004c5000 08:01 5905200
/usr/lib/valgrind/memcheck-amd64-linux
384c9000-395a5000 rw-p 00000000 00:00 0
402001000-402abd000 rwxp 00000000 00:00 0
402abd000-402abf000 ---p 00000000 00:00 0
402abf000-402bbf000 rwxp 00000000 00:00 0
402bbf000-402bc1000 ---p 00000000 00:00 0
402bc1000-404ee3000 rwxp 00000000 00:00 0
404f88000-405dd2000 rwxp 00000000 00:00 0
7fefce000-7ff001000 rwxp 00000000 00:00 0
7fff221f4000-7fff22215000 rw-p 00000000 00:00 0
[stack]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0
[vsyscall]
==10991==
==10991== HEAP SUMMARY:
==10991== in use at exit: 230,013 bytes in 873 blocks
==10991== total heap usage: 1,146 allocs, 273 frees, 242,942 bytes
allocated
==10991==
==10991== LEAK SUMMARY:
==10991== definitely lost: 0 bytes in 0 blocks
==10991== indirectly lost: 0 bytes in 0 blocks
==10991== possibly lost: 0 bytes in 0 blocks
==10991== still reachable: 230,013 bytes in 873 blocks
==10991== suppressed: 0 bytes in 0 blocks
==10991== Rerun with --leak-check=full to see details of leaked memory
==10991==
==10991== For counts of detected and suppressed errors, rerun with: -v
==10991== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 2 from 2)


This does not look very conclusive...Let me know if you need anything else!



Kind Regards,



*Branden Christensen*
The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
Take a Virtual Tour: http://www.osop.com.pa/tour
Sign up for the OSOP mailing list:
http://www.osop.com.pa/about/osop-mailing-list/

To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
Paul Wessel
2014-01-25 23:24:16 UTC
Permalink
Are you doing this in the wrong dir or without 1.grd 2.grd present? When I add -V it prints out the commands as it is executing them. Yours says it cannot find 1.grd which means that file is not there. Please check, place the files, then rerun with -V and tell us how far grdmath gets before the crash.

-p

On Jan 25, 2014, at 6:06 AM, Branden Christensen <***@OSOP.COM.PA> wrote:

> Paul, Marcelo and others:
>
>
> Good day.
>
> First, -V:
>
> Unfortunately, -V does not appear to produce valuable output....
>
> ***@osop-displays2:/opt$ /usr/src/gmt-4.5.11/bin/grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd -V
> -bash: /usr/src/gmt-4.5.11/bin/grdmath 1.grd: No such file or directory
> ***@osop-displays2:/opt$ /usr/src/gmt-4.5.11/bin/grdmath -V 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd
> grdmath: GMT SYNTAX ERROR: 1.grd is not a number, operator or file name


To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
Joachim Saul
2014-01-26 21:44:57 UTC
Permalink
Paul Wessel [26.01.2014 00:24]:
> Are you doing this in the wrong dir or without 1.grd 2.grd present? When I add -V it prints out the commands as it is executing them. Yours says it cannot find 1.grd which means that file is not there. Please check, place the files, then rerun with -V and tell us how far grdmath gets before the crash.

-V is of no help here.

By adding a few breakpoints it quickly turned out that the buffer overflow occurs in GMT_grd_init() in gmt_grdio.c, where a struct GRD_HEADER is populated. That struct has a 'command' field with a fixed length of 320 bytes (GRD_COMMAND_LEN in gmt_grd.h). The buffer overflow occurs as soon as that limit is reached when composing the 'command' field.

There is actually a test in gmt_grdio.c line 745 meant to prevent that:

if (len > GRD_COMMAND_LEN) continue;

but this doesn't account for the terminating '\0' byte. If (and only if) len==GRD_COMMAND_LEN this will result in a write of one byte beyond the end of 'command' by strcat() causing the buffer overflow. Thus simply changing that line to

if (len >= GRD_COMMAND_LEN) continue;

fixes the issue.

I am baffled that valgrind didn't complain.

AFAICS the bug is still present in 5.1.0 (requires fixing line 1363 in gmt_grdio.c).

Regards
Joachim

To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
Paul Wessel
2014-01-26 22:57:47 UTC
Permalink
Excellent Joachim; fixed in GMT 4 (r10188) and GMT5 (12781).
-p

On Jan 26, 2014, at 11:44 AM, Joachim Saul <***@GFZ-POTSDAM.DE> wrote:

> Paul Wessel [26.01.2014 00:24]:
>> Are you doing this in the wrong dir or without 1.grd 2.grd present? When I add -V it prints out the commands as it is executing them. Yours says it cannot find 1.grd which means that file is not there. Please check, place the files, then rerun with -V and tell us how far grdmath gets before the crash.
>
> -V is of no help here.
>
> By adding a few breakpoints it quickly turned out that the buffer overflow occurs in GMT_grd_init() in gmt_grdio.c, where a struct GRD_HEADER is populated. That struct has a 'command' field with a fixed length of 320 bytes (GRD_COMMAND_LEN in gmt_grd.h). The buffer overflow occurs as soon as that limit is reached when composing the 'command' field.
>
> There is actually a test in gmt_grdio.c line 745 meant to prevent that:
>
> if (len > GRD_COMMAND_LEN) continue;
>
> but this doesn't account for the terminating '\0' byte. If (and only if) len==GRD_COMMAND_LEN this will result in a write of one byte beyond the end of 'command' by strcat() causing the buffer overflow. Thus simply changing that line to
>
> if (len >= GRD_COMMAND_LEN) continue;
>
> fixes the issue.
>
> I am baffled that valgrind didn't complain.
>
> AFAICS the bug is still present in 5.1.0 (requires fixing line 1363 in gmt_grdio.c).
>
> Regards
> Joachim
>
> To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu

To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
Branden Christensen
2014-01-26 23:14:54 UTC
Permalink
Hi guys:


Great news!

I am happy we found a bug and I was not wasting anyone's time chasing down
something fictitious.

Paul, I can now just use my script to download 4.5.11 again and recompile?
Or what does protocol call for in this case?


Kind Regards,


*Branden Christensen*
The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
Take a Virtual Tour: http://www.osop.com.pa/tour
Sign up for the OSOP mailing list:
http://www.osop.com.pa/about/osop-mailing-list/


On Sun, Jan 26, 2014 at 10:57 PM, Paul Wessel <***@hawaii.edu> wrote:

> Excellent Joachim; fixed in GMT 4 (r10188) and GMT5 (12781).
> -p
>
> On Jan 26, 2014, at 11:44 AM, Joachim Saul <***@GFZ-POTSDAM.DE> wrote:
>
> > Paul Wessel [26.01.2014 00:24]:
> >> Are you doing this in the wrong dir or without 1.grd 2.grd present?
> When I add -V it prints out the commands as it is executing them. Yours
> says it cannot find 1.grd which means that file is not there. Please
> check, place the files, then rerun with -V and tell us how far grdmath gets
> before the crash.
> >
> > -V is of no help here.
> >
> > By adding a few breakpoints it quickly turned out that the buffer
> overflow occurs in GMT_grd_init() in gmt_grdio.c, where a struct GRD_HEADER
> is populated. That struct has a 'command' field with a fixed length of 320
> bytes (GRD_COMMAND_LEN in gmt_grd.h). The buffer overflow occurs as soon as
> that limit is reached when composing the 'command' field.
> >
> > There is actually a test in gmt_grdio.c line 745 meant to prevent that:
> >
> > if (len > GRD_COMMAND_LEN) continue;
> >
> > but this doesn't account for the terminating '\0' byte. If (and only if)
> len==GRD_COMMAND_LEN this will result in a write of one byte beyond the end
> of 'command' by strcat() causing the buffer overflow. Thus simply changing
> that line to
> >
> > if (len >= GRD_COMMAND_LEN) continue;
> >
> > fixes the issue.
> >
> > I am baffled that valgrind didn't complain.
> >
> > AFAICS the bug is still present in 5.1.0 (requires fixing line 1363 in
> gmt_grdio.c).
> >
> > Regards
> > Joachim
> >
> > To unsubscribe, send the message "signoff gmt-help" to
> ***@lists.hawaii.edu
>
> To unsubscribe, send the message "signoff gmt-help" to
> ***@lists.hawaii.edu
>

To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
Paul Wessel
2014-01-26 23:58:08 UTC
Permalink
Branden, 4.5.11 has not changed so for the fix you will need to install the latest GMT4 via subversion or wait for 4.5.12, possibly in a month or so. Or you can bandaid your 4.5.11 code using the description below.

-p

On Jan 26, 2014, at 1:14 PM, Branden Christensen <***@OSOP.COM.PA> wrote:

> Hi guys:
>
>
> Great news!
>
> I am happy we found a bug and I was not wasting anyone's time chasing down something fictitious.
>
> Paul, I can now just use my script to download 4.5.11 again and recompile? Or what does protocol call for in this case?
>
>
> Kind Regards,
>
>
> Branden Christensen
> The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
> Take a Virtual Tour: http://www.osop.com.pa/tour
> Sign up for the OSOP mailing list: http://www.osop.com.pa/about/osop-mailing-list/
>
>
> On Sun, Jan 26, 2014 at 10:57 PM, Paul Wessel <***@hawaii.edu> wrote:
> Excellent Joachim; fixed in GMT 4 (r10188) and GMT5 (12781).
> -p
>
> On Jan 26, 2014, at 11:44 AM, Joachim Saul <***@GFZ-POTSDAM.DE> wrote:
>
> > Paul Wessel [26.01.2014 00:24]:
> >> Are you doing this in the wrong dir or without 1.grd 2.grd present? When I add -V it prints out the commands as it is executing them. Yours says it cannot find 1.grd which means that file is not there. Please check, place the files, then rerun with -V and tell us how far grdmath gets before the crash.
> >
> > -V is of no help here.
> >
> > By adding a few breakpoints it quickly turned out that the buffer overflow occurs in GMT_grd_init() in gmt_grdio.c, where a struct GRD_HEADER is populated. That struct has a 'command' field with a fixed length of 320 bytes (GRD_COMMAND_LEN in gmt_grd.h). The buffer overflow occurs as soon as that limit is reached when composing the 'command' field.
> >
> > There is actually a test in gmt_grdio.c line 745 meant to prevent that:
> >
> > if (len > GRD_COMMAND_LEN) continue;
> >
> > but this doesn't account for the terminating '\0' byte. If (and only if) len==GRD_COMMAND_LEN this will result in a write of one byte beyond the end of 'command' by strcat() causing the buffer overflow. Thus simply changing that line to
> >
> > if (len >= GRD_COMMAND_LEN) continue;
> >
> > fixes the issue.
> >
> > I am baffled that valgrind didn't complain.
> >
> > AFAICS the bug is still present in 5.1.0 (requires fixing line 1363 in gmt_grdio.c).
> >
> > Regards
> > Joachim
> >
> > To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
>
> To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
>
> To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu


To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
J. Luis
2014-01-25 16:45:23 UTC
Permalink
Can you please try my previous suggestion of using grid names that start
with letters?

Can you run the debug version under valgrind (I couldn't find any
obvious indication of a possible cause from your stacktrace) ?


> Paul, Marcelo and others:
>
>
> Good day.
>
> *First, -V:*
>
> Unfortunately, -V does not appear to produce valuable output....
>
> ****@osop-displays2:/opt$ /usr/src/gmt-4.5.11/bin/grdmath 1.grd DUP
> DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB
> 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL
> EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH
> 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45
> MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd -V*
> -bash: /usr/src/gmt-4.5.11/bin/grdmath 1.grd: No such file or directory
> ****@osop-displays2:/opt$ /usr/src/gmt-4.5.11/bin/grdmath-V 1.grd DUP
> DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB
> 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL
> EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH
> 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45
> MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd *
> grdmath: GMT SYNTAX ERROR: 1.grd is not a number, operator or file name
>
> Maybe I am placing the flag in the wrong place...
>
> Without the flag I get the buffer overflow (as you already know):
> ****@osop-displays2:/opt$ /usr/src/gmt-4.5.11/bin/grdmath 1.grd DUP
> DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB
> 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL
> EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH
> 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45
> MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd*
> *** buffer overflow detected ***: /usr/src/gmt-4.5.11/bin/grdmath
> terminated
> ======= Backtrace: =========
> /lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x7f8759adb807]
> /lib/x86_64-linux-gnu/libc.so.6(+0x109700)[0x7f8759ada700]
> /lib/x86_64-linux-gnu/libc.so.6(+0x1085d3)[0x7f8759ad95d3]
> /usr/src/gmt-4.5.11/bin/grdmath[0x41e286]
> /usr/src/gmt-4.5.11/bin/grdmath[0x40cd4a]
> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7f87599f276d]
> /usr/src/gmt-4.5.11/bin/grdmath[0x40f409]
> ======= Memory map: ========
> 00400000-004c9000 r-xp 00000000 08:01 9834075
> /usr/src/gmt-4.5.11/bin/grdmath
> 006c8000-006ca000 r--p 000c8000 08:01 9834075
> /usr/src/gmt-4.5.11/bin/grdmath
> 006ca000-006ee000 rw-p 000ca000 08:01 9834075
> /usr/src/gmt-4.5.11/bin/grdmath
> 006ee000-0073a000 rw-p 00000000 00:00 0
> 01724000-01796000 rw-p 00000000 00:00 0
> [heap]
> 7f874c3e5000-7f874c3ee000 r-xp 00000000 08:01 11010866
> /lib/x86_64-linux-gnu/libcrypt-2.15.so <http://libcrypt-2.15.so>
> 7f874c3ee000-7f874c5ee000 ---p 00009000 08:01 11010866
> /lib/x86_64-linux-gnu/libcrypt-2.15.so <http://libcrypt-2.15.so>
> 7f874c5ee000-7f874c5ef000 r--p 00009000 08:01 11010866
> /lib/x86_64-linux-gnu/libcrypt-2.15.so <http://libcrypt-2.15.so>
> 7f874c5ef000-7f874c5f0000 rw-p 0000a000 08:01 11010866
> /lib/x86_64-linux-gnu/libcrypt-2.15.so <http://libcrypt-2.15.so>
> 7f874c5f0000-7f874c61e000 rw-p 00000000 00:00 0
> 7f874c61e000-7f874c663000 r-xp 00000000 08:01 5773595
> /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
> 7f874c663000-7f874c863000 ---p 00045000 08:01 5773595
> /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
> 7f874c863000-7f874c865000 r--p 00045000 08:01 5773595
> /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
> 7f874c865000-7f874c867000 rw-p 00047000 08:01 5773595
> /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
> 7f874c867000-7f874c868000 rw-p 00000000 00:00 0
> 7f874c868000-7f874c876000 r-xp 00000000 08:01 5773589
> /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
> 7f874c876000-7f874ca75000 ---p 0000e000 08:01 5773589
> /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
> 7f874ca75000-7f874ca76000 r--p 0000d000 08:01 5773589
> /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
> 7f874ca76000-7f874ca77000 rw-p 0000e000 08:01 5773589
> /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
> 7f874ca77000-7f874ca9f000 r-xp 00000000 08:01 5773592
> /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
> 7f874ca9f000-7f874cc9e000 ---p 00028000 08:01 5773592
> /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
> 7f874cc9e000-7f874cc9f000 r--p 00027000 08:01 5773592
> /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
> 7f874cc9f000-7f874cca0000 rw-p 00028000 08:01 5773592
> /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
> 7f874cca0000-7f874ccd5000 r-xp 00000000 08:01 5776318
> /usr/lib/x86_64-linux-gnu/libquadmath.so.0.0.0
> 7f874ccd5000-7f874ced4000 ---p 00035000 08:01 5776318
> /usr/lib/x86_64-linux-gnu/libquadmath.so.0.0.0
> 7f874ced4000-7f874ced5000 r--p 00034000 08:01 5776318
> /usr/lib/x86_64-linux-gnu/libquadmath.so.0.0.0
> 7f874ced5000-7f874ced6000 rw-p 00035000 08:01 5776318
> /usr/lib/x86_64-linux-gnu/libquadmath.so.0.0.0
> 7f874ced6000-7f874ceea000 r-xp 00000000 08:01 5773571
> /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
> 7f874ceea000-7f874d0e9000 ---p 00014000 08:01 5773571
> /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
> 7f874d0e9000-7f874d0ea000 r--p 00013000 08:01 5773571
> /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
> 7f874d0ea000-7f874d0eb000 rw-p 00014000 08:01 5773571
> /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
> 7f874d0eb000-7f874d11c000 r-xp 00000000 08:01 5773586
> /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
> 7f874d11c000-7f874d31c000 ---p 00031000 08:01 5773586
> /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
> 7f874d31c000-7f874d31d000 r--p 00031000 08:01 5773586
> /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
> 7f874d31d000-7f874d31e000 rw-p 00032000 08:01 5773586
> /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
> 7f874d31e000-7f874d31f000 rw-p 00000000 00:00 0
> 7f874d31f000-7f874d3ba000 r-xp 00000000 08:01 5773574
> /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
> 7f874d3ba000-7f874d5b9000 ---p 0009b000 08:01 5773574
> /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
> 7f874d5b9000-7f874d5bb000 r--p 0009a000 08:01 5773574
> /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
> 7f874d5bb000-7f874d5bf000 rw-p 0009c000 08:01 5773574
> /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
> 7f874d5bf000-7f874d63f000 r-xp 00000000 08:01 5773598
> /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
> 7f874d63f000-7f874d83f000 ---p 00080000 08:01 5773598
> /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
> 7f874d83f000-7f874d841000 r--p 00080000 08:01 5773598
> /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
> 7f874d841000-7f874d845000 rw-p 00082000 08:01 5773598
> /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
> 7f874d845000-7f874d84b000 r-xp 00000000 08:01 5773601
> /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
> 7f874d84b000-7f874da4a000 ---p 00006000 08:01 5773601
> /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
> 7f874da4a000-7f874da4b000 r--p 00005000 08:01 5773601
> /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
> 7f874da4b000-7f874da4c000 rw-p 00006000 08:01 5773601
> /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
> 7f874da4c000-7f874da4f000 r-xp 00000000 08:01 11010397
> /lib/x86_64-linux-gnu/libkeyutils.so.1.4
> 7f874da4f000-7f874dc4e000 ---p 00003000 08:01 11010397
> /lib/x86_64-linux-gnu/libkeyutils.so.1.4
> 7f874dc4e000-7f874dc4f000 r--p 00002000 08:01 11010397
> /lib/x86_64-linux-gnu/libkeyutils.so.1.4
> 7f874dc4f000-7f874dc50000 rw-p 00003000 08:01 11010397
> /lib/x86_64-linux-gnu/libkeyutils.so.1.4
> 7f874dc50000-7f874edbf000 r-xp 00000000 08:01 5776023
> /usr/lib/libicudata.so.48.1.1
> 7f874edbf000-7f874efbe000 ---p 0116f000 08:01 5776023
> /usr/lib/libicudata.so.48.1.1
> 7f874efbe000-7f874efbf000 r--p 0116e000 08:01 5776023
> /usr/lib/libicudata.so.48.1.1
> 7f874efbf000-7f874efc0000 rw-p 0116f000 08:01 5776023
> /usr/lib/libicudata.so.48.1.1
> 7f874efc0000-7f874f0d4000 r-xp 00000000 08:01 5782149
> /usr/lib/x86_64-linux-gnu/libgfortran.so.3.0.0
> 7f874f0d4000-7f874f2d4000 ---p 00114000 08:01 5782149
> /usr/lib/x86_64-linux-gnu/libgfortran.so.3.0.0
> 7f874f2d4000-7f874f2d5000 r--p 00114000 08:01 5782149
> /usr/lib/x86_64-linux-gnu/libgfortran.so.3.0.0
> 7f874f2d5000-7f874f2d7000 rw-p 00115000 08:01 5782149
> /usr/lib/x86_64-linux-gnu/libgfortran.so.3.0.0
> 7f874f2d7000-7f874f2da000 r-xp 00000000 08:01 11010342
> /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
> 7f874f2da000-7f874f4d9000 ---p 00003000 08:01 11010342
> /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0Aborted (core dumped)
>
>
> *Second, Debugging:*
> I created a special output file to start debugging with strace. You
> can find this file attached (grdmath.strace.out). This was generated by:
> *strace -o ~/grdmath.strace.out -t -ff /usr/src/gmt-4.5.11/bin/grdmath
> 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL
> EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH
> 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP
> 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40
> GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd*
>
>
> Let me know if you need any additional information.
>
>
>
> Kind Regards,
>
>
> *Branden Christensen*
> The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
> Take a Virtual Tour: http://www.osop.com.pa/tour
> Sign up for the OSOP mailing list:
> http://www.osop.com.pa/about/osop-mailing-list/
>
>
> On Sat, Jan 25, 2014 at 12:49 AM, Paul Wessel <***@hawaii.edu
> <mailto:***@hawaii.edu>> wrote:
>
> I've running the tests in ubuntu 13.04 and no problems. Given the
> various strange GMT errors we have seen over the last years,
> always involving ubuntu, especially their own package builds,
> makes me wonder if there is something very odd with that platform.
> Since I cannot even reproduce the problem on ubuntu (Not to
> mention other os) I am afraid the original poster will need to run
> debug on that command to see what is going on. For starters,
> could you add -V so you can see how far it gets (the order of the
> operators) before it dies. Perhaps that can give a clue.
> Otherwise build with debug flags and what line it dies in.
>
> -p
>
> On Jan 24, 2014, at 9:48 AM, Paul Wessel <***@hawaii.edu
> <mailto:***@hawaii.edu>> wrote:
>
>> Cannot reproduce on OSX. Are you able to run this in any
>> debugger to see what exactly is happening to give us a clue?
>> -p
>>
>> On Jan 24, 2014, at 2:03 AM, Marcelo Banik
>> <***@GMAIL.COM <mailto:***@GMAIL.COM>> wrote:
>>
>>> I tested in an ubuntu 13.10.
>>>
>>>
>>> Following command pass:
>>>
>>> ~/strange_behavior$ /usr/local/GMT4.5.11/bin/grdmath 1.grd DUP
>>> DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10
>>> SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30
>>> LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP
>>> DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD
>>> MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW
>>> MUL = 3.grd
>>>
>>>
>>> But if I did:
>>>
>>> ~/strange_behavior$ ln -s /usr/local/GMT4.5.11/bin .
>>>
>>> ~/strange_behavior$ bin/grdmath 1.grd DUP DUP 10 LE 0.65 MUL
>>> EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05
>>> MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20
>>> SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40
>>> LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45
>>> MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd
>>>
>>> *** buffer overflow detected ***: bin/grdmath terminated
>>>
>>>
>>> And if I use full path to grdmath 4.5.12_r10185 [64-bit], it fails:
>>>
>>> /opt/gmt/4.5.12/bin/grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH
>>> DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL
>>> 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB
>>> 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE
>>> MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45
>>> MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd
>>>
>>> *** buffer overflow detected ***: /opt/gmt/4.5.12/bin/grdmath
>>> terminated
>>>
>>>
>>> In both cases, it succeed if I use ./1.grd instead of 1.grd.
>>>
>>>
>>> Could someone more reproduce these results?
>>>
>>>
>>> Marcelo
>>>
>>>
>>>
>>>
>>> On Thu, Jan 23, 2014 at 9:12 PM, Branden
>>> Christensen<***@osop.com.pa
>>> <mailto:***@osop.com.pa>>wrote:
>>>
>>> Paul:
>>>
>>>
>>> Good evening.
>>>
>>> I originally had the buffer overflow problem when I
>>> installed GMT on Ubuntu 12.04 using "sudo apt-get install
>>> gmt". You recommended I install 4.5.11 from sources which I
>>> did using the attached script "siposg4511-1.sh". But the
>>> problems persists.
>>>
>>> In the end I hope to be able to execute grdmath by calling
>>> the full path.
>>>
>>>
>>>
>>> *Branden Christensen*
>>> The Seismo Guys Blog:
>>> http://www.osop.com.pa/blog/the-seismo-guys/
>>> Take a Virtual Tour: http://www.osop.com.pa/tour
>>> Sign up for the OSOP mailing list:
>>> http://www.osop.com.pa/about/osop-mailing-list/
>>>
>>>
>>> On Wed, Jan 22, 2014 at 7:06 PM, Paul
>>> Wessel<***@hawaii.edu <mailto:***@hawaii.edu>>wrote:
>>>
>>> Hi Brandan-
>>>
>>> I think I forgot how this started. Did you build GMT
>>> yourself or installed via ubuntu package manager? We
>>> have had lots of issues with the ubuntu-built GMT
>>> release but people who build it themselves have no
>>> issues. I know a ticket was opened with Ubuntu so maybe
>>> in 4 years it will be addressed... We suspect they used
>>> some unhealthy compiler flag but we do not know.
>>> -p
>>>
>>> On Jan 22, 2014, at 9:43 AM, Branden Christensen
>>> <***@OSOP.COM.PA
>>> <mailto:***@OSOP.COM.PA>> wrote:
>>>
>>>> Paul:
>>>>
>>>>
>>>> If you guys want access to a server running 12.04 let
>>>> me know.
>>>>
>>>>
>>>> Kind Regards,
>>>>
>>>>
>>>> *Branden Christensen*
>>>> The Seismo Guys Blog:
>>>> http://www.osop.com.pa/blog/the-seismo-guys/
>>>> Take a Virtual Tour: http://www.osop.com.pa/tour
>>>> Sign up for the OSOP mailing list:
>>>> http://www.osop.com.pa/about/osop-mailing-list/
>>>>
>>>>
>>>> On Wed, Jan 22, 2014 at 7:31 PM, Paul
>>>> Wessel<***@hawaii.edu
>>>> <mailto:***@hawaii.edu>>wrote:
>>>>
>>>> No, this should be good - I just need to reproduce
>>>> it in Ubuntu, or have some of our other guys try it
>>>> as well (Marcelo? Eduardo?)
>>>>
>>>> -p
>>>>
>>>> On Jan 22, 2014, at 9:16 AM, Branden Christensen
>>>> <***@OSOP.COM.PA
>>>> <mailto:***@OSOP.COM.PA>> wrote:
>>>>
>>>>> Paul:
>>>>>
>>>>>
>>>>> I get this:
>>>>> ***@osop-displays2:~$
>>>>> /usr/src/gmt-4.5.11/bin/grdmath -R0/10/0/10 -I1 X
>>>>> = 1.grd
>>>>> ***@osop-displays2:~$
>>>>> /usr/src/gmt-4.5.11/bin/grdmath -R0/10/0/10 -I1 X
>>>>> = 2.grd
>>>>> ***@osop-displays2:~$
>>>>> /usr/src/gmt-4.5.11/bin/grdmath 1.grd DUP DUP 10
>>>>> LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL
>>>>> EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP
>>>>> DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV
>>>>> -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH
>>>>> 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD
>>>>> MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd
>>>>> DIV EXCH POW MUL = 3.grd
>>>>> *** buffer overflow detected ***:
>>>>> /usr/src/gmt-4.5.11/bin/grdmath terminated
>>>>>
>>>>> So will you still need the original files if these
>>>>> dummy files produce the same error? Please let me
>>>>> know!
>>>>>
>>>>>
>>>>> Kind Regards,
>>>>>
>>>>>
>>>>> *Branden Christensen*
>>>>> The Seismo Guys Blog:
>>>>> http://www.osop.com.pa/blog/the-seismo-guys/
>>>>> Take a Virtual Tour: http://www.osop.com.pa/tour
>>>>> Sign up for the OSOP mailing list:
>>>>> http://www.osop.com.pa/about/osop-mailing-list/
>>>>>
>>>>>
>>>>> On Wed, Jan 22, 2014 at 7:05 PM, Paul
>>>>> Wessel<***@hawaii.edu
>>>>> <mailto:***@hawaii.edu>>wrote:
>>>>>
>>>>> Hi Brandan-
>>>>>
>>>>> Even if the input grids dont matter I will
>>>>> need to create dummy ones with the right
>>>>> dimensions since grdmath is reading them to
>>>>> detect -R -I. If I just try
>>>>>
>>>>> grdmath -R0/10/0/10 -I1 X = 1.grd
>>>>> grdmath -R0/10/0/10 -I1 X = 2.grd
>>>>> grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP
>>>>> DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10
>>>>> DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20
>>>>> GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL
>>>>> 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE
>>>>> MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL
>>>>> EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd
>>>>> DIV EXCH POW MUL = 3.grd
>>>>>
>>>>> I get no errors. Let me know if the above
>>>>> crashes for you. I will then fire up Ubuntu
>>>>> in parallels and see what happens there.
>>>>> -p
>>>>>
>>>>> On Jan 22, 2014, at 8:51 AM, Branden
>>>>> Christensen <***@OSOP.COM.PA
>>>>> <mailto:***@OSOP.COM.PA>> wrote:
>>>>>
>>>>> > Paul:
>>>>> >
>>>>> >
>>>>> > Buenas tardes.
>>>>> >
>>>>> > I would like to take up this issue again.
>>>>> >
>>>>> > The buffer overflow is caused by grdmath on
>>>>> a 64-bit 12.04 LTS Ubuntu machine running GMT
>>>>> 4.5.11.
>>>>> >
>>>>> > Here is the complete command and resulting
>>>>> error:
>>>>> >
>>>>> > /usr/src/gmt-4.5.11/bin/grdmath
>>>>> /opt/shakemap2/bin/../data/9583161/richter/pgv_rock.grd
>>>>> DUP DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT
>>>>> EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL
>>>>> 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE
>>>>> MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL
>>>>> EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30
>>>>> SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT
>>>>> 0.45 MUL ADD ADD ADD ADD 686
>>>>> /opt/shakemap2/bin/../data/9583161/output/UFVS74PC0J.grd
>>>>> DIV EXCH POW MUL =
>>>>> /opt/shakemap2/bin/../data/9583161/output/pgv.grd
>>>>> > *** buffer overflow detected ***:
>>>>> /usr/src/gmt-4.5.11/bin/grdmath terminated
>>>>> >
>>>>> > The input files do not matter. I created a
>>>>> new directory "tmp" and touched 1.grd, 2.grd
>>>>> and 3.grd. Then:
>>>>> > ***@osop-displays2:~/tmp$
>>>>> /usr/src/gmt-4.5.11/bin/grdmath 1.grd DUP DUP
>>>>> 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20
>>>>> LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD
>>>>> MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH
>>>>> 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP
>>>>> DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10
>>>>> DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL
>>>>> ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL =
>>>>> 3.grd*** buffer overflow detected ***:
>>>>> /usr/src/gmt-4.5.11/bin/grdmath terminated
>>>>> >
>>>>> >
>>>>> > Thank you for your expertise.
>>>>> >
>>>>> >
>>>>> > Kind Regards from Panama,
>>>>> >
>>>>> >
>>>>> > Branden Christensen
>>>>> > The Seismo Guys
>>>>> Blog:http://www.osop.com.pa/blog/the-seismo-guys/
>>>>> > Take a Virtual Tour:http://www.osop.com.pa/tour
>>>>> > Sign up for the OSOP mailing
>>>>> list:http://www.osop.com.pa/about/osop-mailing-list/
>>>>> >
>>>>> >
>>>>> > On Fri, Nov 29, 2013 at 9:32 AM, Paul Wessel
>>>>> <***@hawaii.edu
>>>>> <mailto:***@hawaii.edu>> wrote:
>>>>> > Brendan-
>>>>> >
>>>>> > It would be helpful if you could save the
>>>>> files used to run the grdmath command below
>>>>> which seems to be the first that crashes.
>>>>> However, that is clearly not the full grdmath
>>>>> command since there is no -R -I or gridfile on
>>>>> the input side. If I am to be of any help I
>>>>> will need an actual grdmath command line that
>>>>> crashes and all the input files that it
>>>>> requires so I can try to recreate the
>>>>> situation here.
>>>>> >
>>>>> > Cheers,
>>>>> > -p
>>>>> >
>>>>> >
>>>>> >
>>>>> > On Nov 28, 2013, at 5:54 PM, Branden
>>>>> Christensen <***@OSOP.COM.PA
>>>>> <mailto:***@OSOP.COM.PA>> wrote:
>>>>> >
>>>>> >> grdmath:
>>>>> (/opt/shakemap2/bin/../data/9583161/output/hwxDhIWuGY.xy)
>>>>> PDIST 27.47 HYPOT =
>>>>> /opt/shakemap2/bin/../data/9583161/output/D7FwNIcwDT.grd
>>>>> >> *** buffer overflow detected ***:
>>>>> /usr/lib/gmt/bin/grdmath terminated
>>>>> >
>>>>> > To unsubscribe, send the message "signoff
>>>>> gmt-help" ***@lists.hawaii.edu
>>>>> <mailto:***@lists.hawaii.edu>
>>>>> >
>>>>> > To unsubscribe, send the message "signoff
>>>>> gmt-help" ***@lists.hawaii.edu
>>>>> <mailto:***@lists.hawaii.edu>
>>>>>
>>>>> To unsubscribe, send the message "signoff
>>>>> gmt-help" ***@lists.hawaii.edu
>>>>> <mailto:***@lists.hawaii.edu>
>>>>>
>>>>>
>>>>> To unsubscribe, send the message "signoff
>>>>> gmt-help" ***@lists.hawaii.edu
>>>>> <mailto:***@lists.hawaii.edu>
>>>>
>>>> To unsubscribe, send the message "signoff gmt-help"
>>>> ***@lists.hawaii.edu
>>>> <mailto:***@lists.hawaii.edu>
>>>>
>>>>
>>>> To unsubscribe, send the message "signoff gmt-help"
>>>> ***@lists.hawaii.edu
>>>> <mailto:***@lists.hawaii.edu>
>>>
>>> To unsubscribe, send the message "signoff gmt-help"
>>> ***@lists.hawaii.edu
>>> <mailto:***@lists.hawaii.edu>
>>>
>>>
>>> To unsubscribe, send the message "signoff gmt-help"
>>> ***@lists.hawaii.edu <mailto:***@lists.hawaii.edu>
>>>
>>>
>>> To unsubscribe, send the message "signoff gmt-help"
>>> ***@lists.hawaii.edu <mailto:***@lists.hawaii.edu>
>>
>
> To unsubscribe, send the message "signoff gmt-help" to
> ***@lists.hawaii.edu <mailto:***@lists.hawaii.edu>
>
>
> To unsubscribe, send the message "signoff gmt-help" to
> ***@lists.hawaii.edu


To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
Joachim Saul
2014-01-25 20:53:34 UTC
Permalink
Paul Wessel [25.01.2014 01:49]:
> I've running the tests in ubuntu 13.04 and no problems. Given the various strange GMT errors we have seen over the last years, always involving ubuntu, especially their own package builds, makes me wonder if there is something very odd with that platform. Since I cannot even reproduce the problem on ubuntu (Not to mention other os) I am afraid the original poster will need to run debug on that command to see what is going on. For starters, could you add -V so you can see how far it gets (the order of the operators) before it dies. Perhaps that can give a clue. Otherwise build with debug flags and what line it dies in.

Concerned by Paul's comments about the Ubuntu GMT packages, I ran a few tests in order to see if I could reproduce the error.

I am using Ubuntu 13.10 32-bit and GMT 4.5.9 (which is the default in Ubuntu 13.10). No other GMT version is installed (i.e. no colliding libraries etc).

If I try hard enough I can indeed reproduce the error. Out of the different invocations proposed in this thread, the error seems to occur only under the following condition:

$ ln -s /usr/lib/gmt/bin
$ bin/grdmath ...

and even then *only* if the file names of the input grids are one character + ".grd". Naming the files "1.grd" etc. produces the error as well as naming them "x.grd" etc.

The error does *not* occur if I call grdmath as

$ grdmath ...

or

$ /usr/lib/gmt/bin/grdmath ...

Also, if I rename the input grdfiles to say g1.grd etc (as suggested by Joaquim Luis), the error is *not* produced. Quite strangely, if I just add -V to a command line that does produce the error, it suddenly works! Even more strangely, running the same command line from within gdb also works (even though in principle gdb doesn't make much sense here as the Ubuntu GMT package was compiled without debugging symbols).


At this point it was time to compile GMT 4.5.9 from source. Version 4.5.9 in order not to compare apples and oranges. In addition I made sure to end up with only one GMT installation by removing the Ubuntu package first.

$ sudo apt-get remove libgmt4 gmt

$ ./configure --prefix=$HOME/gmt --enable-debug --without-x

and so on. This time all tests work - bingo! I was about to conclude that it must be a problem with the Ubuntu package... Just for completeness, however, I once again recompiled without "--enable-debug" - with a very surprising result: *** buffer overflow detected *** again! Aarrgghhhh!!!!

In other words: the crash seems to occur only if no debugging is enabled, which is not only quite strange but obviously makes it very hard to find the error using gdb... a dilemma!


Once again I ran the same tests on my office computer with Ubuntu 12.04.4 LTS 64-bit. No re-compilation, just using the Ubuntu GMT package (which is 4.5.6) to see what happens. And even though the office computer is rather different, the buffer overflow is again produced and under exactly the same conditions, with the same possible "workarounds" like ./1.grd, -V etc.


The results so far are inconclusive. Up to now it isn't even possible to say whether the error is in the GMT code. What else to check?


@Branden: As mentioned, option -V coincidentally prevents the crash here, for unknown reasons. Could you try to include -V in your shakemap script as a quick+dirty workaround and see if it helps for the time being?


Regards
Joachim

To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
Branden Christensen
2014-01-25 21:13:55 UTC
Permalink
Joachim:


You are awesome. Thank you for spending your Saturday afternoon on this! It
does not seem that we are all necessarily able to reproduce the exact same
behavior but at least under different conditions everyone is at least
seeing the buffer overflow error message problem.

Shakemap calls grdmath in a million different places. In addition to being
called in some scripts it is called by a number of modules in src/lib of
Shakemap and in all the GMPE, IPE and GMICE modules and maybe even
elsewhere. So it is not practical at this point to include -V everywhere.


Kind Regards,


*Branden Christensen*
The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
Take a Virtual Tour: http://www.osop.com.pa/tour
Sign up for the OSOP mailing list:
http://www.osop.com.pa/about/osop-mailing-list/

To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
Branden Christensen
2014-01-25 21:28:51 UTC
Permalink
Joachim:


I followed your advice:
cd /usr/src/gmt-4.5.11
export CFLAGS="-g -O0"
sudo ./configure --enable-debug
sudo make

then I ran these again and still got the buffer overflow error:

/usr/src/gmt-4.5.11/bin/grdmath -R0/10/0/10 -I1 X = 1.grd
/usr/src/gmt-4.5.11/bin/grdmath -R0/10/0/10 -I1 X = 2.grd
/usr/src/gmt-4.5.11/bin/grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP
DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP
DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH
DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL
EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd

The backtrace looks similar to before:

***@osop-displays2:~$ /usr/src/gmt-4.5.11/bin/grdmath 1.grd DUP DUP 10 LE
0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL
0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07
MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV
-0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV
EXCH POW MUL = 3.grd
*** buffer overflow detected ***: /usr/src/gmt-4.5.11/bin/grdmath terminated
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x7f2217ae5f47]
/lib/x86_64-linux-gnu/libc.so.6(+0x109e40)[0x7f2217ae4e40]
/lib/x86_64-linux-gnu/libc.so.6(+0x108d13)[0x7f2217ae3d13]
/usr/src/gmt-4.5.11/bin/grdmath[0x41e286]
/usr/src/gmt-4.5.11/bin/grdmath[0x40cd4a]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7f22179fc76d]
/usr/src/gmt-4.5.11/bin/grdmath[0x40f409]
======= Memory map: ========
...
...


*Branden Christensen*
The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
Take a Virtual Tour: http://www.osop.com.pa/tour
Sign up for the OSOP mailing list:
http://www.osop.com.pa/about/osop-mailing-list/

To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
Joaquim Luis
2014-01-25 21:58:24 UTC
Permalink
My suggestion of using letters for grid names was only to eliminate the
possibility that the problem could in a way lie on the guessing code
that tells if an argument starting by a a number is in fact a file name
(a string).

The fact that debug builds some times work well when the non-debug
doesn't is an unfortunate and not so rare situation. Often it's due to
non-initialized variables that are initialized to 0 on release builds
but to some random number in debug mode. However, that does not seam to
be case here.

Since the whole command is a bit long I wonder if this in not something
related to the 'argv' pointer that is set by the compiler. This being
true a shorter number of grdmath operations would not show the problem.
On the other hand I'm curious to know if the issue still happens with
GMT5 (a better workaround than -V). In my quick tests I was not able to
make it happen.


Joaquim

> Joachim:
>
>
> I followed your advice:
> cd /usr/src/gmt-4.5.11
> export CFLAGS="-g -O0"
> sudo ./configure --enable-debug
> sudo make
>
> then I ran these again and still got the buffer overflow error:
>
> /usr/src/gmt-4.5.11/bin/grdmath -R0/10/0/10 -I1 X = 1.grd
> /usr/src/gmt-4.5.11/bin/grdmath -R0/10/0/10 -I1 X = 2.grd
> /usr/src/gmt-4.5.11/bin/grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP
> DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL
> EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL
> 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV
> -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd
> DIV EXCH POW MUL = 3.grd
>
> The backtrace looks similar to before:
>
> ***@osop-displays2:~$ /usr/src/gmt-4.5.11/bin/grdmath 1.grd DUP DUP
> 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10
> DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH
> 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE
> MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD
> ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd
> *** buffer overflow detected ***: /usr/src/gmt-4.5.11/bin/grdmath
> terminated
> ======= Backtrace: =========
> /lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x7f2217ae5f47]
> /lib/x86_64-linux-gnu/libc.so.6(+0x109e40)[0x7f2217ae4e40]
> /lib/x86_64-linux-gnu/libc.so.6(+0x108d13)[0x7f2217ae3d13]
> /usr/src/gmt-4.5.11/bin/grdmath[0x41e286]
> /usr/src/gmt-4.5.11/bin/grdmath[0x40cd4a]
> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7f22179fc76d]
> /usr/src/gmt-4.5.11/bin/grdmath[0x40f409]
> ======= Memory map: ========
> ...
> ...
>
>
> *Branden Christensen*
> The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
> Take a Virtual Tour: http://www.osop.com.pa/tour
> Sign up for the OSOP mailing list:
> http://www.osop.com.pa/about/osop-mailing-list/
>
>
> To unsubscribe, send the message "signoff gmt-help" to
> ***@lists.hawaii.edu


To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
J.J. Green
2014-01-22 19:54:14 UTC
Permalink
Hi,

Sounds like a flakey GMT in Ubuntu, see earlier messages
on this list. On

***@flounder ~ $ cat /etc/issue
Linux Mint 16 Petra \n \l

with

***@flounder ~ $ apt-cache policy gmt
gmt:
Installed: 4.5.7-2ubuntu1
Candidate: 4.5.7-2ubuntu1
Package pin: 4.5.7-2ubuntu1
Version table:
4.5.9-1 1001
500 http://archive.ubuntu.com/ubuntu/ saucy/universe amd64
Packages
*** 4.5.7-2ubuntu1 1001
500 http://archive.ubuntu.com/ubuntu/ raring/universe amd64
Packages
100 /var/lib/dpkg/status

This achieved with

***@flounder ~ $ cat /etc/apt/preferences.d/pin-gmt4
Package: gmt
Pin: release n=raring*
Pin-Priority: 1001

Package: gmt-doc
Pin: release v=13.04, l=Ubuntu
Pin-Priority: 1001

Package: libgmt4
Pin: release v=13.04, l=Ubuntu
Pin-Priority: 1001

Package: *
Pin: release v=13.04, l=Ubuntu
Pin-Priority: -1

I get no error for

***@flounder ~ $ GMT grdmath -R0/10/0/10 -I1 X = 1.grd
***@flounder ~ $ GMT grdmath -R0/10/0/10 -I1 X = 2.grd
***@flounder ~ $ GMT grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP
DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL
EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60
ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08
MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH
POW MUL = 3.grd

and

***@flounder ~ $ ls -l *.grd
-rw-r--r-- 1 jjg jjg 1240 Jan 22 19:41 1.grd
-rw-r--r-- 1 jjg jjg 1240 Jan 22 19:41 2.grd
-rw-r--r-- 1 jjg jjg 1508 Jan 22 19:42 3.grd

perhaps you could revert to 4.5.7 too

Cheers

Jim
--
J.J. Green, Seaview Sensing Ltd.,
http://seaviewsensing.com

To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
Marcelo Banik
2014-01-22 19:59:23 UTC
Permalink
Hi,

It works fine at my ubuntu 12.04 LTS 64bits GMT 4.5.11 installed from
source code.

Regards,

Marcelo



On Wed, Jan 22, 2014 at 5:54 PM, J.J. Green <***@seaviewsensing.com>wrote:

> Hi,
>
> Sounds like a flakey GMT in Ubuntu, see earlier messages
> on this list. On
>
> ***@flounder ~ $ cat /etc/issue
> Linux Mint 16 Petra \n \l
>
> with
>
> ***@flounder ~ $ apt-cache policy gmt
> gmt:
> Installed: 4.5.7-2ubuntu1
> Candidate: 4.5.7-2ubuntu1
> Package pin: 4.5.7-2ubuntu1
> Version table:
> 4.5.9-1 1001
> 500 http://archive.ubuntu.com/ubuntu/ saucy/universe amd64
> Packages
> *** 4.5.7-2ubuntu1 1001
> 500 http://archive.ubuntu.com/ubuntu/ raring/universe amd64
> Packages
> 100 /var/lib/dpkg/status
>
> This achieved with
>
> ***@flounder ~ $ cat /etc/apt/preferences.d/pin-gmt4
> Package: gmt
> Pin: release n=raring*
> Pin-Priority: 1001
>
> Package: gmt-doc
> Pin: release v=13.04, l=Ubuntu
> Pin-Priority: 1001
>
> Package: libgmt4
> Pin: release v=13.04, l=Ubuntu
> Pin-Priority: 1001
>
> Package: *
> Pin: release v=13.04, l=Ubuntu
> Pin-Priority: -1
>
> I get no error for
>
> ***@flounder ~ $ GMT grdmath -R0/10/0/10 -I1 X = 1.grd
> ***@flounder ~ $ GMT grdmath -R0/10/0/10 -I1 X = 2.grd
> ***@flounder ~ $ GMT grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP
> DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP
> DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH
> DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL
> EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd
>
> and
>
> ***@flounder ~ $ ls -l *.grd
> -rw-r--r-- 1 jjg jjg 1240 Jan 22 19:41 1.grd
> -rw-r--r-- 1 jjg jjg 1240 Jan 22 19:41 2.grd
> -rw-r--r-- 1 jjg jjg 1508 Jan 22 19:42 3.grd
>
> perhaps you could revert to 4.5.7 too
>
> Cheers
>
> Jim
> --
> J.J. Green, Seaview Sensing Ltd.,
> http://seaviewsensing.com
>
>
> To unsubscribe, send the message "signoff gmt-help" to
> ***@lists.hawaii.edu
>

To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
Branden Christensen
2014-01-23 15:08:14 UTC
Permalink
Hi all:


Marcelo, thank you for taking the time to try that.

I just created a new, virgin virtual machine with 12.04:

***@shakemap:~$ uname -a
Linux shakemap 3.5.0-23-generic #35~precise1-Ubuntu SMP Fri Jan 25 17:13:26
UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
***@shakemap:~$ cat /etc/issue
Ubuntu 12.04.2 LTS \n \l

I then installed GMT 4.5.11 from source.

And then I attempted:

***@shakemap:~$ /usr/src/gmt-4.5.11/bin/grdmath -R0/10/0/10 -I1 X = 1.grd
***@shakemap:~$ /usr/src/gmt-4.5.11/bin/grdmath -R0/10/0/10 -I1 X = 2.grd
***@shakemap:~$ /usr/src/gmt-4.5.11/bin/grdmath 1.grd DUP DUP 10 LE 0.65
MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65
ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL
0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08
MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW
MUL = 3.grd
*** buffer overflow detected ***: /usr/src/gmt-4.5.11/bin/grdmath terminated

So I am getting the same results....


Kind Regards,



*Branden Christensen*
The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
Take a Virtual Tour: http://www.osop.com.pa/tour
Sign up for the OSOP mailing list:
http://www.osop.com.pa/about/osop-mailing-list/


On Wed, Jan 22, 2014 at 7:59 PM, Marcelo Banik <***@gmail.com>wrote:

> Hi,
>
> It works fine at my ubuntu 12.04 LTS 64bits GMT 4.5.11 installed from
> source code.
>
> Regards,
>
> Marcelo
>
>
>
> On Wed, Jan 22, 2014 at 5:54 PM, J.J. Green <***@seaviewsensing.com>wrote:
>
>> Hi,
>>
>> Sounds like a flakey GMT in Ubuntu, see earlier messages
>> on this list. On
>>
>> ***@flounder ~ $ cat /etc/issue
>> Linux Mint 16 Petra \n \l
>>
>> with
>>
>> ***@flounder ~ $ apt-cache policy gmt
>> gmt:
>> Installed: 4.5.7-2ubuntu1
>> Candidate: 4.5.7-2ubuntu1
>> Package pin: 4.5.7-2ubuntu1
>> Version table:
>> 4.5.9-1 1001
>> 500 http://archive.ubuntu.com/ubuntu/ saucy/universe amd64
>> Packages
>> *** 4.5.7-2ubuntu1 1001
>> 500 http://archive.ubuntu.com/ubuntu/ raring/universe amd64
>> Packages
>> 100 /var/lib/dpkg/status
>>
>> This achieved with
>>
>> ***@flounder ~ $ cat /etc/apt/preferences.d/pin-gmt4
>> Package: gmt
>> Pin: release n=raring*
>> Pin-Priority: 1001
>>
>> Package: gmt-doc
>> Pin: release v=13.04, l=Ubuntu
>> Pin-Priority: 1001
>>
>> Package: libgmt4
>> Pin: release v=13.04, l=Ubuntu
>> Pin-Priority: 1001
>>
>> Package: *
>> Pin: release v=13.04, l=Ubuntu
>> Pin-Priority: -1
>>
>> I get no error for
>>
>> ***@flounder ~ $ GMT grdmath -R0/10/0/10 -I1 X = 1.grd
>> ***@flounder ~ $ GMT grdmath -R0/10/0/10 -I1 X = 2.grd
>> ***@flounder ~ $ GMT grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP
>> DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP
>> DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH
>> DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL
>> EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd
>>
>> and
>>
>> ***@flounder ~ $ ls -l *.grd
>> -rw-r--r-- 1 jjg jjg 1240 Jan 22 19:41 1.grd
>> -rw-r--r-- 1 jjg jjg 1240 Jan 22 19:41 2.grd
>> -rw-r--r-- 1 jjg jjg 1508 Jan 22 19:42 3.grd
>>
>> perhaps you could revert to 4.5.7 too
>>
>> Cheers
>>
>> Jim
>> --
>> J.J. Green, Seaview Sensing Ltd.,
>> http://seaviewsensing.com
>>
>>
>> To unsubscribe, send the message "signoff gmt-help" to
>> ***@lists.hawaii.edu
>>
>
> To unsubscribe, send the message "signoff gmt-help" to
> ***@lists.hawaii.edu
>

To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
Marcelo Banik
2014-01-23 16:07:06 UTC
Permalink
Hi Branden,


Here I have:

$ uname -a

Linux acer 3.2.0-41-generic #66-Ubuntu SMP Thu Apr 25 03:27:11 UTC 2013
x86_64 x86_64 x86_64 GNU/Linux


$ cat /etc/issue

Ubuntu 12.04.4 LTS \n \l


It isn't identical, but I didn't expect that these minor differences could
be an issue.


From source files, I get:

$ md5sum *.bz2

fd4abdbbc5cb48087a12a4c762b87123 gmt-4.5.11-non-gpl-src.tar.bz2

e51a8827d9b0ce3f36cfe6be01f24931 gmt-4.5.11-src.tar.bz2


Did you get the same values?


Could you send your GMT4param.txt file? I could try to install here using
it, just to try to reproduce your results. I don't expect that it could
change any thing, but I don't know what to do.


I only get a “buffer overflow detected” when I accidentally included
option -Vd, but it don't appear to be your case.


Regards,


Marcelo




On Thu, Jan 23, 2014 at 1:08 PM, Branden Christensen <
***@osop.com.pa> wrote:

> Hi all:
>
>
> Marcelo, thank you for taking the time to try that.
>
> I just created a new, virgin virtual machine with 12.04:
>
> ***@shakemap:~$ uname -a
> Linux shakemap 3.5.0-23-generic #35~precise1-Ubuntu SMP Fri Jan 25
> 17:13:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
> ***@shakemap:~$ cat /etc/issue
> Ubuntu 12.04.2 LTS \n \l
>
> I then installed GMT 4.5.11 from source.
>
> And then I attempted:
>
> ***@shakemap:~$ /usr/src/gmt-4.5.11/bin/grdmath -R0/10/0/10 -I1 X = 1.grd
> ***@shakemap:~$ /usr/src/gmt-4.5.11/bin/grdmath -R0/10/0/10 -I1 X = 2.grd
> ***@shakemap:~$ /usr/src/gmt-4.5.11/bin/grdmath 1.grd DUP DUP 10 LE
> 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL
> 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07
> MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV
> -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV
> EXCH POW MUL = 3.grd
> *** buffer overflow detected ***: /usr/src/gmt-4.5.11/bin/grdmath
> terminated
>
> So I am getting the same results....
>
>
> Kind Regards,
>
>
>
> *Branden Christensen*
> The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
> Take a Virtual Tour: http://www.osop.com.pa/tour
> Sign up for the OSOP mailing list:
> http://www.osop.com.pa/about/osop-mailing-list/
>
>
> On Wed, Jan 22, 2014 at 7:59 PM, Marcelo Banik <***@gmail.com>wrote:
>
>> Hi,
>>
>> It works fine at my ubuntu 12.04 LTS 64bits GMT 4.5.11 installed from
>> source code.
>>
>> Regards,
>>
>> Marcelo
>>
>>
>>
>> On Wed, Jan 22, 2014 at 5:54 PM, J.J. Green <***@seaviewsensing.com
>> > wrote:
>>
>>> Hi,
>>>
>>> Sounds like a flakey GMT in Ubuntu, see earlier messages
>>> on this list. On
>>>
>>> ***@flounder ~ $ cat /etc/issue
>>> Linux Mint 16 Petra \n \l
>>>
>>> with
>>>
>>> ***@flounder ~ $ apt-cache policy gmt
>>> gmt:
>>> Installed: 4.5.7-2ubuntu1
>>> Candidate: 4.5.7-2ubuntu1
>>> Package pin: 4.5.7-2ubuntu1
>>> Version table:
>>> 4.5.9-1 1001
>>> 500 http://archive.ubuntu.com/ubuntu/ saucy/universe amd64
>>> Packages
>>> *** 4.5.7-2ubuntu1 1001
>>> 500 http://archive.ubuntu.com/ubuntu/ raring/universe amd64
>>> Packages
>>> 100 /var/lib/dpkg/status
>>>
>>> This achieved with
>>>
>>> ***@flounder ~ $ cat /etc/apt/preferences.d/pin-gmt4
>>> Package: gmt
>>> Pin: release n=raring*
>>> Pin-Priority: 1001
>>>
>>> Package: gmt-doc
>>> Pin: release v=13.04, l=Ubuntu
>>> Pin-Priority: 1001
>>>
>>> Package: libgmt4
>>> Pin: release v=13.04, l=Ubuntu
>>> Pin-Priority: 1001
>>>
>>> Package: *
>>> Pin: release v=13.04, l=Ubuntu
>>> Pin-Priority: -1
>>>
>>> I get no error for
>>>
>>> ***@flounder ~ $ GMT grdmath -R0/10/0/10 -I1 X = 1.grd
>>> ***@flounder ~ $ GMT grdmath -R0/10/0/10 -I1 X = 2.grd
>>> ***@flounder ~ $ GMT grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP
>>> DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH
>>> DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL
>>> EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD
>>> MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd
>>>
>>> and
>>>
>>> ***@flounder ~ $ ls -l *.grd
>>> -rw-r--r-- 1 jjg jjg 1240 Jan 22 19:41 1.grd
>>> -rw-r--r-- 1 jjg jjg 1240 Jan 22 19:41 2.grd
>>> -rw-r--r-- 1 jjg jjg 1508 Jan 22 19:42 3.grd
>>>
>>> perhaps you could revert to 4.5.7 too
>>>
>>> Cheers
>>>
>>> Jim
>>> --
>>> J.J. Green, Seaview Sensing Ltd.,
>>> http://seaviewsensing.com
>>>
>>>
>>> To unsubscribe, send the message "signoff gmt-help" to
>>> ***@lists.hawaii.edu
>>>
>>
>> To unsubscribe, send the message "signoff gmt-help" to
>> ***@lists.hawaii.edu
>>
>
> To unsubscribe, send the message "signoff gmt-help" to
> ***@lists.hawaii.edu
>

To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
Branden Christensen
2014-01-23 16:36:02 UTC
Permalink
Marcelo:


I also get:

e51a8827d9b0ce3f36cfe6be01f24931 gmt-4.5.11-src.tar.bz2

Attached is the script I used to install GMT 4.5.11. Unpack this tgz file,
cd to usr/src and execute "siposg4511-1.sh".


Kind Regards,


*Branden Christensen*
The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
Take a Virtual Tour: http://www.osop.com.pa/tour
Sign up for the OSOP mailing list:
http://www.osop.com.pa/about/osop-mailing-list/


On Thu, Jan 23, 2014 at 4:07 PM, Marcelo Banik <***@gmail.com>wrote:

> Hi Branden,
>
>
> Here I have:
>
> $ uname -a
>
> Linux acer 3.2.0-41-generic #66-Ubuntu SMP Thu Apr 25 03:27:11 UTC 2013
> x86_64 x86_64 x86_64 GNU/Linux
>
>
> $ cat /etc/issue
>
> Ubuntu 12.04.4 LTS \n \l
>
>
> It isn't identical, but I didn't expect that these minor differences
> could be an issue.
>
>
> From source files, I get:
>
> $ md5sum *.bz2
>
> fd4abdbbc5cb48087a12a4c762b87123 gmt-4.5.11-non-gpl-src.tar.bz2
>
> e51a8827d9b0ce3f36cfe6be01f24931 gmt-4.5.11-src.tar.bz2
>
>
> Did you get the same values?
>
>
> Could you send your GMT4param.txt file? I could try to install here
> using it, just to try to reproduce your results. I don't expect that it
> could change any thing, but I don't know what to do.
>
>
> I only get a “buffer overflow detected” when I accidentally included
> option -Vd, but it don't appear to be your case.
>
>
> Regards,
>
>
> Marcelo
>
>
>
>
> On Thu, Jan 23, 2014 at 1:08 PM, Branden Christensen <
> ***@osop.com.pa> wrote:
>
>> Hi all:
>>
>>
>> Marcelo, thank you for taking the time to try that.
>>
>> I just created a new, virgin virtual machine with 12.04:
>>
>> ***@shakemap:~$ uname -a
>> Linux shakemap 3.5.0-23-generic #35~precise1-Ubuntu SMP Fri Jan 25
>> 17:13:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
>> ***@shakemap:~$ cat /etc/issue
>> Ubuntu 12.04.2 LTS \n \l
>>
>> I then installed GMT 4.5.11 from source.
>>
>> And then I attempted:
>>
>> ***@shakemap:~$ /usr/src/gmt-4.5.11/bin/grdmath -R0/10/0/10 -I1 X =
>> 1.grd
>> ***@shakemap:~$ /usr/src/gmt-4.5.11/bin/grdmath -R0/10/0/10 -I1 X =
>> 2.grd
>> ***@shakemap:~$ /usr/src/gmt-4.5.11/bin/grdmath 1.grd DUP DUP 10 LE
>> 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL
>> 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07
>> MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV
>> -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV
>> EXCH POW MUL = 3.grd
>> *** buffer overflow detected ***: /usr/src/gmt-4.5.11/bin/grdmath
>> terminated
>>
>> So I am getting the same results....
>>
>>
>> Kind Regards,
>>
>>
>>
>> *Branden Christensen*
>> The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
>> Take a Virtual Tour: http://www.osop.com.pa/tour
>> Sign up for the OSOP mailing list:
>> http://www.osop.com.pa/about/osop-mailing-list/
>>
>>
>> On Wed, Jan 22, 2014 at 7:59 PM, Marcelo Banik <***@gmail.com>wrote:
>>
>>> Hi,
>>>
>>> It works fine at my ubuntu 12.04 LTS 64bits GMT 4.5.11 installed from
>>> source code.
>>>
>>> Regards,
>>>
>>> Marcelo
>>>
>>>
>>>
>>> On Wed, Jan 22, 2014 at 5:54 PM, J.J. Green <
>>> ***@seaviewsensing.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> Sounds like a flakey GMT in Ubuntu, see earlier messages
>>>> on this list. On
>>>>
>>>> ***@flounder ~ $ cat /etc/issue
>>>> Linux Mint 16 Petra \n \l
>>>>
>>>> with
>>>>
>>>> ***@flounder ~ $ apt-cache policy gmt
>>>> gmt:
>>>> Installed: 4.5.7-2ubuntu1
>>>> Candidate: 4.5.7-2ubuntu1
>>>> Package pin: 4.5.7-2ubuntu1
>>>> Version table:
>>>> 4.5.9-1 1001
>>>> 500 http://archive.ubuntu.com/ubuntu/ saucy/universe amd64
>>>> Packages
>>>> *** 4.5.7-2ubuntu1 1001
>>>> 500 http://archive.ubuntu.com/ubuntu/ raring/universe amd64
>>>> Packages
>>>> 100 /var/lib/dpkg/status
>>>>
>>>> This achieved with
>>>>
>>>> ***@flounder ~ $ cat /etc/apt/preferences.d/pin-gmt4
>>>> Package: gmt
>>>> Pin: release n=raring*
>>>> Pin-Priority: 1001
>>>>
>>>> Package: gmt-doc
>>>> Pin: release v=13.04, l=Ubuntu
>>>> Pin-Priority: 1001
>>>>
>>>> Package: libgmt4
>>>> Pin: release v=13.04, l=Ubuntu
>>>> Pin-Priority: 1001
>>>>
>>>> Package: *
>>>> Pin: release v=13.04, l=Ubuntu
>>>> Pin-Priority: -1
>>>>
>>>> I get no error for
>>>>
>>>> ***@flounder ~ $ GMT grdmath -R0/10/0/10 -I1 X = 1.grd
>>>> ***@flounder ~ $ GMT grdmath -R0/10/0/10 -I1 X = 2.grd
>>>> ***@flounder ~ $ GMT grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP
>>>> DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH
>>>> DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL
>>>> EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD
>>>> MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd
>>>>
>>>> and
>>>>
>>>> ***@flounder ~ $ ls -l *.grd
>>>> -rw-r--r-- 1 jjg jjg 1240 Jan 22 19:41 1.grd
>>>> -rw-r--r-- 1 jjg jjg 1240 Jan 22 19:41 2.grd
>>>> -rw-r--r-- 1 jjg jjg 1508 Jan 22 19:42 3.grd
>>>>
>>>> perhaps you could revert to 4.5.7 too
>>>>
>>>> Cheers
>>>>
>>>> Jim
>>>> --
>>>> J.J. Green, Seaview Sensing Ltd.,
>>>> http://seaviewsensing.com
>>>>
>>>>
>>>> To unsubscribe, send the message "signoff gmt-help" to
>>>> ***@lists.hawaii.edu
>>>>
>>>
>>> To unsubscribe, send the message "signoff gmt-help" to
>>> ***@lists.hawaii.edu
>>>
>>
>> To unsubscribe, send the message "signoff gmt-help" to
>> ***@lists.hawaii.edu
>>
>
> To unsubscribe, send the message "signoff gmt-help" to
> ***@lists.hawaii.edu
>

To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
Marcelo Banik
2014-01-23 18:02:44 UTC
Permalink
Hi Branden,


I didn't execute script siposg4511-1.sh because:

# dirty link creation to find gdal.h

rm -R /usr/local/include

ln -s /usr/include/gdal /usr/local/include


Appears to be much aggressive to my system.


I decide to use the original install_gmt4.sh script, without your minor
modification, and some minimal modification in your GMT4param.txt to fit my
system configuration (see attached file). Then from a directory with files:

$ ls

gmt-4.5.11-src.tar.bz2 GMT4param.txt gshhg-gmt-nc4-2.2.4.tar.gz
install_gmt4.sh


I run the command:

$ sudo sh -c "sh install_gmt4.sh GMT4param.txt" > install.log 2>&1


And did the test:

$ /usr/src/gmt-4.5.11/bin/grdmath -R0/10/0/10 -I1 X = 1.grd

$ /usr/src/gmt-4.5.11/bin/grdmath -R0/10/0/10 -I1 X = 2.grd

$ /usr/src/gmt-4.5.11/bin/grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP
DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP
DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH
DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL
EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd

*** buffer overflow detected ***: /usr/src/gmt-4.5.11/bin/grdmath terminated


Finally I get your error!


Then I did:

$ export PATH=$PATH:/usr/src/gmt-4.5.11/bin

$ which grdmath

/usr/src/gmt-4.5.11/bin/grdmath


$ grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE
MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH
30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT
EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45
MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd


And now it works.


For some unknown reason, it fails if an explicit path is used. I don't
have this problem with my gmt4.5.11 installation. I'm not sure if it have
some relation with your choice to not use shared lib. I could test it
later, but first, let us now if including /usr/src/gmt-4.5.11/bin to your
PATH works.


Regards,


Marcelo




On Thu, Jan 23, 2014 at 2:36 PM, Branden Christensen <
***@osop.com.pa> wrote:

> Marcelo:
>
>
> I also get:
>
> e51a8827d9b0ce3f36cfe6be01f24931 gmt-4.5.11-src.tar.bz2
>
> Attached is the script I used to install GMT 4.5.11. Unpack this tgz file,
> cd to usr/src and execute "siposg4511-1.sh".
>
>
> Kind Regards,
>
>
> *Branden Christensen*
> The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
> Take a Virtual Tour: http://www.osop.com.pa/tour
> Sign up for the OSOP mailing list:
> http://www.osop.com.pa/about/osop-mailing-list/
>
>
> On Thu, Jan 23, 2014 at 4:07 PM, Marcelo Banik <***@gmail.com>wrote:
>
>> Hi Branden,
>>
>>
>> Here I have:
>>
>> $ uname -a
>>
>> Linux acer 3.2.0-41-generic #66-Ubuntu SMP Thu Apr 25 03:27:11 UTC 2013
>> x86_64 x86_64 x86_64 GNU/Linux
>>
>>
>> $ cat /etc/issue
>>
>> Ubuntu 12.04.4 LTS \n \l
>>
>>
>> It isn't identical, but I didn't expect that these minor differences
>> could be an issue.
>>
>>
>> From source files, I get:
>>
>> $ md5sum *.bz2
>>
>> fd4abdbbc5cb48087a12a4c762b87123 gmt-4.5.11-non-gpl-src.tar.bz2
>>
>> e51a8827d9b0ce3f36cfe6be01f24931 gmt-4.5.11-src.tar.bz2
>>
>>
>> Did you get the same values?
>>
>>
>> Could you send your GMT4param.txt file? I could try to install here
>> using it, just to try to reproduce your results. I don't expect that it
>> could change any thing, but I don't know what to do.
>>
>>
>> I only get a “buffer overflow detected” when I accidentally included
>> option -Vd, but it don't appear to be your case.
>>
>>
>> Regards,
>>
>>
>> Marcelo
>>
>>
>>
>>
>> On Thu, Jan 23, 2014 at 1:08 PM, Branden Christensen <
>> ***@osop.com.pa> wrote:
>>
>>> Hi all:
>>>
>>>
>>> Marcelo, thank you for taking the time to try that.
>>>
>>> I just created a new, virgin virtual machine with 12.04:
>>>
>>> ***@shakemap:~$ uname -a
>>> Linux shakemap 3.5.0-23-generic #35~precise1-Ubuntu SMP Fri Jan 25
>>> 17:13:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
>>> ***@shakemap:~$ cat /etc/issue
>>> Ubuntu 12.04.2 LTS \n \l
>>>
>>> I then installed GMT 4.5.11 from source.
>>>
>>> And then I attempted:
>>>
>>> ***@shakemap:~$ /usr/src/gmt-4.5.11/bin/grdmath -R0/10/0/10 -I1 X =
>>> 1.grd
>>> ***@shakemap:~$ /usr/src/gmt-4.5.11/bin/grdmath -R0/10/0/10 -I1 X =
>>> 2.grd
>>> ***@shakemap:~$ /usr/src/gmt-4.5.11/bin/grdmath 1.grd DUP DUP 10 LE
>>> 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL
>>> 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07
>>> MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV
>>> -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV
>>> EXCH POW MUL = 3.grd
>>> *** buffer overflow detected ***: /usr/src/gmt-4.5.11/bin/grdmath
>>> terminated
>>>
>>> So I am getting the same results....
>>>
>>>
>>> Kind Regards,
>>>
>>>
>>>
>>> *Branden Christensen*
>>> The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
>>> Take a Virtual Tour: http://www.osop.com.pa/tour
>>> Sign up for the OSOP mailing list:
>>> http://www.osop.com.pa/about/osop-mailing-list/
>>>
>>>
>>> On Wed, Jan 22, 2014 at 7:59 PM, Marcelo Banik <***@gmail.com>wrote:
>>>
>>>> Hi,
>>>>
>>>> It works fine at my ubuntu 12.04 LTS 64bits GMT 4.5.11 installed from
>>>> source code.
>>>>
>>>> Regards,
>>>>
>>>> Marcelo
>>>>
>>>>
>>>>
>>>> On Wed, Jan 22, 2014 at 5:54 PM, J.J. Green <
>>>> ***@seaviewsensing.com> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> Sounds like a flakey GMT in Ubuntu, see earlier messages
>>>>> on this list. On
>>>>>
>>>>> ***@flounder ~ $ cat /etc/issue
>>>>> Linux Mint 16 Petra \n \l
>>>>>
>>>>> with
>>>>>
>>>>> ***@flounder ~ $ apt-cache policy gmt
>>>>> gmt:
>>>>> Installed: 4.5.7-2ubuntu1
>>>>> Candidate: 4.5.7-2ubuntu1
>>>>> Package pin: 4.5.7-2ubuntu1
>>>>> Version table:
>>>>> 4.5.9-1 1001
>>>>> 500 http://archive.ubuntu.com/ubuntu/ saucy/universe amd64
>>>>> Packages
>>>>> *** 4.5.7-2ubuntu1 1001
>>>>> 500 http://archive.ubuntu.com/ubuntu/ raring/universe amd64
>>>>> Packages
>>>>> 100 /var/lib/dpkg/status
>>>>>
>>>>> This achieved with
>>>>>
>>>>> ***@flounder ~ $ cat /etc/apt/preferences.d/pin-gmt4
>>>>> Package: gmt
>>>>> Pin: release n=raring*
>>>>> Pin-Priority: 1001
>>>>>
>>>>> Package: gmt-doc
>>>>> Pin: release v=13.04, l=Ubuntu
>>>>> Pin-Priority: 1001
>>>>>
>>>>> Package: libgmt4
>>>>> Pin: release v=13.04, l=Ubuntu
>>>>> Pin-Priority: 1001
>>>>>
>>>>> Package: *
>>>>> Pin: release v=13.04, l=Ubuntu
>>>>> Pin-Priority: -1
>>>>>
>>>>> I get no error for
>>>>>
>>>>> ***@flounder ~ $ GMT grdmath -R0/10/0/10 -I1 X = 1.grd
>>>>> ***@flounder ~ $ GMT grdmath -R0/10/0/10 -I1 X = 2.grd
>>>>> ***@flounder ~ $ GMT grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP
>>>>> DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH
>>>>> DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL
>>>>> EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD
>>>>> MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd
>>>>>
>>>>> and
>>>>>
>>>>> ***@flounder ~ $ ls -l *.grd
>>>>> -rw-r--r-- 1 jjg jjg 1240 Jan 22 19:41 1.grd
>>>>> -rw-r--r-- 1 jjg jjg 1240 Jan 22 19:41 2.grd
>>>>> -rw-r--r-- 1 jjg jjg 1508 Jan 22 19:42 3.grd
>>>>>
>>>>> perhaps you could revert to 4.5.7 too
>>>>>
>>>>> Cheers
>>>>>
>>>>> Jim
>>>>> --
>>>>> J.J. Green, Seaview Sensing Ltd.,
>>>>> http://seaviewsensing.com
>>>>>
>>>>>
>>>>> To unsubscribe, send the message "signoff gmt-help" to
>>>>> ***@lists.hawaii.edu
>>>>>
>>>>
>>>> To unsubscribe, send the message "signoff gmt-help" to
>>>> ***@lists.hawaii.edu
>>>>
>>>
>>> To unsubscribe, send the message "signoff gmt-help" to
>>> ***@lists.hawaii.edu
>>>
>>
>> To unsubscribe, send the message "signoff gmt-help" to
>> ***@lists.hawaii.edu
>>
>
> To unsubscribe, send the message "signoff gmt-help" to
> ***@lists.hawaii.edu
>

To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
Branden Christensen
2014-01-23 19:04:44 UTC
Permalink
Marcelo:


Excellent. We are making progress!


After running "export PATH=$PATH:/usr/src/gmt-4.5.11/bin" I get the same as
you:

***@osop-displays2:~$ grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP
DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP
DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH
DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL
EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd
***@osop-displays2:~$ /usr/src/gmt-4.5.11/bin/grdmath 1.grd DUP DUP 10 LE
0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL
0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07
MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV
-0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV
EXCH POW MUL = 3.grd
*** buffer overflow detected ***: /usr/src/gmt-4.5.11/bin/grdmath terminated

I am relying on another program that calls grdmath using an explicit path.
So is there a fix to make it work with the explicit path?

Thanks again!


Kind Regards,


*Branden Christensen*
The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
Take a Virtual Tour: http://www.osop.com.pa/tour
Sign up for the OSOP mailing list:
http://www.osop.com.pa/about/osop-mailing-list/


On Thu, Jan 23, 2014 at 6:02 PM, Marcelo Banik <***@gmail.com>wrote:

> Hi Branden,
>
>
> I didn't execute script siposg4511-1.sh because:
>
> # dirty link creation to find gdal.h
>
> rm -R /usr/local/include
>
> ln -s /usr/include/gdal /usr/local/include
>
>
> Appears to be much aggressive to my system.
>
>
> I decide to use the original install_gmt4.sh script, without your minor
> modification, and some minimal modification in your GMT4param.txt to fit my
> system configuration (see attached file). Then from a directory with files:
>
> $ ls
>
> gmt-4.5.11-src.tar.bz2 GMT4param.txt gshhg-gmt-nc4-2.2.4.tar.gz
> install_gmt4.sh
>
>
> I run the command:
>
> $ sudo sh -c "sh install_gmt4.sh GMT4param.txt" > install.log 2>&1
>
>
> And did the test:
>
> $ /usr/src/gmt-4.5.11/bin/grdmath -R0/10/0/10 -I1 X = 1.grd
>
> $ /usr/src/gmt-4.5.11/bin/grdmath -R0/10/0/10 -I1 X = 2.grd
>
> $ /usr/src/gmt-4.5.11/bin/grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP
> DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH
> DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL
> EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD
> MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd
>
> *** buffer overflow detected ***: /usr/src/gmt-4.5.11/bin/grdmath
> terminated
>
>
> Finally I get your error!
>
>
> Then I did:
>
> $ export PATH=$PATH:/usr/src/gmt-4.5.11/bin
>
> $ which grdmath
>
> /usr/src/gmt-4.5.11/bin/grdmath
>
>
> $ grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE
> MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH
> 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT
> EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45
> MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd
>
>
> And now it works.
>
>
> For some unknown reason, it fails if an explicit path is used. I don't
> have this problem with my gmt4.5.11 installation. I'm not sure if it have
> some relation with your choice to not use shared lib. I could test it
> later, but first, let us now if including /usr/src/gmt-4.5.11/bin to your
> PATH works.
>
>
> Regards,
>
>
> Marcelo
>
>
>
>
> On Thu, Jan 23, 2014 at 2:36 PM, Branden Christensen <
> ***@osop.com.pa> wrote:
>
>> Marcelo:
>>
>>
>> I also get:
>>
>> e51a8827d9b0ce3f36cfe6be01f24931 gmt-4.5.11-src.tar.bz2
>>
>> Attached is the script I used to install GMT 4.5.11. Unpack this tgz
>> file, cd to usr/src and execute "siposg4511-1.sh".
>>
>>
>> Kind Regards,
>>
>>
>> *Branden Christensen*
>> The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
>> Take a Virtual Tour: http://www.osop.com.pa/tour
>> Sign up for the OSOP mailing list:
>> http://www.osop.com.pa/about/osop-mailing-list/
>>
>>
>> On Thu, Jan 23, 2014 at 4:07 PM, Marcelo Banik <***@gmail.com>wrote:
>>
>>> Hi Branden,
>>>
>>>
>>> Here I have:
>>>
>>> $ uname -a
>>>
>>> Linux acer 3.2.0-41-generic #66-Ubuntu SMP Thu Apr 25 03:27:11 UTC 2013
>>> x86_64 x86_64 x86_64 GNU/Linux
>>>
>>>
>>> $ cat /etc/issue
>>>
>>> Ubuntu 12.04.4 LTS \n \l
>>>
>>>
>>> It isn't identical, but I didn't expect that these minor differences
>>> could be an issue.
>>>
>>>
>>> From source files, I get:
>>>
>>> $ md5sum *.bz2
>>>
>>> fd4abdbbc5cb48087a12a4c762b87123 gmt-4.5.11-non-gpl-src.tar.bz2
>>>
>>> e51a8827d9b0ce3f36cfe6be01f24931 gmt-4.5.11-src.tar.bz2
>>>
>>>
>>> Did you get the same values?
>>>
>>>
>>> Could you send your GMT4param.txt file? I could try to install here
>>> using it, just to try to reproduce your results. I don't expect that it
>>> could change any thing, but I don't know what to do.
>>>
>>>
>>> I only get a “buffer overflow detected” when I accidentally included
>>> option -Vd, but it don't appear to be your case.
>>>
>>>
>>> Regards,
>>>
>>>
>>> Marcelo
>>>
>>>
>>>
>>>
>>> On Thu, Jan 23, 2014 at 1:08 PM, Branden Christensen <
>>> ***@osop.com.pa> wrote:
>>>
>>>> Hi all:
>>>>
>>>>
>>>> Marcelo, thank you for taking the time to try that.
>>>>
>>>> I just created a new, virgin virtual machine with 12.04:
>>>>
>>>> ***@shakemap:~$ uname -a
>>>> Linux shakemap 3.5.0-23-generic #35~precise1-Ubuntu SMP Fri Jan 25
>>>> 17:13:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
>>>> ***@shakemap:~$ cat /etc/issue
>>>> Ubuntu 12.04.2 LTS \n \l
>>>>
>>>> I then installed GMT 4.5.11 from source.
>>>>
>>>> And then I attempted:
>>>>
>>>> ***@shakemap:~$ /usr/src/gmt-4.5.11/bin/grdmath -R0/10/0/10 -I1 X =
>>>> 1.grd
>>>> ***@shakemap:~$ /usr/src/gmt-4.5.11/bin/grdmath -R0/10/0/10 -I1 X =
>>>> 2.grd
>>>> ***@shakemap:~$ /usr/src/gmt-4.5.11/bin/grdmath 1.grd DUP DUP 10 LE
>>>> 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL
>>>> 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07
>>>> MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV
>>>> -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV
>>>> EXCH POW MUL = 3.grd
>>>> *** buffer overflow detected ***: /usr/src/gmt-4.5.11/bin/grdmath
>>>> terminated
>>>>
>>>> So I am getting the same results....
>>>>
>>>>
>>>> Kind Regards,
>>>>
>>>>
>>>>
>>>> *Branden Christensen*
>>>> The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
>>>> Take a Virtual Tour: http://www.osop.com.pa/tour
>>>> Sign up for the OSOP mailing list:
>>>> http://www.osop.com.pa/about/osop-mailing-list/
>>>>
>>>>
>>>> On Wed, Jan 22, 2014 at 7:59 PM, Marcelo Banik <***@gmail.com
>>>> > wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> It works fine at my ubuntu 12.04 LTS 64bits GMT 4.5.11 installed from
>>>>> source code.
>>>>>
>>>>> Regards,
>>>>>
>>>>> Marcelo
>>>>>
>>>>>
>>>>>
>>>>> On Wed, Jan 22, 2014 at 5:54 PM, J.J. Green <
>>>>> ***@seaviewsensing.com> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> Sounds like a flakey GMT in Ubuntu, see earlier messages
>>>>>> on this list. On
>>>>>>
>>>>>> ***@flounder ~ $ cat /etc/issue
>>>>>> Linux Mint 16 Petra \n \l
>>>>>>
>>>>>> with
>>>>>>
>>>>>> ***@flounder ~ $ apt-cache policy gmt
>>>>>> gmt:
>>>>>> Installed: 4.5.7-2ubuntu1
>>>>>> Candidate: 4.5.7-2ubuntu1
>>>>>> Package pin: 4.5.7-2ubuntu1
>>>>>> Version table:
>>>>>> 4.5.9-1 1001
>>>>>> 500 http://archive.ubuntu.com/ubuntu/ saucy/universe amd64
>>>>>> Packages
>>>>>> *** 4.5.7-2ubuntu1 1001
>>>>>> 500 http://archive.ubuntu.com/ubuntu/ raring/universe amd64
>>>>>> Packages
>>>>>> 100 /var/lib/dpkg/status
>>>>>>
>>>>>> This achieved with
>>>>>>
>>>>>> ***@flounder ~ $ cat /etc/apt/preferences.d/pin-gmt4
>>>>>> Package: gmt
>>>>>> Pin: release n=raring*
>>>>>> Pin-Priority: 1001
>>>>>>
>>>>>> Package: gmt-doc
>>>>>> Pin: release v=13.04, l=Ubuntu
>>>>>> Pin-Priority: 1001
>>>>>>
>>>>>> Package: libgmt4
>>>>>> Pin: release v=13.04, l=Ubuntu
>>>>>> Pin-Priority: 1001
>>>>>>
>>>>>> Package: *
>>>>>> Pin: release v=13.04, l=Ubuntu
>>>>>> Pin-Priority: -1
>>>>>>
>>>>>> I get no error for
>>>>>>
>>>>>> ***@flounder ~ $ GMT grdmath -R0/10/0/10 -I1 X = 1.grd
>>>>>> ***@flounder ~ $ GMT grdmath -R0/10/0/10 -I1 X = 2.grd
>>>>>> ***@flounder ~ $ GMT grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP
>>>>>> DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH
>>>>>> DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL
>>>>>> EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD
>>>>>> MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd
>>>>>>
>>>>>> and
>>>>>>
>>>>>> ***@flounder ~ $ ls -l *.grd
>>>>>> -rw-r--r-- 1 jjg jjg 1240 Jan 22 19:41 1.grd
>>>>>> -rw-r--r-- 1 jjg jjg 1240 Jan 22 19:41 2.grd
>>>>>> -rw-r--r-- 1 jjg jjg 1508 Jan 22 19:42 3.grd
>>>>>>
>>>>>> perhaps you could revert to 4.5.7 too
>>>>>>
>>>>>> Cheers
>>>>>>
>>>>>> Jim
>>>>>> --
>>>>>> J.J. Green, Seaview Sensing Ltd.,
>>>>>> http://seaviewsensing.com
>>>>>>
>>>>>>
>>>>>> To unsubscribe, send the message "signoff gmt-help" to
>>>>>> ***@lists.hawaii.edu
>>>>>>
>>>>>
>>>>> To unsubscribe, send the message "signoff gmt-help" to
>>>>> ***@lists.hawaii.edu
>>>>>
>>>>
>>>> To unsubscribe, send the message "signoff gmt-help" to
>>>> ***@lists.hawaii.edu
>>>>
>>>
>>> To unsubscribe, send the message "signoff gmt-help" to
>>> ***@lists.hawaii.edu
>>>
>>
>> To unsubscribe, send the message "signoff gmt-help" to
>> ***@lists.hawaii.edu
>>
>
> To unsubscribe, send the message "signoff gmt-help" to
> ***@lists.hawaii.edu
>

To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
Branden Christensen
2014-01-23 19:16:22 UTC
Permalink
Marcelo:


Some more information:

When I execute /usr/src/gmt-4.5.11/bin/grdmath 1.grd DUP DUP 10 LE 0.65 MUL
EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD
MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60
ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL
0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL
= 3.grd

It tries to find 1.grd at /usr/src/gmt-4.5.11/bin/ and when it doesn't it
spits out the buffer overflow error.

But when I change the command a little (see bold), no error!:
/usr/src/gmt-4.5.11/bin/grdmath */home/osop/*1.grd DUP DUP 10 LE 0.65 MUL
EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD
MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60
ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL
0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL
= 3.grd

The strange thing is that it does not need the complete path for 2.grd...

Thoughts?



*Branden Christensen*
The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
Take a Virtual Tour: http://www.osop.com.pa/tour
Sign up for the OSOP mailing list:
http://www.osop.com.pa/about/osop-mailing-list/


On Thu, Jan 23, 2014 at 7:04 PM, Branden Christensen <
***@osop.com.pa> wrote:

> Marcelo:
>
>
> Excellent. We are making progress!
>
>
> After running "export PATH=$PATH:/usr/src/gmt-4.5.11/bin" I get the same
> as you:
>
> ***@osop-displays2:~$ grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP
> DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP
> DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH
> DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL
> EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd
> ***@osop-displays2:~$ /usr/src/gmt-4.5.11/bin/grdmath 1.grd DUP DUP 10
> LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05
> MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV
> -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10
> DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd
> DIV EXCH POW MUL = 3.grd
> *** buffer overflow detected ***: /usr/src/gmt-4.5.11/bin/grdmath
> terminated
>
> I am relying on another program that calls grdmath using an explicit path.
> So is there a fix to make it work with the explicit path?
>
> Thanks again!
>
>
> Kind Regards,
>
>
> *Branden Christensen*
> The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
> Take a Virtual Tour: http://www.osop.com.pa/tour
> Sign up for the OSOP mailing list:
> http://www.osop.com.pa/about/osop-mailing-list/
>
>
> On Thu, Jan 23, 2014 at 6:02 PM, Marcelo Banik <***@gmail.com>wrote:
>
>> Hi Branden,
>>
>>
>> I didn't execute script siposg4511-1.sh because:
>>
>> # dirty link creation to find gdal.h
>>
>> rm -R /usr/local/include
>>
>> ln -s /usr/include/gdal /usr/local/include
>>
>>
>> Appears to be much aggressive to my system.
>>
>>
>> I decide to use the original install_gmt4.sh script, without your minor
>> modification, and some minimal modification in your GMT4param.txt to fit my
>> system configuration (see attached file). Then from a directory with files:
>>
>> $ ls
>>
>> gmt-4.5.11-src.tar.bz2 GMT4param.txt gshhg-gmt-nc4-2.2.4.tar.gz
>> install_gmt4.sh
>>
>>
>> I run the command:
>>
>> $ sudo sh -c "sh install_gmt4.sh GMT4param.txt" > install.log 2>&1
>>
>>
>> And did the test:
>>
>> $ /usr/src/gmt-4.5.11/bin/grdmath -R0/10/0/10 -I1 X = 1.grd
>>
>> $ /usr/src/gmt-4.5.11/bin/grdmath -R0/10/0/10 -I1 X = 2.grd
>>
>> $ /usr/src/gmt-4.5.11/bin/grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP
>> DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH
>> DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL
>> EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD
>> MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd
>>
>> *** buffer overflow detected ***: /usr/src/gmt-4.5.11/bin/grdmath
>> terminated
>>
>>
>> Finally I get your error!
>>
>>
>> Then I did:
>>
>> $ export PATH=$PATH:/usr/src/gmt-4.5.11/bin
>>
>> $ which grdmath
>>
>> /usr/src/gmt-4.5.11/bin/grdmath
>>
>>
>> $ grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20
>> LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT
>> EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP
>> 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT
>> 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd
>>
>>
>> And now it works.
>>
>>
>> For some unknown reason, it fails if an explicit path is used. I don't
>> have this problem with my gmt4.5.11 installation. I'm not sure if it have
>> some relation with your choice to not use shared lib. I could test it
>> later, but first, let us now if including /usr/src/gmt-4.5.11/bin to your
>> PATH works.
>>
>>
>> Regards,
>>
>>
>> Marcelo
>>
>>
>>
>>
>> On Thu, Jan 23, 2014 at 2:36 PM, Branden Christensen <
>> ***@osop.com.pa> wrote:
>>
>>> Marcelo:
>>>
>>>
>>> I also get:
>>>
>>> e51a8827d9b0ce3f36cfe6be01f24931 gmt-4.5.11-src.tar.bz2
>>>
>>> Attached is the script I used to install GMT 4.5.11. Unpack this tgz
>>> file, cd to usr/src and execute "siposg4511-1.sh".
>>>
>>>
>>> Kind Regards,
>>>
>>>
>>> *Branden Christensen*
>>> The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
>>> Take a Virtual Tour: http://www.osop.com.pa/tour
>>> Sign up for the OSOP mailing list:
>>> http://www.osop.com.pa/about/osop-mailing-list/
>>>
>>>
>>> On Thu, Jan 23, 2014 at 4:07 PM, Marcelo Banik <***@gmail.com>wrote:
>>>
>>>> Hi Branden,
>>>>
>>>>
>>>> Here I have:
>>>>
>>>> $ uname -a
>>>>
>>>> Linux acer 3.2.0-41-generic #66-Ubuntu SMP Thu Apr 25 03:27:11 UTC 2013
>>>> x86_64 x86_64 x86_64 GNU/Linux
>>>>
>>>>
>>>> $ cat /etc/issue
>>>>
>>>> Ubuntu 12.04.4 LTS \n \l
>>>>
>>>>
>>>> It isn't identical, but I didn't expect that these minor differences
>>>> could be an issue.
>>>>
>>>>
>>>> From source files, I get:
>>>>
>>>> $ md5sum *.bz2
>>>>
>>>> fd4abdbbc5cb48087a12a4c762b87123 gmt-4.5.11-non-gpl-src.tar.bz2
>>>>
>>>> e51a8827d9b0ce3f36cfe6be01f24931 gmt-4.5.11-src.tar.bz2
>>>>
>>>>
>>>> Did you get the same values?
>>>>
>>>>
>>>> Could you send your GMT4param.txt file? I could try to install here
>>>> using it, just to try to reproduce your results. I don't expect that it
>>>> could change any thing, but I don't know what to do.
>>>>
>>>>
>>>> I only get a “buffer overflow detected” when I accidentally included
>>>> option -Vd, but it don't appear to be your case.
>>>>
>>>>
>>>> Regards,
>>>>
>>>>
>>>> Marcelo
>>>>
>>>>
>>>>
>>>>
>>>> On Thu, Jan 23, 2014 at 1:08 PM, Branden Christensen <
>>>> ***@osop.com.pa> wrote:
>>>>
>>>>> Hi all:
>>>>>
>>>>>
>>>>> Marcelo, thank you for taking the time to try that.
>>>>>
>>>>> I just created a new, virgin virtual machine with 12.04:
>>>>>
>>>>> ***@shakemap:~$ uname -a
>>>>> Linux shakemap 3.5.0-23-generic #35~precise1-Ubuntu SMP Fri Jan 25
>>>>> 17:13:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
>>>>> ***@shakemap:~$ cat /etc/issue
>>>>> Ubuntu 12.04.2 LTS \n \l
>>>>>
>>>>> I then installed GMT 4.5.11 from source.
>>>>>
>>>>> And then I attempted:
>>>>>
>>>>> ***@shakemap:~$ /usr/src/gmt-4.5.11/bin/grdmath -R0/10/0/10 -I1 X =
>>>>> 1.grd
>>>>> ***@shakemap:~$ /usr/src/gmt-4.5.11/bin/grdmath -R0/10/0/10 -I1 X =
>>>>> 2.grd
>>>>> ***@shakemap:~$ /usr/src/gmt-4.5.11/bin/grdmath 1.grd DUP DUP 10 LE
>>>>> 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL
>>>>> 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07
>>>>> MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV
>>>>> -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV
>>>>> EXCH POW MUL = 3.grd
>>>>> *** buffer overflow detected ***: /usr/src/gmt-4.5.11/bin/grdmath
>>>>> terminated
>>>>>
>>>>> So I am getting the same results....
>>>>>
>>>>>
>>>>> Kind Regards,
>>>>>
>>>>>
>>>>>
>>>>> *Branden Christensen*
>>>>> The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
>>>>> Take a Virtual Tour: http://www.osop.com.pa/tour
>>>>> Sign up for the OSOP mailing list:
>>>>> http://www.osop.com.pa/about/osop-mailing-list/
>>>>>
>>>>>
>>>>> On Wed, Jan 22, 2014 at 7:59 PM, Marcelo Banik <
>>>>> ***@gmail.com> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> It works fine at my ubuntu 12.04 LTS 64bits GMT 4.5.11 installed from
>>>>>> source code.
>>>>>>
>>>>>> Regards,
>>>>>>
>>>>>> Marcelo
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Wed, Jan 22, 2014 at 5:54 PM, J.J. Green <
>>>>>> ***@seaviewsensing.com> wrote:
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> Sounds like a flakey GMT in Ubuntu, see earlier messages
>>>>>>> on this list. On
>>>>>>>
>>>>>>> ***@flounder ~ $ cat /etc/issue
>>>>>>> Linux Mint 16 Petra \n \l
>>>>>>>
>>>>>>> with
>>>>>>>
>>>>>>> ***@flounder ~ $ apt-cache policy gmt
>>>>>>> gmt:
>>>>>>> Installed: 4.5.7-2ubuntu1
>>>>>>> Candidate: 4.5.7-2ubuntu1
>>>>>>> Package pin: 4.5.7-2ubuntu1
>>>>>>> Version table:
>>>>>>> 4.5.9-1 1001
>>>>>>> 500 http://archive.ubuntu.com/ubuntu/ saucy/universe amd64
>>>>>>> Packages
>>>>>>> *** 4.5.7-2ubuntu1 1001
>>>>>>> 500 http://archive.ubuntu.com/ubuntu/ raring/universe amd64
>>>>>>> Packages
>>>>>>> 100 /var/lib/dpkg/status
>>>>>>>
>>>>>>> This achieved with
>>>>>>>
>>>>>>> ***@flounder ~ $ cat /etc/apt/preferences.d/pin-gmt4
>>>>>>> Package: gmt
>>>>>>> Pin: release n=raring*
>>>>>>> Pin-Priority: 1001
>>>>>>>
>>>>>>> Package: gmt-doc
>>>>>>> Pin: release v=13.04, l=Ubuntu
>>>>>>> Pin-Priority: 1001
>>>>>>>
>>>>>>> Package: libgmt4
>>>>>>> Pin: release v=13.04, l=Ubuntu
>>>>>>> Pin-Priority: 1001
>>>>>>>
>>>>>>> Package: *
>>>>>>> Pin: release v=13.04, l=Ubuntu
>>>>>>> Pin-Priority: -1
>>>>>>>
>>>>>>> I get no error for
>>>>>>>
>>>>>>> ***@flounder ~ $ GMT grdmath -R0/10/0/10 -I1 X = 1.grd
>>>>>>> ***@flounder ~ $ GMT grdmath -R0/10/0/10 -I1 X = 2.grd
>>>>>>> ***@flounder ~ $ GMT grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH
>>>>>>> DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL
>>>>>>> EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD
>>>>>>> MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53
>>>>>>> ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL =
>>>>>>> 3.grd
>>>>>>>
>>>>>>> and
>>>>>>>
>>>>>>> ***@flounder ~ $ ls -l *.grd
>>>>>>> -rw-r--r-- 1 jjg jjg 1240 Jan 22 19:41 1.grd
>>>>>>> -rw-r--r-- 1 jjg jjg 1240 Jan 22 19:41 2.grd
>>>>>>> -rw-r--r-- 1 jjg jjg 1508 Jan 22 19:42 3.grd
>>>>>>>
>>>>>>> perhaps you could revert to 4.5.7 too
>>>>>>>
>>>>>>> Cheers
>>>>>>>
>>>>>>> Jim
>>>>>>> --
>>>>>>> J.J. Green, Seaview Sensing Ltd.,
>>>>>>> http://seaviewsensing.com
>>>>>>>
>>>>>>>
>>>>>>> To unsubscribe, send the message "signoff gmt-help" to
>>>>>>> ***@lists.hawaii.edu
>>>>>>>
>>>>>>
>>>>>> To unsubscribe, send the message "signoff gmt-help" to
>>>>>> ***@lists.hawaii.edu
>>>>>>
>>>>>
>>>>> To unsubscribe, send the message "signoff gmt-help" to
>>>>> ***@lists.hawaii.edu
>>>>>
>>>>
>>>> To unsubscribe, send the message "signoff gmt-help" to
>>>> ***@lists.hawaii.edu
>>>>
>>>
>>> To unsubscribe, send the message "signoff gmt-help" to
>>> ***@lists.hawaii.edu
>>>
>>
>> To unsubscribe, send the message "signoff gmt-help" to
>> ***@lists.hawaii.edu
>>
>
>

To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
Marcelo Banik
2014-01-23 20:41:38 UTC
Permalink
Branden,


The workaround appears to be use "./1grd" instead of "1.grd":

/usr/src/gmt-4.5.11/bin/grdmath *./*1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP
DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH
DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL
EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD
MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd


I quite sure that anyone could reproduce this error doing:

mkdir strange_behavior

cd strange_behavior

ln -s ~/this_gmt/bin . # or whatever is your gmt4 path

bin/grdmath -R0/10/0/10 -I1 X = 1.grd

bin/grdmath -R0/10/0/10 -I1 X = 2.grd

bin/grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE
MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH
30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT
EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45
MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd


Marcelo




On Thu, Jan 23, 2014 at 5:16 PM, Branden Christensen <
***@osop.com.pa> wrote:

> Marcelo:
>
>
> Some more information:
>
> When I execute /usr/src/gmt-4.5.11/bin/grdmath 1.grd DUP DUP 10 LE 0.65
> MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65
> ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL
> 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08
> MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW
> MUL = 3.grd
>
> It tries to find 1.grd at /usr/src/gmt-4.5.11/bin/ and when it doesn't it
> spits out the buffer overflow error.
>
> But when I change the command a little (see bold), no error!:
> /usr/src/gmt-4.5.11/bin/grdmath */home/osop/*1.grd DUP DUP 10 LE 0.65 MUL
> EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD
> MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60
> ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL
> 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL
> = 3.grd
>
> The strange thing is that it does not need the complete path for 2.grd...
>
> Thoughts?
>
>
>
> *Branden Christensen*
> The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
> Take a Virtual Tour: http://www.osop.com.pa/tour
> Sign up for the OSOP mailing list:
> http://www.osop.com.pa/about/osop-mailing-list/
>
>
> On Thu, Jan 23, 2014 at 7:04 PM, Branden Christensen <
> ***@osop.com.pa> wrote:
>
>> Marcelo:
>>
>>
>> Excellent. We are making progress!
>>
>>
>> After running "export PATH=$PATH:/usr/src/gmt-4.5.11/bin" I get the same
>> as you:
>>
>> ***@osop-displays2:~$ grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP
>> DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP
>> DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH
>> DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL
>> EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd
>> ***@osop-displays2:~$ /usr/src/gmt-4.5.11/bin/grdmath 1.grd DUP DUP 10
>> LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05
>> MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV
>> -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10
>> DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd
>> DIV EXCH POW MUL = 3.grd
>> *** buffer overflow detected ***: /usr/src/gmt-4.5.11/bin/grdmath
>> terminated
>>
>> I am relying on another program that calls grdmath using an explicit
>> path. So is there a fix to make it work with the explicit path?
>>
>> Thanks again!
>>
>>
>> Kind Regards,
>>
>>
>> *Branden Christensen*
>> The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
>> Take a Virtual Tour: http://www.osop.com.pa/tour
>> Sign up for the OSOP mailing list:
>> http://www.osop.com.pa/about/osop-mailing-list/
>>
>>
>> On Thu, Jan 23, 2014 at 6:02 PM, Marcelo Banik <***@gmail.com>wrote:
>>
>>> Hi Branden,
>>>
>>>
>>> I didn't execute script siposg4511-1.sh because:
>>>
>>> # dirty link creation to find gdal.h
>>>
>>> rm -R /usr/local/include
>>>
>>> ln -s /usr/include/gdal /usr/local/include
>>>
>>>
>>> Appears to be much aggressive to my system.
>>>
>>>
>>> I decide to use the original install_gmt4.sh script, without your
>>> minor modification, and some minimal modification in your GMT4param.txt to
>>> fit my system configuration (see attached file). Then from a directory with
>>> files:
>>>
>>> $ ls
>>>
>>> gmt-4.5.11-src.tar.bz2 GMT4param.txt gshhg-gmt-nc4-2.2.4.tar.gz
>>> install_gmt4.sh
>>>
>>>
>>> I run the command:
>>>
>>> $ sudo sh -c "sh install_gmt4.sh GMT4param.txt" > install.log 2>&1
>>>
>>>
>>> And did the test:
>>>
>>> $ /usr/src/gmt-4.5.11/bin/grdmath -R0/10/0/10 -I1 X = 1.grd
>>>
>>> $ /usr/src/gmt-4.5.11/bin/grdmath -R0/10/0/10 -I1 X = 2.grd
>>>
>>> $ /usr/src/gmt-4.5.11/bin/grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP
>>> DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH
>>> DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL
>>> EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD
>>> MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd
>>>
>>> *** buffer overflow detected ***: /usr/src/gmt-4.5.11/bin/grdmath
>>> terminated
>>>
>>>
>>> Finally I get your error!
>>>
>>>
>>> Then I did:
>>>
>>> $ export PATH=$PATH:/usr/src/gmt-4.5.11/bin
>>>
>>> $ which grdmath
>>>
>>> /usr/src/gmt-4.5.11/bin/grdmath
>>>
>>>
>>> $ grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20
>>> LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT
>>> EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP
>>> 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT
>>> 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL = 3.grd
>>>
>>>
>>> And now it works.
>>>
>>>
>>> For some unknown reason, it fails if an explicit path is used. I don't
>>> have this problem with my gmt4.5.11 installation. I'm not sure if it have
>>> some relation with your choice to not use shared lib. I could test it
>>> later, but first, let us now if including /usr/src/gmt-4.5.11/bin to your
>>> PATH works.
>>>
>>>
>>> Regards,
>>>
>>>
>>> Marcelo
>>>
>>>
>>>
>>>
>>> On Thu, Jan 23, 2014 at 2:36 PM, Branden Christensen <
>>> ***@osop.com.pa> wrote:
>>>
>>>> Marcelo:
>>>>
>>>>
>>>> I also get:
>>>>
>>>> e51a8827d9b0ce3f36cfe6be01f24931 gmt-4.5.11-src.tar.bz2
>>>>
>>>> Attached is the script I used to install GMT 4.5.11. Unpack this tgz
>>>> file, cd to usr/src and execute "siposg4511-1.sh".
>>>>
>>>>
>>>> Kind Regards,
>>>>
>>>>
>>>> *Branden Christensen*
>>>> The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
>>>> Take a Virtual Tour: http://www.osop.com.pa/tour
>>>> Sign up for the OSOP mailing list:
>>>> http://www.osop.com.pa/about/osop-mailing-list/
>>>>
>>>>
>>>> On Thu, Jan 23, 2014 at 4:07 PM, Marcelo Banik <***@gmail.com
>>>> > wrote:
>>>>
>>>>> Hi Branden,
>>>>>
>>>>>
>>>>> Here I have:
>>>>>
>>>>> $ uname -a
>>>>>
>>>>> Linux acer 3.2.0-41-generic #66-Ubuntu SMP Thu Apr 25 03:27:11 UTC
>>>>> 2013 x86_64 x86_64 x86_64 GNU/Linux
>>>>>
>>>>>
>>>>> $ cat /etc/issue
>>>>>
>>>>> Ubuntu 12.04.4 LTS \n \l
>>>>>
>>>>>
>>>>> It isn't identical, but I didn't expect that these minor differences
>>>>> could be an issue.
>>>>>
>>>>>
>>>>> From source files, I get:
>>>>>
>>>>> $ md5sum *.bz2
>>>>>
>>>>> fd4abdbbc5cb48087a12a4c762b87123 gmt-4.5.11-non-gpl-src.tar.bz2
>>>>>
>>>>> e51a8827d9b0ce3f36cfe6be01f24931 gmt-4.5.11-src.tar.bz2
>>>>>
>>>>>
>>>>> Did you get the same values?
>>>>>
>>>>>
>>>>> Could you send your GMT4param.txt file? I could try to install here
>>>>> using it, just to try to reproduce your results. I don't expect that it
>>>>> could change any thing, but I don't know what to do.
>>>>>
>>>>>
>>>>> I only get a “buffer overflow detected” when I accidentally included
>>>>> option -Vd, but it don't appear to be your case.
>>>>>
>>>>>
>>>>> Regards,
>>>>>
>>>>>
>>>>> Marcelo
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Thu, Jan 23, 2014 at 1:08 PM, Branden Christensen <
>>>>> ***@osop.com.pa> wrote:
>>>>>
>>>>>> Hi all:
>>>>>>
>>>>>>
>>>>>> Marcelo, thank you for taking the time to try that.
>>>>>>
>>>>>> I just created a new, virgin virtual machine with 12.04:
>>>>>>
>>>>>> ***@shakemap:~$ uname -a
>>>>>> Linux shakemap 3.5.0-23-generic #35~precise1-Ubuntu SMP Fri Jan 25
>>>>>> 17:13:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
>>>>>> ***@shakemap:~$ cat /etc/issue
>>>>>> Ubuntu 12.04.2 LTS \n \l
>>>>>>
>>>>>> I then installed GMT 4.5.11 from source.
>>>>>>
>>>>>> And then I attempted:
>>>>>>
>>>>>> ***@shakemap:~$ /usr/src/gmt-4.5.11/bin/grdmath -R0/10/0/10 -I1 X =
>>>>>> 1.grd
>>>>>> ***@shakemap:~$ /usr/src/gmt-4.5.11/bin/grdmath -R0/10/0/10 -I1 X =
>>>>>> 2.grd
>>>>>> ***@shakemap:~$ /usr/src/gmt-4.5.11/bin/grdmath 1.grd DUP DUP 10
>>>>>> LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05
>>>>>> MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV
>>>>>> -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10
>>>>>> DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd
>>>>>> DIV EXCH POW MUL = 3.grd
>>>>>> *** buffer overflow detected ***: /usr/src/gmt-4.5.11/bin/grdmath
>>>>>> terminated
>>>>>>
>>>>>> So I am getting the same results....
>>>>>>
>>>>>>
>>>>>> Kind Regards,
>>>>>>
>>>>>>
>>>>>>
>>>>>> *Branden Christensen*
>>>>>> The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/
>>>>>> Take a Virtual Tour: http://www.osop.com.pa/tour
>>>>>> Sign up for the OSOP mailing list:
>>>>>> http://www.osop.com.pa/about/osop-mailing-list/
>>>>>>
>>>>>>
>>>>>> On Wed, Jan 22, 2014 at 7:59 PM, Marcelo Banik <
>>>>>> ***@gmail.com> wrote:
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> It works fine at my ubuntu 12.04 LTS 64bits GMT 4.5.11 installed
>>>>>>> from source code.
>>>>>>>
>>>>>>> Regards,
>>>>>>>
>>>>>>> Marcelo
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Wed, Jan 22, 2014 at 5:54 PM, J.J. Green <
>>>>>>> ***@seaviewsensing.com> wrote:
>>>>>>>
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> Sounds like a flakey GMT in Ubuntu, see earlier messages
>>>>>>>> on this list. On
>>>>>>>>
>>>>>>>> ***@flounder ~ $ cat /etc/issue
>>>>>>>> Linux Mint 16 Petra \n \l
>>>>>>>>
>>>>>>>> with
>>>>>>>>
>>>>>>>> ***@flounder ~ $ apt-cache policy gmt
>>>>>>>> gmt:
>>>>>>>> Installed: 4.5.7-2ubuntu1
>>>>>>>> Candidate: 4.5.7-2ubuntu1
>>>>>>>> Package pin: 4.5.7-2ubuntu1
>>>>>>>> Version table:
>>>>>>>> 4.5.9-1 1001
>>>>>>>> 500 http://archive.ubuntu.com/ubuntu/ saucy/universe amd64
>>>>>>>> Packages
>>>>>>>> *** 4.5.7-2ubuntu1 1001
>>>>>>>> 500 http://archive.ubuntu.com/ubuntu/ raring/universe amd64
>>>>>>>> Packages
>>>>>>>> 100 /var/lib/dpkg/status
>>>>>>>>
>>>>>>>> This achieved with
>>>>>>>>
>>>>>>>> ***@flounder ~ $ cat /etc/apt/preferences.d/pin-gmt4
>>>>>>>> Package: gmt
>>>>>>>> Pin: release n=raring*
>>>>>>>> Pin-Priority: 1001
>>>>>>>>
>>>>>>>> Package: gmt-doc
>>>>>>>> Pin: release v=13.04, l=Ubuntu
>>>>>>>> Pin-Priority: 1001
>>>>>>>>
>>>>>>>> Package: libgmt4
>>>>>>>> Pin: release v=13.04, l=Ubuntu
>>>>>>>> Pin-Priority: 1001
>>>>>>>>
>>>>>>>> Package: *
>>>>>>>> Pin: release v=13.04, l=Ubuntu
>>>>>>>> Pin-Priority: -1
>>>>>>>>
>>>>>>>> I get no error for
>>>>>>>>
>>>>>>>> ***@flounder ~ $ GMT grdmath -R0/10/0/10 -I1 X = 1.grd
>>>>>>>> ***@flounder ~ $ GMT grdmath -R0/10/0/10 -I1 X = 2.grd
>>>>>>>> ***@flounder ~ $ GMT grdmath 1.grd DUP DUP 10 LE 0.65 MUL EXCH
>>>>>>>> DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL
>>>>>>>> EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD
>>>>>>>> MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53
>>>>>>>> ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 2.grd DIV EXCH POW MUL =
>>>>>>>> 3.grd
>>>>>>>>
>>>>>>>> and
>>>>>>>>
>>>>>>>> ***@flounder ~ $ ls -l *.grd
>>>>>>>> -rw-r--r-- 1 jjg jjg 1240 Jan 22 19:41 1.grd
>>>>>>>> -rw-r--r-- 1 jjg jjg 1240 Jan 22 19:41 2.grd
>>>>>>>> -rw-r--r-- 1 jjg jjg 1508 Jan 22 19:42 3.grd
>>>>>>>>
>>>>>>>> perhaps you could revert to 4.5.7 too
>>>>>>>>
>>>>>>>> Cheers
>>>>>>>>
>>>>>>>> Jim
>>>>>>>> --
>>>>>>>> J.J. Green, Seaview Sensing Ltd.,
>>>>>>>> http://seaviewsensing.com
>>>>>>>>
>>>>>>>>
>>>>>>>> To unsubscribe, send the message "signoff gmt-help" to
>>>>>>>> ***@lists.hawaii.edu
>>>>>>>>
>>>>>>>
>>>>>>> To unsubscribe, send the message "signoff gmt-help" to
>>>>>>> ***@lists.hawaii.edu
>>>>>>>
>>>>>>
>>>>>> To unsubscribe, send the message "signoff gmt-help" to
>>>>>> ***@lists.hawaii.edu
>>>>>>
>>>>>
>>>>> To unsubscribe, send the message "signoff gmt-help" to
>>>>> ***@lists.hawaii.edu
>>>>>
>>>>
>>>> To unsubscribe, send the message "signoff gmt-help" to
>>>> ***@lists.hawaii.edu
>>>>
>>>
>>> To unsubscribe, send the message "signoff gmt-help" to
>>> ***@lists.hawaii.edu
>>>
>>
>>
> To unsubscribe, send the message "signoff gmt-help" to
> ***@lists.hawaii.edu
>

To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
Branden Christensen
2014-01-23 21:29:33 UTC
Permalink
Marcelo:


ShakeMap executes a command similar to this when it runs:

/usr/src/gmt-4.5.11/bin/grdmath
/opt/shakemap2/bin/../data/9583161/richter/pgv_rock.grd DUP DUP 10 LE 0.65
MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65
ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL
0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08
MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686
/opt/shakemap2/bin/../data/9583161/output/UFVS74PC0J.grd DIV EXCH POW MUL =
/opt/shakemap2/bin/../data/9583161/output/pgv.grd

causing the buffer overflow message to appear.

but in this case the complete path is given to the equivalent of "1.grd" in
previous examples: /opt/shakemap2/bin/../data/9583161/richter/pgv_rock.grd

This is analogous to giving the full path to 1.grd as /home/osop/1.grd. So
what might be going on? pgv_rock.grd definitely exists at the time of
execution. Otherwise you would get this error:
grdmath: GMT SYNTAX ERROR:
/opt/shakemap2/bin/../data/9583161/richter/pgv_rock.grd is not a number,
operator or file name


B

To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
Ingo Wardinski
2013-11-26 09:40:44 UTC
Permalink
On 26/11/13 04:20, Branden Christensen wrote:
> Paul:
>
>
> Attached you will find the 2>&1 output. It shows how grdmath is
> implemented.
>
> Thanks for taking a peek. The feedback from the ubuntu guys sounds
> discouraging. I wonder what gives.
>


Hi,
I had a look on your '2>&1 output'. Close to the bottom (line 4343), it
says:

sm_nearneighbor: 7441 nodes were assigned an average value
sm_nearneighbor: 0 nodes failed sector criteria and 521219 nodes had no
neighbor points (all set to 0)

This looks odd to me, and further below

grdmath: /opt/shakemap/bin/../data/9583161/output/owMxPIQc5A.grd
/opt/shakemap/bin/../data/9583161/output/4fTDKp4Mvp.grd ADD
/opt/shakemap/bin/../data/9583161/output/d6LEOTCIsM.grd grdmath: Not a
supported grid format
[/opt/shakemap/bin/../data/9583161/output/d6LEOTCIsM.grd]

I guess this grid (d6LEOTCIsM.grd) is made on the fly. The problems
might be related to the nearneighbor oddity above.

grdmath: /opt/shakemap/bin/../data/9583161/output/3_0o8wC7sl.grd
/opt/shakemap/bin/../data/9583161/output/NCT6RtxYn4.grd ADD
/opt/shakemap/bin/../data/9583161/output/d6LEOTCIsM.grd grdmath: Not a
supported grid format
[/opt/shakemap/bin/../data/9583161/output/d6LEOTCIsM.grd]
grdinfo: Could not find file
[/opt/shakemap/bin/../data/9583161/richter/mi_rock.grd]

Here is something that cannot be found by gmt, which suggests that the
shakemap installation is broken.

HTH
ingo

To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
Loading...