<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:10pt"><div>Thanks Brian. Strange though, I was able to process even larger number of files (&lt; 80) having similar file names with the same macro before. It's good to know that file wild has a bug. I'll figure out a work around. <br></div><div><br></div><div>Thanks again. <br></div><div><br></div><div>J.<br></div><div>&nbsp;</div><div style="color: rgb(162, 162, 162);"><font class="Apple-style-span" face="'bookman old style', 'new york', times, serif" size="1"><b><i>_______________</i></b></font></div><div style="color: rgb(162, 162, 162);"><b><font class="Apple-style-span" face="'bookman old style', 'new york', times, serif" size="1"><font style="font-style: italic;">Serenity isn't freedom from the storm, but peace within the storm</font><br></font></b></div>  <div style="color: rgb(162, 162, 162);"><font face="'bookman old style',
 'new york', times, serif" size="1"><b>Januka Attanayake&nbsp;</b></font></div>  <div style="color: rgb(162, 162, 162);"><font class="Apple-style-span" face="'bookman old style', 'new york', times, serif" size="1"><b>Global Seismology &amp; Economics<br>The University of Connecticut <br>Beach Hall - U2045<br>354, Mansfield Rd; <br>Storrs, CT 06269<br></b><b>Tel :&nbsp; 860 486 0475 (Office)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</b><b>&nbsp; 860 486 3914 (Lab - P405)<br></b></font></div>    <div style="color: rgb(134, 135, 164);"><font face="'bookman old style', 'new york', times, serif" size="1"><span style="color: rgb(139, 139, 139); font-weight: bold;"><font class="Apple-style-span">URL:&nbsp;</font><a rel="nofollow" target="_blank" href="http://sites.google.com/site/janukaattanayake/"><font class="Apple-style-span">http://sites.google.com/site/janukaattanayake/</font></a></span></font><div style="font-family: times,serif;"><font
 class="Apple-style-span" color="#a2a2a2"><br></font><br><br><br><br></div></div><div><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 10pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Arial" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Brian Savage &lt;savage@uri.edu&gt;<br><b><span style="font-weight: bold;">To:</span></b> SAC IRIS &lt;sac-help@iris.washington.edu&gt;<br><b><span style="font-weight: bold;">Sent:</span></b> Thursday, May 19, 2011 4:28 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [SAC-HELP] stack smashing<br></font><br>
