<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Billy,<br>
      Actually I have had the same problems with Ubuntu. Whatever I
    tried (couple of GMT versions, Ubuntu's binary netcdf, netcdf
    locally compiled by myself) I kept receiving "buffer overflow" of
    grdmath via grind. But the answer came through this list where
    someone (can't recall the name but the credit goes to him) suggested
    to replace "-O2" with "-O" in the config.mk file during the
    compilation of GMT. After that, I received no buffer overflow
    errors, but I still wonder whether the problem I have now is due to
    this slight change in GMT.<br>
    <br>
    Rgards,<br>
    Petros<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 03/04/2013 05:31 PM, Billy edson
      Burgoa Rosso wrote:<br>
    </div>
    <blockquote
cite="mid:%3C1362411087.82278.YahooMailNeo@web162504.mail.bf1.yahoo.com%3E"
      type="cite">
      <div style="color:#000; background-color:#fff; font-family:times
        new roman, new york, times, serif;font-size:12pt">
        <div><span>Dear Petros and ShakeMap users,</span></div>
        <div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
          times new roman,new york,times,serif; background-color:
          transparent; font-style: normal;"><br>
          <span></span></div>
        I didn't see that problem during my failed attempt of using
        ShakeMap in Ubuntu 12.04 (64 bits) and I am sorry for not giving
        you hand with this issue. However, there were something that
        called my attention when you ran grind program and I would like
        to ask you some questions.<br>
        <br>
        Some months ago, I compiled and installed ShakeMap in Ubuntu
        12.04, however, when I ran grind with the flag -qtm a problem
        arose:<br>
        <br>
============================================================================================<br>
        Using active tectonic factors.<br>
        *** buffer overflow detectarribaed ***: /usr/local/bin//grdmath
        terminated<br>
        ======= Backtrace: =========<br>
/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x7fab547b6807]<br>
        /lib/x86_64-linux-gnu/libc.so.6(+0x109700)[0x7fab547b5700]<br>
        /lib/x86_64-linux-gnu/libc.so.6(+0x1085d3)[0x7fab547b45d3]<br>
        /usr/local/bin//grdmath[0x41d4e6]<br>
        /usr/local/bin//grdmath[0x40beab]<br>
        <span class="tab">    .</span><span class="tab">    <br>
        </span><span class="tab">    .</span><br>
        <span class="tab">    .</span><br>
        grdmath: Not a supported grid format
        [/home/billy/shake/shake3.5/bin/../data/9583161/output/3vkJ4ZxqVL.grd]<br>
        grdmath: Not a supported grid format
        [/home/billy/shake/shake3.5/bin/../data/9583161/output/Nc4i89isTz.grd]<br>
        grdmath: GMT SYNTAX ERROR:
        /home/billy/shake/shake3.5/bin/../data/9583161/output/mi.grd is
        not a number, operator or file name<br>
        grdmath: GMT SYNTAX ERROR:
        /home/billy/shake/shake3.5/bin/../data/9583161/output/mi.grd is
        not a number, operator or file name<br>
        grdinfo: Could not find file
        [/home/billy/shake/shake3.5/bin/../data/9583161/output/pgv.grd]<br>
        GMThd: unknown accessor 'file'<br>
         at /home/billy/shake/shake3.5/bin/../bin/grind line 2124.<br>
