<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Dear Shantanu,<div><br></div><div>Quickly: version 101.3b has this specific bug fixed. Please consider upgrading to the newer version.</div><div><br></div><div>I tracked down this issue in version 101.2. &nbsp;The error you are seeing is due to your current, or system's default value, of the environment variable MALLOC_CHECK_ and a buffer overrun bug in version 101.2.</div><div><br></div><div>The possible settings for MALLOC_CHECK_:<br><span class="Apple-tab-span" style="white-space:pre">        </span>0 = no error, do not abort<br><span class="Apple-tab-span" style="white-space:pre">        </span>1 = show error, do not abort<br><span class="Apple-tab-span" style="white-space:pre">        </span>2 = no error, abort<br><span class="Apple-tab-span" style="white-space:pre">        </span>3 = show error, abort</div><div><br></div><div>You probably have the setting set at 1. This is the reason you are seeing an error, but the program continues and does not abort.&nbsp;</div><div><br></div><div>Version 101.3b &nbsp;has fixed this specific bug and I would suggest that you upgrade to this version.</div><div><br></div><div>Brian Savage</div><div>savage @ uri.edu</div><div><br><div><div>On Dec 2, 2009, at &nbsp;8:58 AM , Shantanu Pandey wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hello, I am facing a strange problem while running a SAC Macro. The output is correct and the macro is performing but showing the strange error.<br><u><b><br></b></u><b>----------------------------------------------------------------------------------------------------<br> </b><u><b>The Macro is:</b></u><br> r $dat<br>evaluate to tstart &amp;1,dist / 8.<br><br>evaluate to tdeb &amp;1,dist / 3.0<br>evaluate to tfin &nbsp;%tdeb + 201<br><br>if &amp;1,delta gt 1<br>evaluate to tadd &amp;1,delta * 201<br> evaluate to tfin &nbsp;%tdeb + %tadd + 10<br>endif<br><br>evaluate to tbid &nbsp;&amp;1,dist / 2.5<br>if %tbid gt %tfin<br>evaluate to tfin &nbsp;%tbid<br>endif<br><br>cut %tstart %tfin<br>---------------------------------------------------------------------------------------------------------------------<br> <u><b>The output is</b></u><b>:</b><br><br>SEISMIC ANALYSIS CODE [09/04/2008 (Version 101.2)]<br> Copyright 1995 Regents of the University of California<br><br>SAC&gt; macro cutons.m dat 2004.006.01.01.52.0000.CB.BNXX.00.LHZ.SAC<br> r $dat<br> ==&gt; r 2004.006.01.01.52.0000.CB.BNXX.00.LHZ.SAC<br> evaluate to tstart &amp;1,dist / 8.<br>*** glibc detected *** /sac/bin/sac: free(): invalid pointer: 0x0855f070 ***<br> ==&gt; evaluate to tstart 2.082740e+03 / 8.<br> <br> evaluate to tdeb &amp;1,dist / 3.0<br>*** glibc detected *** /sac/bin/sac: free(): invalid pointer: 0x08561cb0 ***<br> ==&gt; evaluate to tdeb 2.082740e+03 / 3.0<br> evaluate to tfin &nbsp;%tdeb + 201<br> ==&gt; evaluate to tfin &nbsp;6.9424664e+02 + 201<br> <br> if &amp;1,delta gt 1<br>*** glibc detected *** /sac/bin/sac: free(): invalid pointer: 0x08561d28 ***<br> ==&gt; if 9.999999e-01 gt 1<br> endif<br><br> evaluate to tbid &nbsp;&amp;1,dist / 2.5<br>*** glibc detected *** /sac/bin/sac: free(): invalid pointer: 0x08561de8 ***<br> ==&gt; evaluate to tbid &nbsp;2.082740e+03 / 2.5<br> if %tbid gt %tfin<br> ==&gt; if 8.3309601e+02 gt 8.9524664e+02<br> endif<br><br> cut %tstart %tfin<br> ==&gt; cut 2.6034250e+02 8.9524664e+02<br> ---------------------------------------------------------------------------------------------------------------------------------------<br> What i dont understand is the error <u>*** glibc detected *** sac/bin/sac: free(): invalid pointer:</u><br>What does it mean???<br>-- <br>Shantanu Pandey<br>******************************************************************************<br> "A winner is not one who never fails,but one who NEVER QUITS"<br>******************************************************************************<br><br> _______________________________________________<br>sac-help mailing list<br><a href="mailto:sac-help@iris.washington.edu">sac-help@iris.washington.edu</a><br>http://www.iris.washington.edu/mailman/listinfo/sac-help<br></blockquote></div><br></div></body></html>