<div dir="ltr">Hi Bruce:<div><br></div><div><br></div><div>I respond in line below. Thanks for the assistance with this odd problem. </div><div><br></div><div><br></div><div style>Saludos, </div><div><br><div class="gmail_extra">

<br clear="all"><div><div dir="ltr"><div><b>Branden Christensen</b><br></div><div><span style="font-family:arial;font-size:small">The Seismo Guys Blog: </span><a href="http://www.osop.com.pa/blog/the-seismo-guys/" style="font-family:arial;font-size:small" target="_blank">http://www.osop.com.pa/blog/the-seismo-guys/</a></div>

<div>Take a Virtual Tour: <a href="http://www.osop.com.pa/tour" style="font-family:arial" target="_blank">http://www.osop.com.pa/tour</a></div></div></div>
<br><br><div class="gmail_quote">On Wed, Nov 20, 2013 at 7:04 PM, Bruce Worden <span dir="ltr"><<a href="mailto:cbworden@gmail.com" target="_blank">cbworden@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div style="word-wrap:break-word">Hi Banden, all,<div><br></div><div>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. </div>

</div></blockquote><div style>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. </div>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word"><div><br></div><div>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.</div>

</div></blockquote><div style><br></div><div style>Here is what I see (it looks like grdmath is terminated prematurely):<br></div><div style><br></div><div style>...</div><div style>...</div><div style>...</div><div style>

<div>grdmath: Given domain implies y_inc = 0.0250076</div><div>grdmath: (/opt/shakemap/bin/../data/9583161/output/aoAW4ogoKK.xy) PDIST 27.47 HYPOT = /opt/shakemap/bin/../data/9583161/output/piUp3VSmhj.grd</div><div><font color="#ff0000">*** buffer overflow detected ***: /usr/lib/gmt/bin/grdmath terminated</font></div>

<div>======= Backtrace: =========</div><div>/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x7f0da5dc7807]</div><div>/lib/x86_64-linux-gnu/libc.so.6(+0x109700)[0x7f0da5dc6700]</div><div>...</div><div>...</div><div>
...</div>
</div><div style>grdmath: Not a supported grid format [/opt/shakemap/bin/../data/9583161/output/ZmJbJx0pvl.grd]</div><div style>...</div><div style>...</div><div style>...</div><div style><div><div>sm_nearneighbor: Gridded row        660</div>

<div>sm_nearneighbor: 7441 nodes were assigned an average value</div><div>sm_nearneighbor: 0 nodes failed sector criteria and 521219 nodes had no neighbor points (all set to 0)</div><div>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]</div>

<div>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]</div>

<div>grdinfo: Could not find file [/opt/shakemap/bin/../data/9583161/richter/mi_rock.grd]</div><div>grdmath: GMT SYNTAX ERROR -R option.  Correct syntax:</div><div><span class="" style="white-space:pre">     </span>-R<xmin>/<xmax>/<ymin>/<ymax>[/<zmin>/<zmax>]</div>

<div><span class="" style="white-space:pre">    </span>Append r if giving lower left and upper right coordinates</div><div>grdmath: GMT SYNTAX ERROR -I option.  Must specify positive increment(s)</div><div>grdmath: GMT SYNTAX ERROR: /opt/shakemap/bin/../data/9583161/richter/mi_rock.grd is not a number, operator or file name</div>

<div>grdmath: GMT SYNTAX ERROR: /opt/shakemap/bin/../data/9583161/richter/mi_rock.grd is not a number, operator or file name</div><div>grdmath: Not a supported grid format [/opt/shakemap/bin/../data/9583161/output/Y_hqoCTtCw.grd]</div>

<div>grdmath: Not a supported grid format [/opt/shakemap/bin/../data/9583161/output/Ak3N_SjMjH.grd]</div><div>grdmath: Not a supported grid format [/opt/shakemap/bin/../data/9583161/output/8th6lUBsmj.grd]</div><div>grdmath: Not a supported grid format [/opt/shakemap/bin/../data/9583161/output/kyFnkWYzbE.grd]</div>

<div>grdmath: GMT SYNTAX ERROR -R option.  Correct syntax:</div><div><span class="" style="white-space:pre">        </span>-R<xmin>/<xmax>/<ymin>/<ymax>[/<zmin>/<zmax>]</div><div><span class="" style="white-space:pre">  </span>Append r if giving lower left and upper right coordinates</div>

<div>grdmath: GMT SYNTAX ERROR -I option.  Must specify positive increment(s)</div><div>grdmath: Not a supported grid format [/opt/shakemap/bin/../data/9583161/output/nrYCubkQ_R.grd]</div><div>grdmath: Not a supported grid format [/opt/shakemap/bin/../data/9583161/output/xdjUXOcBcH.grd]</div>

<div>grdmath: Not a supported grid format [/opt/shakemap/bin/../data/9583161/output/viMxOovFoh.grd]</div><div>grdmath: GMT SYNTAX ERROR: /opt/shakemap/bin/../data/9583161/richter/mi_rock.grd is not a number, operator or file name</div>

<div>grdmath: GMT SYNTAX ERROR: /opt/shakemap/bin/../data/9583161/output/mi.grd is not a number, operator or file name</div><div>grdinfo: Could not find file [/opt/shakemap/bin/../data/9583161/output/mi.grd]</div><div>grdmath: GMT SYNTAX ERROR: /opt/shakemap/bin/../data/9583161/output/mi.grd is not a number, operator or file name</div>

<div>grd2xyz: Could not find file [/opt/shakemap/bin/../data/9583161/output/mi.grd]</div><div>gmtconvert: 528661 records passed (input cols = 3; output cols = 3)</div><div>grd2xyz: Could not find file [/opt/shakemap/bin/../data/9583161/richter/mi_std.grd]</div>

<div>grd2xyz: Could not find file [/opt/shakemap/bin/../data/9583161/richter/mi_rock.grd]</div><div>Uncertainty computation skipped (no Intensity > 6.0)</div></div><div>osop@osop-displays2:/opt/shakemap/bin$<br></div>
<div>
<br></div><div><br></div><div><br></div><div style>I tried Googling "grdmath buffer overflow detected" but only came up with this:</div><div style><a href="https://geohazards.usgs.gov/pipermail/shake-dev/2011-October/000380.html">https://geohazards.usgs.gov/pipermail/shake-dev/2011-October/000380.html</a><br>

</div><div style><br></div><div style>I then tried running with no xml flag as suggested. The errors are the same. </div><div style><br></div><div><br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div style="word-wrap:break-word"><div><br></div><div>You can also look in data/<evid>/output and see if any of the temp files still exist. They're the ones like:</div><div><br></div><div>/opt/shakemap/bin/../data/9583161/output/337GR_KNxI.grd</div>

</div></blockquote><div style>Nope, they look like they were all eliminated:</div><div style>osop@osop-displays2:/opt/shakemap/data/9583161/output$ ls</div><div>bias.txt  grid.xml  grid.xyz  info.xml  pga.grd  pgv.grd  rock_grid.xml  stationlist.xml  uncertainty.xml  urat_pga.grd</div>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word"><div><br></div><div>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. </div>

</div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word"><span class=""><font color="#888888"><div>

<br></div><div>Bruce</div></font></span><div><div class="h5"><div><br></div><div><br></div></div></div></div></blockquote></div></div></div></div>