[gate-users] segmentation violation error when running gate
Sebastien JAN
jan at shfj.cea.fr
Mon Nov 21 11:09:17 CET 2005
Hi,
g4 7.0.p01 is not validated for gcc 4.0 (same case for GATE)
you need to install a previous gcc version on your linux distrib (3.2 or
3.3 are OK with gate_v2.2)
cheers
Sebastien
Ikbal Cam wrote:
> Hi to all,
>
> First of all, thanks to all for your previous messages in the list and
> the install guide, that I could learn enough to install Gate. I have a
> big desire to run some Gate simulation with my following
> configuration.
>
> I have a Fedora Core4 (x86_64 version) Box with Intel Pentium4 3.0 GHZ
> EMT64 Processor and 1 GB RAM.
>
> I installed the following softwares , although the versions are not
> tested and specified to work together correctly. I had to change a
> little bit of the source codes and makefiles to make them installed.
>
> Compiler : gcc-4.0 (default compiler provided by Fedora 4 )
>
> clhep 1.8.1.0
> geant4 7.0.p01
> root-v5.06.00
> ecat7
> lmf 2.0
> Gate v.2.2.0
>
> I was able to test most of the example files of the specified
> softwares except GATE.
>
> When I cd to the directory where I installed gate, I tried to run the
> PET_CylindricalPET_System.mac example macro with following command.
>
> bin/Linux-g++/Gate < examples/example_PET_Scanner/PET_CylindricalPET_System.mac
>
> I get the following error (segmentation violation) at the end of the output.
>
>
> ========= Table of registered couples ==============================
>
> Index : 0 used in the geometry : Yes recalculation needed : No
> Material : Air
> Range cuts : gamma 1 mm e- 1 m e+ 1 mm
> Energy thresholds : gamma 990 eV e- 378.379 keV e+ 990 eV
> Region(s) which use this couple :
> DefaultRegionForTheWorld
>
> Index : 1 used in the geometry : Yes recalculation needed : No
> Material : LSO
> Range cuts : gamma 1 mm e- 1 m e+ 1 mm
> Energy thresholds : gamma 70.1042 keV e- 5.58977 TeV e+ 1.02561 MeV
> Region(s) which use this couple :
> DefaultRegionForTheWorld
>
> Index : 2 used in the geometry : Yes recalculation needed : No
> Material : Water
> Range cuts : gamma 1 mm e- 1 m e+ 1 mm
> Energy thresholds : gamma 2.90186 keV e- 317.969 MeV e+ 338.695 keV
> Region(s) which use this couple :
> DefaultRegionForTheWorld
>
> ====================================================================
>
>
> ----- HepJamesRandom engine status -----
> Initial seed = 9876
> u[] = 0.174685 0.883674 0.958512 0.690013 0.0250537 0.142294 0.783649
> 0.356081 0.214774 0.69287 0.700302 0.465109 0.22215 0.768752 0.461089
> 0.397602 0.522215 0.121546 0.960227 0.510892 0.0116568 0.0286447
> 0.238777 0.585219 0.780612 0.709182 0.082106 0.828601 0.61446
> 0.0798209 0.688002 0.00978529 0.370831 0.376435 0.710184 0.864017
> 0.167338 0.21114 0.349235 0.522479 0.943713 0.0702708 0.778742
> 0.639458 0.506555 0.151751 0.990123 0.564688 0.430497 0.889832
> 0.995398 0.725368 0.710512 0.0550886 0.0540335 0.0159176 0.728379
> 0.947141 0.34922 0.20551 0.351029 0.672539 0.118976 0.655784 0.195375
> 0.0380308 0.293556 0.237497 0.79723 0.158375 0.029761 0.602215
> 0.616657 0.995638 0.734827 0.943425 0.130007 0.277064 0.306344
> 0.973337 0.183926 0.547536 0.914344 0.666572 0.210074 0.300351 0.83602
> 0.267525 0.248549 0.533332 0.1754 0.299529 0.538308 0.555472 0.283894
> 0.485254 0.222273
> c = 0.0216029, cd = 0.456233, cm = 1
> i97 = 96, u[i97] = 0.222273
> j97 = 32, u[j97] = 0.370831
> ----------------------------------------
>
> *** Break *** segmentation violation
> Generating stack trace...
> 0x0000000000b8694f in G4EventManager::DoProcessing(G4Event*) at
> GateVoxelMatrixInserterMessenger.cc:0 from bin/Linux-g++/Gate
> 0x0000000000b52213 in G4RunManager::DoEventLoop(int, char const*,
> int) at GatePileupMessenger.cc:0 from bin/Linux-g++/Gate
> 0x0000000000b503ba in G4RunManager::BeamOn(int, char const*, int) +
> 0x6a from bin/Linux-g++/Gate
> 0x0000000000567c75 in GateApplicationMgr::StartDAQ() + 0x175 from
> bin/Linux-g++/Gate
> 0x00000000005ce78a in
> GateApplicationMgrMessenger::SetNewValue(G4UIcommand*, G4String) +
> 0x11a from bin/Linux-g++/Gate
> 0x0000000000d7a637 in G4UIcommand::DoIt(G4String) + 0x7f7 from
> bin/Linux-g++/Gate
> 0x0000000000d81acd in G4UImanager::ApplyCommand(char const*) + 0x3dd
> from bin/Linux-g++/Gate
> 0x0000000000809118 in G4UIterminal::ExecuteCommand(G4String) + 0x58
> from bin/Linux-g++/Gate
> 0x000000000080a8af in G4UIterminal::SessionStart() + 0x4f from
> bin/Linux-g++/Gate
> 0x0000000000563c40 in main + 0x300 from bin/Linux-g++/Gate
> 0x0000003fc6e1c4cc in __libc_start_main + 0xdc from /lib64/libc.so.6
> 0x0000000000562a39 in TApplicationImp::ShowMembers(TMemberInspector&,
> char*) + 0x79 from bin/Linux-g++/Gate
> Abort
>
>
> =====================
> After reading some posts about random seed, I changed some lines of
> the macro file
>
> /gate/output/root/setSaveRndmFlag 0
> /random/resetEngineFrom StartSeq1.rndm
>
>
> Still I see the same error (segmentation violation) in the screen.
>
> Index : 2 used in the geometry : Yes recalculation needed : No
> Material : Water
> Range cuts : gamma 1 mm e- 1 m e+ 1 mm
> Energy thresholds : gamma 2.90186 keV e- 317.969 MeV e+ 338.695 keV
> Region(s) which use this couple :
> DefaultRegionForTheWorld
>
> ====================================================================
>
>
> *** Break *** segmentation violation
> Generating stack trace...
> 0x0000000000b8694f in G4EventManager::DoProcessing(G4Event*) at
> GateVoxelMatrixInserterMessenger.cc:0 from bin/Linux-g++/Gate
> 0x0000000000b52213 in G4RunManager::DoEventLoop(int, char const*,
> int) at GatePileupMessenger.cc:0 from bin/Linux-g++/Gate
> 0x0000000000b503ba in G4RunManager::BeamOn(int, char const*, int) +
> 0x6a from bin/Linux-g++/Gate
> 0x0000000000567c75 in GateApplicationMgr::StartDAQ() + 0x175 from
> bin/Linux-g++/Gate
> 0x00000000005ce78a in
> GateApplicationMgrMessenger::SetNewValue(G4UIcommand*, G4String) +
> 0x11a from bin/Linux-g++/Gate
> 0x0000000000d7a637 in G4UIcommand::DoIt(G4String) + 0x7f7 from
> bin/Linux-g++/Gate
> 0x0000000000d81acd in G4UImanager::ApplyCommand(char const*) + 0x3dd
> from bin/Linux-g++/Gate
> 0x0000000000809118 in G4UIterminal::ExecuteCommand(G4String) + 0x58
> from bin/Linux-g++/Gate
> 0x000000000080a8af in G4UIterminal::SessionStart() + 0x4f from
> bin/Linux-g++/Gate
>
> ===============
>
> Before the errors, everything seem to work correctly in OpenGL
> visualisation window.
> I hope there is something to do about my Gate installation or configuration.
> Any helps or advices will be appreciated and I hope to send an
> Installation Guide based upon my configuration.
>
>
> Hope to get some replies before some more nightmares.
> Thanks in advance.
>
> ---
> Ikbal Cam
> Electronics and Communication Engineer
>
> _______________________________________________
> gate-users mailing list
> gate-users at lphe1pet1.epfl.ch
> http://lphe1pet1.epfl.ch/mailman/listinfo/gate-users
>
>
More information about the Gate-users
mailing list