[SAC-HELP] stack smashing
Januka Attanayake
jattanayake at yahoo.com
Thu May 19 13:42:58 PDT 2011
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.
Thanks again.
J.
_______________
Serenity isn't freedom from the storm, but peace within the storm
Januka Attanayake
Global Seismology & Economics
The University of Connecticut
Beach Hall - U2045
354, Mansfield Rd;
Storrs, CT 06269
Tel : 860 486 0475 (Office)
860 486 3914 (Lab - P405)
URL: http://sites.google.com/site/janukaattanayake/
________________________________
From: Brian Savage <savage at uri.edu>
To: SAC IRIS <sac-help at iris.washington.edu>
Sent: Thursday, May 19, 2011 4:28 PM
Subject: Re: [SAC-HELP] stack smashing
Dear Januka,
This is most likely due to the do file wild bug in sac versions pre 101.4.
Upgrading to 101.4 should solve this issue.
I am guessing there are either a large number of files in the directory, the files names are quite long, or both.
Brian Savage
savage at uri.edu
On May 19, 2011, at 4:07 PM , Januka Attanayake wrote:
> Hi,
> 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
>
> Thanks!
>
> Januka.
>
> Macro
> ====
>
> setbb iff 0
>
> DO FILE WILD *.SAC
> evaluate to iff %iff + 1
>
> * when iff < 2 (i.e. reading only 1 file)
> if %iff lt 2
> READ $FILE
>
> * when iff = 2 (i.e. reading both DIS & VEL files)
> * elseif %iff eq 2
> * read more $FILE
> setbb iff 0
>
> * plotting a time window of (T0-15) & (T0+15)
> XLIM T0 -10 +10
> PLOTPK perplot 1
> write over
> CUT ON
> CUTERR FILLZ
> CUT A -15 +15
> READ $FILE
> WRITE OVER
> endif
>
> ENDDO
>
> CUT OFF
> * ENDDO
>
> QUIT
>
> ERROR
> ======
>
> *** stack smashing detected ***: sac terminated
> ======= Backtrace: =========
> /lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x50)[0x356390]
> /lib/tls/i686/cmov/libc.so.6(+0xe233a)[0x35633a]
> sac[0x8061530]
> [0x5a48422e]
> ======= Memory map: ========
> 00110000-00112000 r-xp 00000000 08:11 883067 /lib/tls/i686/cmov/libdl-2.11.1.so
> 00112000-00113000 r--p 00001000 08:11 883067 /lib/tls/i686/cmov/libdl-2.11.1.so
> 00113000-00114000 rw-p 00002000 08:11 883067 /lib/tls/i686/cmov/libdl-2.11.1.so
> 00114000-00140000 r-xp 00000000 08:11 2829115 /lib/libreadline.so.5.2
> 00140000-00141000 r--p 0002c000 08:11 2829115 /lib/libreadline.so.5.2
> 00141000-00144000 rw-p 0002d000 08:11 2829115 /lib/libreadline.so.5.2
> 00144000-00145000 rw-p 00000000 00:00 0
> 00257000-00272000 r-xp 00000000 08:11 2829191 /lib/ld-2.11.1.so
> 00272000-00273000 r--p 0001a000 08:11 2829191 /lib/ld-2.11.1.so
> 00273000-00274000 rw-p 0001b000 08:11 2829191 /lib/ld-2.11.1.so
> 00274000-003c7000 r-xp 00000000 08:11 883075 /lib/tls/i686/cmov/libc-2.11.1.so
> 003c7000-003c8000 ---p 00153000 08:11 883075 /lib/tls/i686/cmov/libc-2.11.1.so
> 003c8000-003ca000 r--p 00153000 08:11 883075 /lib/tls/i686/cmov/libc-2.11.1.so
> 003ca000-003cb000 rw-p 00155000 08:11 883075 /lib/tls/i686/cmov/libc-2.11.1.so
> 003cb000-003ce000 rw-p 00000000 00:00 0
> 00461000-0057a000 r-xp 00000000 08:11 3663796 /usr/lib/libX11.so.6.3.0
> 0057a000-0057b000 r--p 00118000 08:11 3663796 /usr/lib/libX11.so.6.3.0
> 0057b000-0057d000 rw-p 00119000 08:11 3663796 /usr/lib/libX11.so.6.3.0
> 0057d000-0057e000 rw-p 00000000 00:00 0
> 00582000-00583000 r-xp 00000000 00:00 0 [vdso]
> 00645000-00669000 r-xp 00000000 08:11 883077 /lib/tls/i686/cmov/libm-2.11.1.so
> 00669000-0066a000 r--p 00023000 08:11 883077 /lib/tls/i686/cmov/libm-2.11.1.so
> 0066a000-0066b000 rw-p 00024000 08:11 883077 /lib/tls/i686/cmov/libm-2.11.1.so
> 00712000-00727000 r-xp 00000000 08:11 3662978 /usr/lib/libICE.so.6.3.0
> 00727000-00728000 r--p 00014000 08:11 3662978 /usr/lib/libICE.so.6.3.0
> 00728000-00729000 rw-p 00015000 08:11 3662978 /usr/lib/libICE.so.6.3.0
> 00729000-0072b000 rw-p 00000000 00:00 0
> 00743000-00760000 r-xp 00000000 08:11 2829064 /lib/libgcc_s.so.1
> 00760000-00761000 r--p 0001c000 08:11 2829064 /lib/libgcc_s.so.1
> 00761000-00762000 rw-p 0001d000 08:11 2829064 /lib/libgcc_s.so.1
> 007dc000-007e3000 r-xp 00000000 08:11 3662980 /usr/lib/libSM.so.6.0.1
> 007e3000-007e4000 r--p 00006000 08:11 3662980 /usr/lib/libSM.so.6.0.1
> 007e4000-007e5000 rw-p 00007000 08:11 3662980 /usr/lib/libSM.so.6.0.1
> 0087b000-0087d000 r-xp 00000000 08:11 3662982 /usr/lib/libXau.so.6.0.0
> 0087d000-0087e000 r--p 00001000 08:11 3662982 /usr/lib/libXau.so.6.0.0
> 0087e000-0087f000 rw-p 00002000 08:11 3662982 /usr/lib/libXau.so.6.0.0
> 009cd000-009d0000 r-xp 00000000 08:11 834058 /lib/libuuid.so.1.3.0
> 009d0000-009d1000 r--p 00002000 08:11 834058 /lib/libuuid.so.1.3.0
> 009d1000-009d2000 rw-p 00003000 08:11 834058 /lib/libuuid.so.1.3.0
> 00a94000-00aac000 r-xp 00000000 08:11 3663171 /usr/lib/libxcb.so.1.1.0
> 00aac000-00aad000 r--p 00017000 08:11 3663171 /usr/lib/libxcb.so.1.1.0
> 00aad000-00aae000 rw-p 00018000 08:11 3663171 /usr/lib/libxcb.so.1.1.0
> 00b87000-00b8b000 r-xp 00000000 08:11 3662984 /usr/lib/libXdmcp.so.6.0.0
> 00b8b000-00b8c000 r--p 00003000 08:11 3662984 /usr/lib/libXdmcp.so.6.0.0
> 00b8c000-00b8d000 rw-p 00004000 08:11 3662984 /usr/lib/libXdmcp.so.6.0.0
> 00d63000-00d97000 r-xp 00000000 08:11 834240 /lib/libncurses.so.5.7
> 00d97000-00d98000 ---p 00034000 08:11 834240 /lib/libncurses.so.5.7
> 00d98000-00d9a000 r--p 00034000 08:11 834240 /lib/libncurses.so.5.7
> 00d9a000-00d9b000 rw-p 00036000 08:11 834240 /lib/libncurses.so.5.7
> 08048000-081fe000 r-xp 00000000 08:11 3766770 /usr/local/sac/bin/sac
> 081fe000-081ff000 r--p 001b5000 08:11 3766770 /usr/local/sac/bin/sac
> 081ff000-08221000 rw-p 001b6000 08:11 3766770 /usr/local/sac/bin/sac
> 08221000-08494000 rw-p 00000000 00:00 0
> 08eb3000-08ed4000 rw-p 00000000 00:00 0 [heap]
> b7718000-b771c000 rw-p 00000000 00:00 0
> b772d000-b7732000 rw-p 00000000 00:00 0
> bf8bc000-bf8d1000 rw-p 00000000 00:00 0 [stack]
> Aborted (core dumped)
>
>
> _______________
> Serenity isn't freedom from the storm, but peace within the storm
> Januka Attanayake
> Global Seismology & Economics
> The University of Connecticut
> Beach Hall - U2045
> 354, Mansfield Rd;
> Storrs, CT 06269
> Tel : 860 486 0475 (Office)
> 860 486 3914 (Lab - P405)
> URL: http://sites.google.com/site/janukaattanayake/
>
>
>
>
>
> _______________________________________________
> sac-help mailing list
> sac-help at iris.washington.edu
> http://www.iris.washington.edu/mailman/listinfo/sac-help
_______________________________________________
sac-help mailing list
sac-help at iris.washington.edu
http://www.iris.washington.edu/mailman/listinfo/sac-help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.iris.washington.edu/pipermail/sac-help/attachments/20110519/61118b0c/attachment.html>
More information about the sac-help
mailing list