Thread: cutim issue for 101.4

Started: 2011-01-06 18:25:39
Last activity: 2011-01-06 18:25:39
Topics: SAC Help
Tim MacDonald
2011-01-06 18:25:39
I am having a problem getting cutim to work on the 101.4 release for Linux. I got a segmentation fault error when using cutim as follows:

SAC> read *
2002.110.10.49.30.0000.CN.BBB..BHE.D.SAC 2002.110.10.49.30.0000.CN.BBB..BHN.D.SAC 2002.110.10.49.30.0000.CN.BBB..BHZ.D.SAC 2002.110.10.49.30.0000.CN.BIB..EHZ.D.SAC
SAC> cutim 100 200
Segmentation fault


I tracked the segmentation fault error to the gcCollect routine in gcCollect.c and made the following changes to the code:

/*
struct CSStree *tree = (struct CSStree *) dblList;
struct wftagList *wtL = tree->wtHead ;
struct sensorList *seL = tree->seHead ;
struct sitechanList *scL = tree->scHead ;
struct siteList *siL = tree->slHead ;
struct instrumentList *inL = tree->inHead ;
struct originList *orL = tree->orHead ;
struct eventList *evL = tree->evHead ;

if(!tree)return;
*/
struct CSStree *tree = (struct CSStree *) dblList;
struct wftagList *wtL;
struct sensorList *seL;
struct sitechanList *scL;
struct siteList *siL;
struct instrumentList *inL;
struct originList *orL;
struct eventList *evL;

if(!tree)return;

wtL = tree->wtHead ;
seL = tree->seHead ;
scL = tree->scHead ;
siL = tree->slHead ;
inL = tree->inHead ;
orL = tree->orHead ;
evL = tree->evHead ;

The changes cured the segmentation fault error but now I get error 1301 when I try to plot as follows:

SAC> read *
2002.110.10.49.30.0000.CN.BBB..BHE.D.SAC 2002.110.10.49.30.0000.CN.BBB..BHN.D.SAC 2002.110.10.49.30.0000.CN.BBB..BHZ.D.SAC 2002.110.10.49.30.0000.CN.BIB..EHZ.D.SAC
SAC> cutim 100 200
SAC> plot1
ERROR 1301: No data files read in.

If I don't issue the cutim command the plot1 works fine. Also if I use the OSX binaries and the same data files everything works fine!

Any ideas?
Thanks!

07:49:37 v.ad6b513c