Problem 89

Summary: Segmentation fault (core dumped) for all extended examples
Product: Examples/Extended Reporter: vinni
Component: electromagnetic/TestEM5Assignee: Hans-Peter.Wellisch
Status: CLOSED INVALID    
Severity: minor    
Priority: P2    
Version: 1.1   
Hardware: PC   
OS: Linux   

Description vinni 2000-04-25 19:41:25 CEST
After linking and start examples TestEm* in point /run/beamOn ... i have:
...
Idle> /run/beamOn 1
/run/beamOn 1
### Run 0 start.

--------- Ranecu engine status ---------
 Initial seed (index) = 0
 Current couple of seeds = 9876, 54321
----------------------------------------

Program received signal SIGSEGV, Segmentation fault.
0x821c142 in RanecuEngine::saveStatus () at /usr/include/g++-2/std/bastring.h:31


From xxgdb message i see that stop in point
/usr/include/g++-2/std/bastring.h:31:
...
->  size_type find (const basic_string& str, size_type pos = 0) const
    { return find (str.data(), pos, str.length()); }
...

By the way
in  geant4/config/architecture.gmk
i make substitute the following line, under the block for "Linux-g++":
FCLIBS:=-lnsl -L/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/ -lg2c

and i use libs:
>ls -ls /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/l*
2472 -rw-r--r--    1 root     root      2523970 .,AfEW .(B18 02:16 /usr/lib/gcc-
lib/i386-redhat-linux/egcs-2.91.66/libg2c.a
 756 -rw-r--r--    1 root     root       769892 .,AfEW .(B18 02:16 /usr/lib/gcc-
lib/i386-redhat-linux/egcs-2.91.66/libgcc.a
   4 -rw-r--r--    1 root     root          549 .,AfEW .(B18 02:16 /usr/lib/gcc-
lib/i386-redhat-linux/egcs-2.91.66/libgcc.map
   0 lrwxrwxrwx    1 root     root           32 .,AaPR  .(B6  2001 /usr/lib/gcc-
lib/i386-redhat-linux/egcs-2.91.66/libstdc++.a -> ../../../libstdc++-libc6.1-
1.a.2
   0 lrwxrwxrwx    1 root     root           33 .,AaPR  .(B6  2001 /usr/lib/gcc-
lib/i386-redhat-linux/egcs-2.91.66/libstdc++.so -> ../../../libstdc++-libc6.1-
1.so.2


Same results in other TestEm:

>TestEm1 TestEm1.in
....
run/verbose 2
/event/drawTracks none
#
/gun/particle e-
/gun/energy 100 MeV
/run/beamOn 100
### Run 0 start.

--------- Ranecu engine status ---------
 Initial seed (index) = 0
 Current couple of seeds = 9876, 54321
----------------------------------------
Segmentation fault (core dumped)
>

Other novice examples are work.
Comment 1 Gabriele Cosmo 2000-04-26 03:04:59 CEST
There's a problem occuring on Linux systems due to incompatibility between
RedHat 5.X and 6.X distributions. Binaries produced with 5.X are not fully
compatible with 6.X. We observed several times problems on RH 6.X with CLHEP's
Random when trying to save the engine status, and figured out that CLHEP needs
to be recompiled with RH 6.X due to incompatibility of iostreams in the two
systems. Please, check that you're using a CLHEP library built with RH 6.X.

Concerning the problem in architecture.gmk for FCLIBS, this has been already
fixed in the development version "config-V01-01-00". Thanks.