Problem 848

Summary: segfault running first example
Product: Examples/Basic and Novice Reporter: bartsch
Component: N01Assignee: Makoto.Asai
Status: RESOLVED INVALID    
Severity: normal    
Priority: P2    
Version: other   
Hardware: PC   
OS: Linux   

Description bartsch 2006-03-10 05:40:16 CET
Hi,

I am new to GEANT trying to run my first program and it segfaults. The
information from GDB is attached. However it does not really help me. It
looks like there is an incompatibility between STL and GEANT, but I compiled
on the same machine with the same compiler. Do I miss some environment variable
I should have set up? I also attach the output of the environment command.

Thanks for your help! Let me know if you need further information!

Cheers,

Valeria


==========GDB output
(gdb) bt
#0  0x0804eb98 in std::_Rb_tree<G4String, std::pair<G4String const,
G4ParticleDefinition*>, std::_Select1st<std::pair<G4String const,
G4ParticleDefinition*> >, std::less<G4String>, std::allocator<std::pair<G4String
const, G4ParticleDefinition*> > >::find (this=0x9b9dc28, __k=@0xbfffb570)
    at /usr/include/c++/3.2.3/bits/stl_tree.h:1268
#1  0x0804ea6d in std::map<G4String, G4ParticleDefinition*, std::less<G4String>,
std::allocator<std::pair<G4String const, G4ParticleDefinition*> > >::find
    (this=0x9b9dc28, __x=@0xbfffb570) at /usr/include/c++/3.2.3/bits/stl_map.h:332
#2  0x0804e8cf in G4ParticleTable::FindParticle (this=0x82f9cc0,
particle_name=@0xbfffb570)
    at
/mnt/cdf1/bartsch/geant4.8.0.p01/source/particles/management/include/G4ParticleTable.icc:83
#3  0x0806abe7 in G4PrimaryTransformer::CheckUnknown (this=0x9b9d9d0) at
src/G4PrimaryTransformer.cc:51
#4  0x0806aae5 in G4PrimaryTransformer (this=0x9b9d9d0) at
src/G4PrimaryTransformer.cc:43
#5  0x08064e30 in G4EventManager (this=0x9b919b0) at src/G4EventManager.cc:58
#6  0x0805318a in G4RunManagerKernel (this=0x9b91948) at
src/G4RunManagerKernel.cc:73
#7  0x0804f29d in G4RunManager (this=0x9b918d8) at src/G4RunManager.cc:77
#8  0x0804c11f in main () at exampleN01.cc:48


=========env
bash-2.05b$ env
CLHEP_LIB_DIR=/mnt/cdf1/bartsch/CLHEP/lib
G4LEVELGAMMADATA=/mnt/cdf1/bartsch/geant4.8.0.p01/data/PhotonEvaporation
NNTPSERVER=nntp-server.ucl.ac.uk
MANPATH=/usr/local/man:/usr/share/man
KDE_MULTIHEAD=false
SSH_AGENT_PID=3277
HOSTNAME=pc71.hep.ucl.ac.uk
G4INSTALL=/mnt/cdf1/bartsch/geant4.8.0.p01
TERM=xterm
SHELL=/bin/bash
HISTSIZE=1000
GTK_RC_FILES=/etc/gtk/gtkrc:/home/bartsch/.gtkrc:/home/bartsch/.gtkrc-kde
GS_LIB=/home/bartsch/.kde/share/fonts
OLDPWD=/home/bartsch/geant4
QTDIR=/usr/lib/qt-3.1
G4ELASTICDATA=/mnt/cdf1/bartsch/geant4.8.0.p01/data/G4ELASTIC1.1
G4LEDATA=/mnt/cdf1/bartsch/geant4.8.0.p01/data/G4EMLOW3.0
USER=bartsch
HISTFILESIZE=1000
LD_LIBRARY_PATH=/mnt/cdf1/bartsch/geant4.8.0.p01/lib/Linux-g++/:/mnt/cdf1/bartsch/CLHEP/lib:
LS_COLORS=
SSH_AUTH_SOCK=/tmp/ssh-hePK3216/agent.3216
G4RADIOACTIVEDATA=/mnt/cdf1/bartsch/geant4.8.0.p01/data/RadiativeDecay
SESSION_MANAGER=local/pc71.hep.ucl.ac.uk:/tmp/.ICE-unix/3351
USERNAME=bartsch
KONSOLE_DCOP=DCOPRef(konsole-6547,konsole)
CERN=/cern
PATH=/home/bartsch/geant4/bin/Linux-g++/:/usr/local/bin:/usr/bin:/usr/sbin:/bin:/usr/bin/X11:/usr/sue/bin:/usr/krb5/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/X11R6/bin
G4LIB=/mnt/cdf1/bartsch/geant4.8.0.p01/lib
KONSOLE_DCOP_SESSION=DCOPRef(konsole-6547,session-1)
PWD=/home/bartsch/geant4/N01
WWW_HOME=http://www.hep.ucl.ac.uk/homepage.shtml
XMODIFIERS=@im=none
CERN_LEVEL=pro
G4LIB_BUILD_STATIC=1
CLHEP_BASE_DIR=/mnt/cdf1/bartsch/CLHEP
LANG=en_GB.UTF-8
LAMHELPFILE=/etc/lam/lam-helpfile
GDMSESSION=KDE
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
ROOTSYS=/usr/local/root-pro
G4UI_USE_TCSH=1
G4LIB_USE_GRANULAR=1
CLHEP_INCLUDE_DIR=/mnt/cdf1/bartsch/CLHEP/include
SHLVL=3
HOME=/home/bartsch
ICAROOT=/usr/local/lib/ICAClient
G4DEBUG=1
G4SYSTEM=Linux-g++
LOGNAME=bartsch
PRINTER=pr6
G4WORKDIR=/home/bartsch/geant4
LESSOPEN=|/usr/bin/lesspipe.sh %s
DISPLAY=:0.0
NeutronHPCrossSections=/mnt/cdf1/bartsch/geant4.8.0.p01/data/G4NDL3.7
CLHEP_LIB=CLHEP
G_BROKEN_FILENAMES=1
COLORTERM=
XAUTHORITY=/home/bartsch/.Xauthority
_=/usr/bin/env
Comment 1 asai 2006-03-13 16:12:59 CET
Could you please post your problem on the installation
thread of Geant4 HyperNews? This problem reporting system
is meant for reporting a bug in Geant4. By posting your
problem on HyperNews, other users who might have same
problem can share the information/solution.

Thank you for your understanding.