Ticket #38 (closed defect: worksforme)

Opened 12 years ago

Last modified 12 years ago

locdiff - segmentation fault in version 5.5 2011

Reported by: sdonner Owned by: MarcusWalther
Priority: high Milestone:
Component: SH Severity: critical
Keywords: locdiff Cc:

Description

Hi

I just installed the new version of SH (version 5.5 February-2011, Copyright (C) 2011)
Using the utility "locdiff" results in "Segmentation fault".

I tried to recompile everything in the sh/util directory as root with the command
make -f Makefile

Result:
make libutil.a butfreq butrec fconcat fereg findevnt flf2flt evalflf catflf locadd locdiff find_next_loc restfreq restrec simfreq simrec q2gse hypo_stlist ev2telex ev2hypo ev2hyposat ev2hypocenter ev4hypocenter ev4hypou ev2view ev2bull autoloc2evt evt2reltimes evt2relonset evt2phasetimes relonset2slo onset_convert check_evt reformat_locsat_out archevent_shc timename evt_copy_and_split evt_time_sort evt_correct_aniso evt_extract_ms qed_ms_make_evt vrs_read_diff traveltime slo2distance statinf fit_travel fit_travel2 crusttrav fit_to_line getresid floatop weather2ascii beamloc stddev find_topo30_id stringop lynx_reformat auto_statlist richter_ml
make[1]: Entering directory `/usr/local/sh/sh/util'
ar r libutil.a eventdsc.o evtelex.o evhypo.o evhypout.o timelist.o evbullet.o; libutil.a
ar: creating libutil.a
/bin/sh: libutil.a: command not found
make[1]: * [libutil.a] Error 127
make[1]: Leaving directory `/usr/local

But the libutil.a file is existent. I helped myself by copying the executable of an older version from a colleague ...

Cheers

Change History

comment:1 Changed 12 years ago by MarcusWalther

What where your inputs to the function?

$ SH

SeismicHandler version 5.5 February-2011, Copyright (C) 2011
Klaus Stammler, Federal Institute for Geosciences and Natural Resources (BGR)
SeismicHandler comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions; type `HELP GPL' for details.

|sh> sdef x
|sh> sdef y
|sh> call locdiff 1 1 2 2 &x &y
|sh> echo "x
1.409226e+00
|sh> echo "y
4.517136e+01
|sh> quit y

comment:2 Changed 12 years ago by MarcusWalther

If you are using the stand-alone version please make sure, that you update your environment first.

$ source .../shsetup...
$ $SH_UTIL/locdiff 1 1 2 2

   distance:      1.409226 deg
   azimuth:       45.171364 deg
   backazimuth:   225.197367 deg
   P-slowness:    not computed

comment:3 Changed 12 years ago by MarcusWalther

  • Status changed from new to closed
  • Resolution set to worksforme

sdonner reported a local environment issue.

Note: See TracTickets for help on using tickets.