[Shake-dev] Postscript delegate failed

Branden Christensen branden.christensen at osop.com.pa
Wed Nov 20 23:23:49 UTC 2013


Hi Bruce:


I respond in line below. Thanks for the assistance with this odd problem.


Saludos,


*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 Wed, Nov 20, 2013 at 7:04 PM, Bruce Worden <cbworden at gmail.com> wrote:

> Hi Banden, all,
>
> I'm not aware of a workaround. ShakeMap on Ubuntu causes more than its
> fair share of problems, so much so that we explicitly advise against trying
> to run ShakeMap on Ubuntu. It's possible that the grdmath command lines are
> simply too long for the OS or shell to handle.
>
This is too bad! In my experience most seismological centers are running
Ubuntu world-wide. This is especially true in Central America where there
is strong interest in partnering up Ubuntu-based SeisComP installs with
ShakeMap.

>
> I suggest you try running grind with -debug. This will produce a LOT of
> output, including the full GMT command lines. You can inspect/post the ones
> that cause errors and try to determine the cause.
>

Here is what I see (it looks like grdmath is terminated prematurely):

...
...
...
grdmath: Given domain implies y_inc = 0.0250076
grdmath: (/opt/shakemap/bin/../data/9583161/output/aoAW4ogoKK.xy) PDIST
27.47 HYPOT = /opt/shakemap/bin/../data/9583161/output/piUp3VSmhj.grd
*** buffer overflow detected ***: /usr/lib/gmt/bin/grdmath terminated
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x7f0da5dc7807]
/lib/x86_64-linux-gnu/libc.so.6(+0x109700)[0x7f0da5dc6700]
...
...
...
grdmath: Not a supported grid format
[/opt/shakemap/bin/../data/9583161/output/ZmJbJx0pvl.grd]
...
...
...
sm_nearneighbor: Gridded row        660
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)
grdmath: /opt/shakemap/bin/../data/9583161/output/hyJ1ugmTV2.grd
/opt/shakemap/bin/../data/9583161/output/RdiOOrrp7u.grd ADD
/opt/shakemap/bin/../data/9583161/output/QtTE2orzQQ.grd grdmath: Not a
supported grid format
[/opt/shakemap/bin/../data/9583161/output/QtTE2orzQQ.grd]
grdmath: /opt/shakemap/bin/../data/9583161/output/KgU_rEBx2A.grd
/opt/shakemap/bin/../data/9583161/output/5i0oapLB9H.grd ADD
/opt/shakemap/bin/../data/9583161/output/QtTE2orzQQ.grd grdmath: Not a
supported grid format
[/opt/shakemap/bin/../data/9583161/output/QtTE2orzQQ.grd]
grdinfo: Could not find file
[/opt/shakemap/bin/../data/9583161/richter/mi_rock.grd]
grdmath: GMT SYNTAX ERROR -R option.  Correct syntax:
-R<xmin>/<xmax>/<ymin>/<ymax>[/<zmin>/<zmax>]
 Append r if giving lower left and upper right coordinates
grdmath: GMT SYNTAX ERROR -I option.  Must specify positive increment(s)
grdmath: GMT SYNTAX ERROR:
/opt/shakemap/bin/../data/9583161/richter/mi_rock.grd is not a number,
operator or file name
grdmath: GMT SYNTAX ERROR:
/opt/shakemap/bin/../data/9583161/richter/mi_rock.grd is not a number,
operator or file name
grdmath: Not a supported grid format
[/opt/shakemap/bin/../data/9583161/output/Y_hqoCTtCw.grd]
grdmath: Not a supported grid format
[/opt/shakemap/bin/../data/9583161/output/Ak3N_SjMjH.grd]
grdmath: Not a supported grid format
[/opt/shakemap/bin/../data/9583161/output/8th6lUBsmj.grd]
grdmath: Not a supported grid format
[/opt/shakemap/bin/../data/9583161/output/kyFnkWYzbE.grd]
grdmath: GMT SYNTAX ERROR -R option.  Correct syntax:
-R<xmin>/<xmax>/<ymin>/<ymax>[/<zmin>/<zmax>]
Append r if giving lower left and upper right coordinates
grdmath: GMT SYNTAX ERROR -I option.  Must specify positive increment(s)
grdmath: Not a supported grid format
[/opt/shakemap/bin/../data/9583161/output/nrYCubkQ_R.grd]
grdmath: Not a supported grid format
[/opt/shakemap/bin/../data/9583161/output/xdjUXOcBcH.grd]
grdmath: Not a supported grid format
[/opt/shakemap/bin/../data/9583161/output/viMxOovFoh.grd]
grdmath: GMT SYNTAX ERROR:
/opt/shakemap/bin/../data/9583161/richter/mi_rock.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]
gmtconvert: 528661 records passed (input cols = 3; output cols = 3)
grd2xyz: Could not find file
[/opt/shakemap/bin/../data/9583161/richter/mi_std.grd]
grd2xyz: Could not find file
[/opt/shakemap/bin/../data/9583161/richter/mi_rock.grd]
Uncertainty computation skipped (no Intensity > 6.0)
osop at osop-displays2:/opt/shakemap/bin$



I tried Googling "grdmath buffer overflow detected" but only came up with
this:
https://geohazards.usgs.gov/pipermail/shake-dev/2011-October/000380.html

I then tried running with no xml flag as suggested. The errors are the
same.



> You can also look in data/<evid>/output and see if any of the temp files
> still exist. They're the ones like:
>
> /opt/shakemap/bin/../data/9583161/output/337GR_KNxI.grd
>
Nope, they look like they were all eliminated:
osop at osop-displays2:/opt/shakemap/data/9583161/output$ ls
bias.txt  grid.xml  grid.xyz  info.xml  pga.grd  pgv.grd  rock_grid.xml
 stationlist.xml  uncertainty.xml  urat_pga.grd

>
> If they're there, you can poke at them with grdinfo, or try operations
> with grdmath or other GMT commands and see if they are valid grd files and,
> if not, what they are.
>

> Bruce
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://geohazards.usgs.gov/pipermail/shake-dev/attachments/20131120/a1836b37/attachment.html>


More information about the Shake-dev mailing list