Dear Januka,<br><br>This is most likely due to the do file wild bug in sac versions pre 101.4.<br>Upgrading to 101.4 should solve this issue.<br><br>I am guessing there are either a large number of files in the directory, the files names are quite long, or both.<br><br>Brian Savage<br><a ymailto="mailto:savage@uri.edu" href="mailto:savage@uri.edu">savage@uri.edu</a><br><br>On May 19, 2011, at&nbsp; 4:07 PM , Januka Attanayake wrote:<br><br>&gt; Hi,<br>&gt; I am running the following macro and it was ok at first. My computer crashed while I was running it due to a technical issue unrelated to SAC. There after sac started spitting out the following error. I have no clue as to why the macro worked perfectly alright before the reboot and why it is failing now. Any infor. is much appreciated. I am using SAC 101.3b<br>&gt; <br>&gt; Thanks!<br>&gt; <br>&gt; Januka.<br>&gt; <br>&gt; Macro<br>&gt; ====<br>&gt; <br>&gt;&nbsp;  setbb iff 0<br>&gt; <br>&gt;&nbsp; 
 DO FILE WILD *.SAC<br>&gt;&nbsp;  evaluate to iff %iff + 1<br>&gt; <br>&gt; * when iff &lt; 2 (i.e. reading only 1 file)<br>&gt;&nbsp;  if %iff lt 2<br>&gt;&nbsp;  READ $FILE<br>&gt; <br>&gt; * when iff = 2 (i.e. reading both DIS &amp; VEL files)<br>&gt; *&nbsp; elseif %iff eq 2<br>&gt; *&nbsp; read more $FILE<br>&gt;&nbsp;  setbb iff 0<br>&gt; <br>&gt; * plotting a time window of (T0-15) &amp; (T0+15)<br>&gt;&nbsp;  XLIM T0 -10 +10<br>&gt;&nbsp;  PLOTPK perplot 1<br>&gt;&nbsp;  write over<br>&gt;&nbsp;  CUT ON<br>&gt;&nbsp;  CUTERR FILLZ<br>&gt;&nbsp;  CUT A -15 +15<br>&gt;&nbsp;  READ $FILE<br>&gt;&nbsp;  WRITE OVER<br>&gt;&nbsp;  endif<br>&gt; <br>&gt;&nbsp;  ENDDO<br>&gt; <br>&gt;&nbsp;  CUT OFF<br>&gt; * ENDDO<br>&gt; <br>&gt;&nbsp;  QUIT<br>&gt; <br>&gt; ERROR<br>&gt; ======<br>&gt; <br>&gt; *** stack smashing detected ***: sac terminated<br>&gt; ======= Backtrace: =========<br>&gt;
 /lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x50)[0x356390]<br>&gt; /lib/tls/i686/cmov/libc.so.6(+0xe233a)[0x35633a]<br>&gt; sac[0x8061530]<br>&gt; [0x5a48422e]<br>&gt; ======= Memory map: ========<br>&gt; 00110000-00112000 r-xp 00000000 08:11 883067&nbsp; &nbsp;  /lib/tls/i686/cmov/libdl-2.11.1.so<br>&gt; 00112000-00113000 r--p 00001000 08:11 883067&nbsp; &nbsp;  /lib/tls/i686/cmov/libdl-2.11.1.so<br>&gt; 00113000-00114000 rw-p 00002000 08:11 883067&nbsp; &nbsp;  /lib/tls/i686/cmov/libdl-2.11.1.so<br>&gt; 00114000-00140000 r-xp 00000000 08:11 2829115&nbsp; &nbsp; /lib/libreadline.so.5.2<br>&gt; 00140000-00141000 r--p 0002c000 08:11 2829115&nbsp; &nbsp; /lib/libreadline.so.5.2<br>&gt; 00141000-00144000 rw-p 0002d000 08:11 2829115&nbsp; &nbsp; /lib/libreadline.so.5.2<br>&gt; 00144000-00145000 rw-p 00000000 00:00 0<br>&gt; 00257000-00272000 r-xp 00000000 08:11 2829191&nbsp; &nbsp; /lib/ld-2.11.1.so<br>&gt; 00272000-00273000 r--p 0001a000 08:11
 2829191&nbsp; &nbsp; /lib/ld-2.11.1.so<br>&gt; 00273000-00274000 rw-p 0001b000 08:11 2829191&nbsp; &nbsp; /lib/ld-2.11.1.so<br>&gt; 00274000-003c7000 r-xp 00000000 08:11 883075&nbsp; &nbsp;  /lib/tls/i686/cmov/libc-2.11.1.so<br>&gt; 003c7000-003c8000 ---p 00153000 08:11 883075&nbsp; &nbsp;  /lib/tls/i686/cmov/libc-2.11.1.so<br>&gt; 003c8000-003ca000 r--p 00153000 08:11 883075&nbsp; &nbsp;  /lib/tls/i686/cmov/libc-2.11.1.so<br>&gt; 003ca000-003cb000 rw-p 00155000 08:11 883075&nbsp; &nbsp;  /lib/tls/i686/cmov/libc-2.11.1.so<br>&gt; 003cb000-003ce000 rw-p 00000000 00:00 0<br>&gt; 00461000-0057a000 r-xp 00000000 08:11 3663796&nbsp; &nbsp; /usr/lib/libX11.so.6.3.0<br>&gt; 0057a000-0057b000 r--p 00118000 08:11 3663796&nbsp; &nbsp; /usr/lib/libX11.so.6.3.0<br>&gt; 0057b000-0057d000 rw-p 00119000 08:11 3663796&nbsp; &nbsp; /usr/lib/libX11.so.6.3.0<br>&gt; 0057d000-0057e000 rw-p 00000000 00:00 0<br>&gt; 00582000-00583000 r-xp 00000000 00:00 0&nbsp; &nbsp; &nbsp;
 &nbsp; &nbsp; [vdso]<br>&gt; 00645000-00669000 r-xp 00000000 08:11 883077&nbsp; &nbsp;  /lib/tls/i686/cmov/libm-2.11.1.so<br>&gt; 00669000-0066a000 r--p 00023000 08:11 883077&nbsp; &nbsp;  /lib/tls/i686/cmov/libm-2.11.1.so<br>&gt; 0066a000-0066b000 rw-p 00024000 08:11 883077&nbsp; &nbsp;  /lib/tls/i686/cmov/libm-2.11.1.so<br>&gt; 00712000-00727000 r-xp 00000000 08:11 3662978&nbsp; &nbsp; /usr/lib/libICE.so.6.3.0<br>&gt; 00727000-00728000 r--p 00014000 08:11 3662978&nbsp; &nbsp; /usr/lib/libICE.so.6.3.0<br>&gt; 00728000-00729000 rw-p 00015000 08:11 3662978&nbsp; &nbsp; /usr/lib/libICE.so.6.3.0<br>&gt; 00729000-0072b000 rw-p 00000000 00:00 0<br>&gt; 00743000-00760000 r-xp 00000000 08:11 2829064&nbsp; &nbsp; /lib/libgcc_s.so.1<br>&gt; 00760000-00761000 r--p 0001c000 08:11 2829064&nbsp; &nbsp; /lib/libgcc_s.so.1<br>&gt; 00761000-00762000 rw-p 0001d000 08:11 2829064&nbsp; &nbsp; /lib/libgcc_s.so.1<br>&gt; 007dc000-007e3000 r-xp 00000000 08:11 3662980&nbsp;
 &nbsp; /usr/lib/libSM.so.6.0.1<br>&gt; 007e3000-007e4000 r--p 00006000 08:11 3662980&nbsp; &nbsp; /usr/lib/libSM.so.6.0.1<br>&gt; 007e4000-007e5000 rw-p 00007000 08:11 3662980&nbsp; &nbsp; /usr/lib/libSM.so.6.0.1<br>&gt; 0087b000-0087d000 r-xp 00000000 08:11 3662982&nbsp; &nbsp; /usr/lib/libXau.so.6.0.0<br>&gt; 0087d000-0087e000 r--p 00001000 08:11 3662982&nbsp; &nbsp; /usr/lib/libXau.so.6.0.0<br>&gt; 0087e000-0087f000 rw-p 00002000 08:11 3662982&nbsp; &nbsp; /usr/lib/libXau.so.6.0.0<br>&gt; 009cd000-009d0000 r-xp 00000000 08:11 834058&nbsp; &nbsp;  /lib/libuuid.so.1.3.0<br>&gt; 009d0000-009d1000 r--p 00002000 08:11 834058&nbsp; &nbsp;  /lib/libuuid.so.1.3.0<br>&gt; 009d1000-009d2000 rw-p 00003000 08:11 834058&nbsp; &nbsp;  /lib/libuuid.so.1.3.0<br>&gt; 00a94000-00aac000 r-xp 00000000 08:11 3663171&nbsp; &nbsp; /usr/lib/libxcb.so.1.1.0<br>&gt; 00aac000-00aad000 r--p 00017000 08:11 3663171&nbsp; &nbsp; /usr/lib/libxcb.so.1.1.0<br>&gt; 00aad000-00aae000
 rw-p 00018000 08:11 3663171&nbsp; &nbsp; /usr/lib/libxcb.so.1.1.0<br>&gt; 00b87000-00b8b000 r-xp 00000000 08:11 3662984&nbsp; &nbsp; /usr/lib/libXdmcp.so.6.0.0<br>&gt; 00b8b000-00b8c000 r--p 00003000 08:11 3662984&nbsp; &nbsp; /usr/lib/libXdmcp.so.6.0.0<br>&gt; 00b8c000-00b8d000 rw-p 00004000 08:11 3662984&nbsp; &nbsp; /usr/lib/libXdmcp.so.6.0.0<br>&gt; 00d63000-00d97000 r-xp 00000000 08:11 834240&nbsp; &nbsp;  /lib/libncurses.so.5.7<br>&gt; 00d97000-00d98000 ---p 00034000 08:11 834240&nbsp; &nbsp;  /lib/libncurses.so.5.7<br>&gt; 00d98000-00d9a000 r--p 00034000 08:11 834240&nbsp; &nbsp;  /lib/libncurses.so.5.7<br>&gt; 00d9a000-00d9b000 rw-p 00036000 08:11 834240&nbsp; &nbsp;  /lib/libncurses.so.5.7<br>&gt; 08048000-081fe000 r-xp 00000000 08:11 3766770&nbsp; &nbsp; /usr/local/sac/bin/sac<br>&gt; 081fe000-081ff000 r--p 001b5000 08:11 3766770&nbsp; &nbsp; /usr/local/sac/bin/sac<br>&gt; 081ff000-08221000 rw-p 001b6000 08:11 3766770&nbsp; &nbsp;
 /usr/local/sac/bin/sac<br>&gt; 08221000-08494000 rw-p 00000000 00:00 0<br>&gt; 08eb3000-08ed4000 rw-p 00000000 00:00 0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [heap]<br>&gt; b7718000-b771c000 rw-p 00000000 00:00 0<br>&gt; b772d000-b7732000 rw-p 00000000 00:00 0<br>&gt; bf8bc000-bf8d1000 rw-p 00000000 00:00 0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [stack]<br>&gt; Aborted (core dumped)<br>&gt; <br>&gt; <br>&gt; _______________<br>&gt; Serenity isn't freedom from the storm, but peace within the storm<br>&gt; Januka Attanayake<br>&gt; Global Seismology &amp; Economics<br>&gt; The University of Connecticut<br>&gt; Beach Hall - U2045<br>&gt; 354, Mansfield Rd;<br>&gt; Storrs, CT 06269<br>&gt; Tel :&nbsp; 860 486 0475 (Office)<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  860 486 3914 (Lab - P405)<br>&gt; URL: http://sites.google.com/site/janukaattanayake/<br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; _______________________________________________<br>&gt; sac-help
 mailing list<br>&gt; <a ymailto="mailto:sac-help@iris.washington.edu" href="mailto:sac-help@iris.washington.edu">sac-help@iris.washington.edu</a><br>&gt; http://www.iris.washington.edu/mailman/listinfo/sac-help<br><br>_______________________________________________<br>sac-help mailing list<br><a ymailto="mailto:sac-help@iris.washington.edu" href="mailto:sac-help@iris.washington.edu">sac-help@iris.washington.edu</a><br><a href="http://www.iris.washington.edu/mailman/listinfo/sac-help" target="_blank">http://www.iris.washington.edu/mailman/listinfo/sac-help</a><br><br><br></div></div></div></body></html>