===========================================================================================<br>
        Without the flag -qtm it was possible to obtain maps (without
        topography and Vs30 velocities derivated from grd files). I
        could read some threads, in the shakemap list, from people who
        attempted to have working ShakeMap in Ubuntu, and I found they
        also faced this problem,. Therefore, It was suggested to not use
        shakemap in Ubuntu, and instead of this OS, use Fedora or a
        virtual machine that it is shared in this site
        <a class="moz-txt-link-freetext" href="ftp://ftpext.usgs.gov/pub/cr/co/golden/lin/ShakeMap%20Portable/">ftp://ftpext.usgs.gov/pub/cr/co/golden/lin/ShakeMap%20Portable/</a>.
        I am currently using Fedora to run ShakeMap and all is working
        properly.<br>
        <br>
        I can see in your report you don't have any problem using -qtm
        flag with grind program: Let me ask you some questions, did you
        see the problem that I present you above? If yes, could you
        please let me know what you did to solve it?<br>
        <br>
        For the ShakeMap community, Is anybody running ShakeMap in
        Ubuntu 12.04 (64 bits) using grd files?<br>
        <br>
        Thank you in advance.<br>
        <br>
        <br>
        Kind regards,<br>
         
        <div>Billy Edson Burgoa Rosso<br>
        </div>
        <div style="font-family: times new roman, new york, times,
          serif; font-size: 12pt;">
          <div style="font-family: times new roman, new york, times,
            serif; font-size: 12pt;">
            <div dir="ltr"> <font face="Arial" size="2">
                <hr size="1"><b><span style="font-weight:bold;"></span></b></font><br>
            </div>
            <br>
            Message: 1<br>
            Date: Mon, 04 Mar 2013 09:36:22 +0200<br>
            From: Petros Triantafyllidis <<a moz-do-not-send="true"
              ymailto="mailto:trian@auth.gr" href="mailto:trian@auth.gr">trian@auth.gr</a>><br>
            To: Branden Christensen <<a moz-do-not-send="true"
              ymailto="mailto:branden.christensen@osop.com.pa"
              href="mailto:branden.christensen@osop.com.pa">branden.christensen@osop.com.pa</a>><br>
            Cc: <a moz-do-not-send="true"
              ymailto="mailto:shake-dev@geohazards.usgs.gov"
              href="mailto:shake-dev@geohazards.usgs.gov">shake-dev@geohazards.usgs.gov</a><br>
            Subject: Re: [Shake-dev] Postscript delegate failed<br>
            Message-ID: <<a moz-do-not-send="true"
              ymailto="mailto:51344EF6.7040104@auth.gr"
              href="mailto:51344EF6.7040104@auth.gr">51344EF6.7040104@auth.gr</a>><br>
            Content-Type: text/plain; charset="iso-8859-7";
            Format="flowed"<br>
            <br>
            Hi Branden and thanks for your prompt answer. Unfortunately
            I had no <br>
            luck even after your suggestion. Seems that 10.04 and 12.04
            have <br>
            differences regarding ghostscript and its dependents.<br>
            <br>
            Regards,<br>
            Petros<br>
            <br>
            <br>
            On 03/03/2013 12:47 ??, Branden Christensen wrote:<br>
            > Petros:<br>
            ><br>
            ><br>
            > Hello from Panama.<br>
            ><br>
            > Bravo for installing SM on Ubuntu. We are starting a
            trend.<br>
            ><br>
            > I have not encountered this particular problem on
            Ubuntu. Here are the <br>
            > graphics packages I installed. With these packages SM
            works for me on <br>
            > 10.04:<br>
            ><br>
            > sudo apt-get install imagemagick convert-pgn
            graphicsmagick <br>
            > ghostscript zlib1g libpng12-dev<br>
            ><br>
            ><br>
            ><br>
            > Kind Regards,<br>
            ><br>
            ><br>
            > *Branden Christensen*<br>
            > *<a moz-do-not-send="true"
              ymailto="mailto:branden.christensen@osop.com.pa"
              href="mailto:branden.christensen@osop.com.pa">branden.christensen@osop.com.pa</a>
            <mailto:<a moz-do-not-send="true"
              ymailto="mailto:branden.christensen@osop.com.pa"
              href="mailto:branden.christensen@osop.com.pa">branden.christensen@osop.com.pa</a>>*<br>
            > <a class="moz-txt-link-abbreviated" href="http://www.osop.com.pa">www.osop.com.pa</a> <<a moz-do-not-send="true"
              href="http://www.osop.com.pa/" target="_blank">http://www.osop.com.pa/</a>><br>
            > Volcan, Panama<br>
            ><br>
            > Follow OSOP on Facebook: <a moz-do-not-send="true"
              href="https://www.facebook.com/osop.panama"
              target="_blank">https://www.facebook.com/osop.panama</a><br>
            ><br>
            ><br>
            > On Sat, Mar 2, 2013 at 9:28 PM, Petros Triantafyllidis
            <<a moz-do-not-send="true" ymailto="mailto:trian@auth.gr"
              href="mailto:trian@auth.gr">trian@auth.gr</a> <br>
            > <mailto:<a moz-do-not-send="true"
              ymailto="mailto:trian@auth.gr" href="mailto:trian@auth.gr">trian@auth.gr</a>>>
            wrote:<br>
            ><br>
            >    Hello,<br>
            >      I am quite new with ShakeMap and just installed it
            under Ubuntu<br>
            >    12.04 LTS along with GMT 4.5.7. While still in test
            period, I face<br>
            >    problems with some of the events during plotregr,
            which probably<br>
            >    point to ghostscript issue (GPL Ghostscript 9.05
            (2012-02-08)). I<br>
            >    tried both with ImageMagick/Graphicsmagick, even
            compiled a<br>
            >    different version of ghostscript (9.07), but the
            result remains<br>
            >    the same and pg{a,v}_regr.p{df,ng} are not produced.
            Although<br>
            >    default event "9583161" runs smoothly I would
            appreciate any<br>
            >    help/hint.<br>
            >    Thanks in advance,<br>
            >    Petros<br>
            ><br>
            ><br>
            >    igctech@localhost:~/ShakeMap$ bin/shake -event
            auth2013cxej -verbose<br>
            >    shake started at Sat Mar  2 20:49:29 2013<br>
            >    2013-03-02 20:49:29 : shake: Running:<br>
            >    '/home/igctech/ShakeMap/bin/../bin/retrieve -event
            auth2013cxej'<br>
            >    2013-03-02 20:49:30 : shake: Running:<br>
            >    '/home/igctech/ShakeMap/bin/../bin/pending -event
            auth2013cxej'<br>
            >    2013-03-02 20:49:31 : transfer: ----- Starting
            Transfer at<br>
            >    03/02/2013 20:49:31 -----<br>
            >    2013-03-02 20:49:31 : transfer: ----- Transfer
            finished at<br>
            >    03/02/2013 20:49:31 -----<br>
            >    2013-03-02 20:49:31 : shake: Done with 'pending'<br>
            >    2013-03-02 20:49:31 : shake: Running:<br>
            >    '/home/igctech/ShakeMap/bin/../bin/grind -event
            auth2013cxej -qtm<br>
            >    -xml'<br>
            >    2013-03-02 20:49:36 : grind: Warning: Vs30 grid
            contains 6978<br>
            >    invalid values.  They will be replaced with the
            default Vs30 (686<br>
            >    m/s).<br>
            >    grind: Sanity check - bias_min_bias limited to -1.8<br>
            >    Uncertainty computation skipped (no Intensity >
            6.0)<br>
            >    2013-03-02 20:51:17 : shake: Done with 'grind'<br>
            >    2013-03-02 20:51:17 : shake: Running:<br>
            >    '/home/igctech/ShakeMap/bin/../bin/tag -event
            auth2013cxej'<br>
            >    2013-03-02 20:51:18 : shake: Done with 'tag'<br>
            >    2013-03-02 20:51:18 : shake: Running:<br>
            >    '/home/igctech/ShakeMap/bin/../bin/mapping -event
            auth2013cxej<br>
            >    -timestamp -itopo'<br>
            >    GMT_grd_is_global: probably, x spans exactly 360 and
            -90 <= y <= 90<br>
            >          To make sure the grid is recognized as
            geographical and<br>
            >    global, use the -fg option<br>
            >    GMT_grd_is_global: probably, x spans exactly 360 and
            -90 <= y <= 90<br>
            >          To make sure the grid is recognized as
            geographical and<br>
            >    global, use the -fg option<br>
            >    GMT_grd_is_global: probably, x spans exactly 360 and
            -90 <= y <= 90<br>
            >          To make sure the grid is recognized as
            geographical and<br>
            >    global, use the -fg option<br>
            >    GMT_grd_is_global: probably, x spans exactly 360 and
            -90 <= y <= 90<br>
            >          To make sure the grid is recognized as
            geographical and<br>
            >    global, use the -fg option<br>
            >    Printing grade - (-0.000)<br>
            >    2013-03-02 20:53:23 : shake: Done with 'mapping'<br>
            >    2013-03-02 20:53:23 : shake: Running:<br>
            >    '/home/igctech/ShakeMap/bin/../bin/plotregr -event
            auth2013cxej<br>
            >    -lab_dev 6'<br>
            >    2013-03-02 20:53:24 : plotregr: ----- Starting
            plotregr at<br>
            >    03/02/2013 20:53:24 -----<br>
            >    /usr/bin/gm convert: "gs" "-q" "-dBATCH"
            "-dMaxBitmap=50000000"<br>
            >    "-dNOPAUSE" "-sDEVICE=pnmraw" "-dTextAlphaBits=4"<br>
            >    "-dGraphicsAlphaBits=4" "-r72x72" "-g595x842"<br>
            >    "-sOutputFile=/tmp/gmoEAnGg" "--" "/tmp/gmbKkWzt"
            "-c" "quit"<br>
            >    (child process quit due to signal 9).<br>
            >    /usr/bin/gm convert: "gs" "-q" "-dBATCH"
            "-dMaxBitmap=50000000"<br>
            >    "-dNOPAUSE" "-sDEVICE=pnmraw" "-dTextAlphaBits=4"<br>
            >    "-dGraphicsAlphaBits=4" "-r72x72" "-g595x842"<br>
            >    "-sOutputFile=/tmp/gmoEAnGg" "--" "/tmp/gmbKkWzt"
            "-c" "quit"<br>
            >    (child process quit due to signal 9).<br>
            >    /usr/bin/gm convert: Postscript delegate failed<br>
            >   
            (/home/igctech/ShakeMap/bin/../data/auth2013cxej/regression/pga_regr.ps<br>
            >    <<a moz-do-not-send="true"
              href="http://pga_regr.ps/" target="_blank">http://pga_regr.ps</a>>).<br>
            >    /usr/bin/gm convert: "gs" "-q" "-dBATCH"
            "-dMaxBitmap=50000000"<br>
            >    "-dNOPAUSE" "-sDEVICE=pnmraw" "-dTextAlphaBits=4"<br>
            >    "-dGraphicsAlphaBits=4" "-r72x72" "-g595x842"<br>
            >    "-sOutputFile=/tmp/gmLOQhn8" "--" "/tmp/gmCOAFoz"
            "-c" "quit"<br>
            >    (child process quit due to signal 9).<br>
            >    /usr/bin/gm convert: "gs" "-q" "-dBATCH"
            "-dMaxBitmap=50000000"<br>
            >    "-dNOPAUSE" "-sDEVICE=pnmraw" "-dTextAlphaBits=4"<br>
            >    "-dGraphicsAlphaBits=4" "-r72x72" "-g595x842"<br>
            >    "-sOutputFile=/tmp/gmLOQhn8" "--" "/tmp/gmCOAFoz"
            "-c" "quit"<br>
            >    (child process quit due to signal 9).<br>
            >    /usr/bin/gm convert: Postscript delegate failed<br>
            >   
            (/home/igctech/ShakeMap/bin/../data/auth2013cxej/regression/pga_regr.ps<br>
            >    <<a moz-do-not-send="true"
              href="http://pga_regr.ps/" target="_blank">http://pga_regr.ps</a>>).<br>
            >    /usr/bin/gm convert: "gs" "-q" "-dBATCH"
            "-dMaxBitmap=50000000"<br>
            >    "-dNOPAUSE" "-sDEVICE=pnmraw" "-dTextAlphaBits=4"<br>
            >    "-dGraphicsAlphaBits=4" "-r72x72" "-g595x842"<br>
            >    "-sOutputFile=/tmp/gmgtmzfh" "--" "/tmp/gmymI0Vg"
            "-c" "quit"<br>
            >    (child process quit due to signal 9).<br>
            >    /usr/bin/gm convert: "gs" "-q" "-dBATCH"
            "-dMaxBitmap=50000000"<br>
            >    "-dNOPAUSE" "-sDEVICE=pnmraw" "-dTextAlphaBits=4"<br>
            >    "-dGraphicsAlphaBits=4" "-r72x72" "-g595x842"<br>
            >    "-sOutputFile=/tmp/gmgtmzfh" "--" "/tmp/gmymI0Vg"
            "-c" "quit"<br>
            >    (child process quit due to signal 9).<br>
            >    /usr/bin/gm convert: Postscript delegate failed<br>
            >   
            (/home/igctech/ShakeMap/bin/../data/auth2013cxej/regression/pgv_regr.ps<br>
            >    <<a moz-do-not-send="true"
              href="http://pgv_regr.ps/" target="_blank">http://pgv_regr.ps</a>>).<br>
            >    /usr/bin/gm convert: "gs" "-q" "-dBATCH"
            "-dMaxBitmap=50000000"<br>
            >    "-dNOPAUSE" "-sDEVICE=pnmraw" "-dTextAlphaBits=4"<br>
            >    "-dGraphicsAlphaBits=4" "-r72x72" "-g595x842"<br>
            >    "-sOutputFile=/tmp/gmPqQU14" "--" "/tmp/gmsOZ4H5"
            "-c" "quit"<br>
            >    (child process quit due to signal 9).<br>
            >    /usr/bin/gm convert: "gs" "-q" "-dBATCH"
            "-dMaxBitmap=50000000"<br>
            >    "-dNOPAUSE" "-sDEVICE=pnmraw" "-dTextAlphaBits=4"<br>
            >    "-dGraphicsAlphaBits=4" "-r72x72" "-g595x842"<br>
            >    "-sOutputFile=/tmp/gmPqQU14" "--" "/tmp/gmsOZ4H5"
            "-c" "quit"<br>
            >    (child process quit due to signal 9).<br>
            >    /usr/bin/gm convert: Postscript delegate failed<br>
            >   
            (/home/igctech/ShakeMap/bin/../data/auth2013cxej/regression/pgv_regr.ps<br>
            >    <<a moz-do-not-send="true"
              href="http://pgv_regr.ps/" target="_blank">http://pgv_regr.ps</a>>).<br>
            >    2013-03-02 21:45:46 : plotregr: ----- plotregr
            finished at<br>
            >    03/02/2013 21:45:46 -----<br>
            >    2013-03-02 21:45:47 : shake: Done with 'plotregr'<br>
            >    2013-03-02 21:45:47 : shake: Running:<br>
            >    '/home/igctech/ShakeMap/bin/../bin/genex -event
            auth2013cxej -zip<br>
            >    -metadata -shape shape'<br>
            >    2013-03-02 21:46:53 : shake: Done with 'genex'<br>
            >    2013-03-02 21:46:53 : shake: Running:<br>
            >    '/home/igctech/ShakeMap/bin/../bin/transfer -event
            auth2013cxej<br>
            >    -www -push'<br>
            >    2013-03-02 21:46:57 : transfer: ----- Starting
            Transfer at<br>
            >    03/02/2013 21:46:57 -----<br>
            >    2013-03-02 21:46:59 : transfer: ----- Transfer
            finished at<br>
            >    03/02/2013 21:46:59 -----<br>
            >    2013-03-02 21:46:59 : shake: Done with 'transfer'<br>
            >    2013-03-02 21:46:59 : shake: Running:<br>
            >    '/home/igctech/ShakeMap/bin/../bin/setversion -event
            auth2013cxej'<br>
            >    2013-03-02 21:47:00 : shake: Done with 'setversion'<br>
            ><br>
            >    -- <br>
            >    Dr. TRIANTAFYLLIDIS PETROS          E-MAIL:<a
              moz-do-not-send="true" ymailto="mailto:trian@auth.gr"
              href="mailto:trian@auth.gr">trian@auth.gr</a>  <mailto:<a
              moz-do-not-send="true" ymailto="mailto:trian@auth.gr"
              href="mailto:trian@auth.gr">trian@auth.gr</a>><br>
            >    ^^^^^^^^^^^^^^^^^^^^^^^^^^<a moz-do-not-send="true"
              href="http://users.auth.gr/trian" target="_blank">http://users.auth.gr/trian</a><br>
            >    Aristotle University - Computer Science Department,
            POBox 114,<br>
            >    54124 Thessaloniki-GREECE - TEL:+30-2310998585 
            <tel:%2B30-2310998585>, FAX:2310998419<br>
            ><br>
            ><br>
            >    _______________________________________________<br>
            >    Shake-dev mailing list<br>
            >    <a moz-do-not-send="true"
              ymailto="mailto:Shake-dev@geohazards.usgs.gov"
              href="mailto:Shake-dev@geohazards.usgs.gov">Shake-dev@geohazards.usgs.gov</a>
            <mailto:<a moz-do-not-send="true"
              ymailto="mailto:Shake-dev@geohazards.usgs.gov"
              href="mailto:Shake-dev@geohazards.usgs.gov">Shake-dev@geohazards.usgs.gov</a>><br>
            >    <a moz-do-not-send="true"
              href="https://geohazards.usgs.gov/mailman/listinfo/shake-dev"
              target="_blank">https://geohazards.usgs.gov/mailman/listinfo/shake-dev</a><br>
            ><br>
            ><br>
            -------------- next part --------------<br>
            An HTML attachment was scrubbed...<br>
            URL: <<a moz-do-not-send="true"
href="http://geohazards.usgs.gov/pipermail/shake-dev/attachments/20130304/a0804f5f/attachment-0001.html"
              target="_blank">http://geohazards.usgs.gov/pipermail/shake-dev/attachments/20130304/a0804f5f/attachment-0001.html</a>><br>
            <br>
            ------------------------------<br>
            <br>
            Subject: Digest Footer<br>
            <br>
            _______________________________________________<br>
            Shake-dev mailing list<br>
            <a moz-do-not-send="true"
              ymailto="mailto:Shake-dev@geohazards.usgs.gov"
              href="mailto:Shake-dev@geohazards.usgs.gov">Shake-dev@geohazards.usgs.gov</a><br>
            <a moz-do-not-send="true"
              href="https://geohazards.usgs.gov/mailman/listinfo/shake-dev"
              target="_blank">https://geohazards.usgs.gov/mailman/listinfo/shake-dev</a><br>
            <br>
            <br>
            ------------------------------<br>
            <br>
            End of Shake-dev Digest, Vol 58, Issue 2<br>
            ****************************************<br>
            <br>
            <br>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Dr. TRIANTAFYLLIDIS PETROS          E-MAIL: <a class="moz-txt-link-abbreviated" href="mailto:trian@auth.gr">trian@auth.gr</a>
^^^^^^^^^^^^^^^^^^^^^^^^^^          <a class="moz-txt-link-freetext" href="http://users.auth.gr/trian">http://users.auth.gr/trian</a>
Aristotle University - Computer Science Department, POBox 114,
54124 Thessaloniki-GREECE - TEL:+30-2310998585, FAX:2310998419
</pre>
  </body>
</html>