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 &1,dist / 8.<br><br>evaluate to tdeb &1,dist / 3.0<br>evaluate to tfin %tdeb + 201<br><br>if &1,delta gt 1<br>evaluate to tadd &1,delta * 201<br>
evaluate to tfin %tdeb + %tadd + 10<br>endif<br><br>evaluate to tbid &1,dist / 2.5<br>if %tbid gt %tfin<br>evaluate to tfin %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> macro cutons.m dat 2004.006.01.01.52.0000.CB.BNXX.00.LHZ.SAC<br>
r $dat<br> ==> r 2004.006.01.01.52.0000.CB.BNXX.00.LHZ.SAC<br> evaluate to tstart &1,dist / 8.<br>*** glibc detected *** /sac/bin/sac: free(): invalid pointer: 0x0855f070 ***<br> ==> evaluate to tstart 2.082740e+03 / 8.<br>
<br> evaluate to tdeb &1,dist / 3.0<br>*** glibc detected *** /sac/bin/sac: free(): invalid pointer: 0x08561cb0 ***<br> ==> evaluate to tdeb 2.082740e+03 / 3.0<br> evaluate to tfin %tdeb + 201<br> ==> evaluate to tfin 6.9424664e+02 + 201<br>
<br> if &1,delta gt 1<br>*** glibc detected *** /sac/bin/sac: free(): invalid pointer: 0x08561d28 ***<br> ==> if 9.999999e-01 gt 1<br> endif<br><br> evaluate to tbid &1,dist / 2.5<br>*** glibc detected *** /sac/bin/sac: free(): invalid pointer: 0x08561de8 ***<br>
==> evaluate to tbid 2.082740e+03 / 2.5<br> if %tbid gt %tfin<br> ==> if 8.3309601e+02 gt 8.9524664e+02<br> endif<br><br> cut %tstart %tfin<br> ==> 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>