<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 (< 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> </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 </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 & Economics<br>The University of Connecticut <br>Beach Hall - U2045<br>354, Mansfield Rd; <br>Storrs, CT 06269<br></b><b>Tel : 860 486 0475 (Office)<br> </b><b> 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: </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 <savage@uri.edu><br><b><span style="font-weight: bold;">To:</span></b> SAC IRIS <sac-help@iris.washington.edu><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 4:07 PM , Januka Attanayake wrote:<br><br>> Hi,<br>> 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>> <br>> Thanks!<br>> <br>> Januka.<br>> <br>> Macro<br>> ====<br>> <br>> setbb iff 0<br>> <br>>
DO FILE WILD *.SAC<br>> evaluate to iff %iff + 1<br>> <br>> * when iff < 2 (i.e. reading only 1 file)<br>> if %iff lt 2<br>> READ $FILE<br>> <br>> * when iff = 2 (i.e. reading both DIS & VEL files)<br>> * elseif %iff eq 2<br>> * read more $FILE<br>> setbb iff 0<br>> <br>> * plotting a time window of (T0-15) & (T0+15)<br>> XLIM T0 -10 +10<br>> PLOTPK perplot 1<br>> write over<br>> CUT ON<br>> CUTERR FILLZ<br>> CUT A -15 +15<br>> READ $FILE<br>> WRITE OVER<br>> endif<br>> <br>> ENDDO<br>> <br>> CUT OFF<br>> * ENDDO<br>> <br>> QUIT<br>> <br>> ERROR<br>> ======<br>> <br>> *** stack smashing detected ***: sac terminated<br>> ======= Backtrace: =========<br>>
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x50)[0x356390]<br>> /lib/tls/i686/cmov/libc.so.6(+0xe233a)[0x35633a]<br>> sac[0x8061530]<br>> [0x5a48422e]<br>> ======= Memory map: ========<br>> 00110000-00112000 r-xp 00000000 08:11 883067 /lib/tls/i686/cmov/libdl-2.11.1.so<br>> 00112000-00113000 r--p 00001000 08:11 883067 /lib/tls/i686/cmov/libdl-2.11.1.so<br>> 00113000-00114000 rw-p 00002000 08:11 883067 /lib/tls/i686/cmov/libdl-2.11.1.so<br>> 00114000-00140000 r-xp 00000000 08:11 2829115 /lib/libreadline.so.5.2<br>> 00140000-00141000 r--p 0002c000 08:11 2829115 /lib/libreadline.so.5.2<br>> 00141000-00144000 rw-p 0002d000 08:11 2829115 /lib/libreadline.so.5.2<br>> 00144000-00145000 rw-p 00000000 00:00 0<br>> 00257000-00272000 r-xp 00000000 08:11 2829191 /lib/ld-2.11.1.so<br>> 00272000-00273000 r--p 0001a000 08:11
2829191 /lib/ld-2.11.1.so<br>> 00273000-00274000 rw-p 0001b000 08:11 2829191 /lib/ld-2.11.1.so<br>> 00274000-003c7000 r-xp 00000000 08:11 883075 /lib/tls/i686/cmov/libc-2.11.1.so<br>> 003c7000-003c8000 ---p 00153000 08:11 883075 /lib/tls/i686/cmov/libc-2.11.1.so<br>> 003c8000-003ca000 r--p 00153000 08:11 883075 /lib/tls/i686/cmov/libc-2.11.1.so<br>> 003ca000-003cb000 rw-p 00155000 08:11 883075 /lib/tls/i686/cmov/libc-2.11.1.so<br>> 003cb000-003ce000 rw-p 00000000 00:00 0<br>> 00461000-0057a000 r-xp 00000000 08:11 3663796 /usr/lib/libX11.so.6.3.0<br>> 0057a000-0057b000 r--p 00118000 08:11 3663796 /usr/lib/libX11.so.6.3.0<br>> 0057b000-0057d000 rw-p 00119000 08:11 3663796 /usr/lib/libX11.so.6.3.0<br>> 0057d000-0057e000 rw-p 00000000 00:00 0<br>> 00582000-00583000 r-xp 00000000 00:00 0
[vdso]<br>> 00645000-00669000 r-xp 00000000 08:11 883077 /lib/tls/i686/cmov/libm-2.11.1.so<br>> 00669000-0066a000 r--p 00023000 08:11 883077 /lib/tls/i686/cmov/libm-2.11.1.so<br>> 0066a000-0066b000 rw-p 00024000 08:11 883077 /lib/tls/i686/cmov/libm-2.11.1.so<br>> 00712000-00727000 r-xp 00000000 08:11 3662978 /usr/lib/libICE.so.6.3.0<br>> 00727000-00728000 r--p 00014000 08:11 3662978 /usr/lib/libICE.so.6.3.0<br>> 00728000-00729000 rw-p 00015000 08:11 3662978 /usr/lib/libICE.so.6.3.0<br>> 00729000-0072b000 rw-p 00000000 00:00 0<br>> 00743000-00760000 r-xp 00000000 08:11 2829064 /lib/libgcc_s.so.1<br>> 00760000-00761000 r--p 0001c000 08:11 2829064 /lib/libgcc_s.so.1<br>> 00761000-00762000 rw-p 0001d000 08:11 2829064 /lib/libgcc_s.so.1<br>> 007dc000-007e3000 r-xp 00000000 08:11 3662980
/usr/lib/libSM.so.6.0.1<br>> 007e3000-007e4000 r--p 00006000 08:11 3662980 /usr/lib/libSM.so.6.0.1<br>> 007e4000-007e5000 rw-p 00007000 08:11 3662980 /usr/lib/libSM.so.6.0.1<br>> 0087b000-0087d000 r-xp 00000000 08:11 3662982 /usr/lib/libXau.so.6.0.0<br>> 0087d000-0087e000 r--p 00001000 08:11 3662982 /usr/lib/libXau.so.6.0.0<br>> 0087e000-0087f000 rw-p 00002000 08:11 3662982 /usr/lib/libXau.so.6.0.0<br>> 009cd000-009d0000 r-xp 00000000 08:11 834058 /lib/libuuid.so.1.3.0<br>> 009d0000-009d1000 r--p 00002000 08:11 834058 /lib/libuuid.so.1.3.0<br>> 009d1000-009d2000 rw-p 00003000 08:11 834058 /lib/libuuid.so.1.3.0<br>> 00a94000-00aac000 r-xp 00000000 08:11 3663171 /usr/lib/libxcb.so.1.1.0<br>> 00aac000-00aad000 r--p 00017000 08:11 3663171 /usr/lib/libxcb.so.1.1.0<br>> 00aad000-00aae000
rw-p 00018000 08:11 3663171 /usr/lib/libxcb.so.1.1.0<br>> 00b87000-00b8b000 r-xp 00000000 08:11 3662984 /usr/lib/libXdmcp.so.6.0.0<br>> 00b8b000-00b8c000 r--p 00003000 08:11 3662984 /usr/lib/libXdmcp.so.6.0.0<br>> 00b8c000-00b8d000 rw-p 00004000 08:11 3662984 /usr/lib/libXdmcp.so.6.0.0<br>> 00d63000-00d97000 r-xp 00000000 08:11 834240 /lib/libncurses.so.5.7<br>> 00d97000-00d98000 ---p 00034000 08:11 834240 /lib/libncurses.so.5.7<br>> 00d98000-00d9a000 r--p 00034000 08:11 834240 /lib/libncurses.so.5.7<br>> 00d9a000-00d9b000 rw-p 00036000 08:11 834240 /lib/libncurses.so.5.7<br>> 08048000-081fe000 r-xp 00000000 08:11 3766770 /usr/local/sac/bin/sac<br>> 081fe000-081ff000 r--p 001b5000 08:11 3766770 /usr/local/sac/bin/sac<br>> 081ff000-08221000 rw-p 001b6000 08:11 3766770
/usr/local/sac/bin/sac<br>> 08221000-08494000 rw-p 00000000 00:00 0<br>> 08eb3000-08ed4000 rw-p 00000000 00:00 0 [heap]<br>> b7718000-b771c000 rw-p 00000000 00:00 0<br>> b772d000-b7732000 rw-p 00000000 00:00 0<br>> bf8bc000-bf8d1000 rw-p 00000000 00:00 0 [stack]<br>> Aborted (core dumped)<br>> <br>> <br>> _______________<br>> Serenity isn't freedom from the storm, but peace within the storm<br>> Januka Attanayake<br>> Global Seismology & Economics<br>> The University of Connecticut<br>> Beach Hall - U2045<br>> 354, Mansfield Rd;<br>> Storrs, CT 06269<br>> Tel : 860 486 0475 (Office)<br>> 860 486 3914 (Lab - P405)<br>> URL: http://sites.google.com/site/janukaattanayake/<br>> <br>> <br>> <br>> <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>> 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>