Message: help - segmentation violation Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question help - segmentation violation 

Forum: Event and Track Management
Date: 19 Feb, 2010
From: Bill <Bill>

Hi, I am a newcomer to Geant4. I wrote a program to simulate interaction of gamma ray (140 keV) with CZT material. The program runs well until "/run/beamOn 100". At this point, I got the following segmentation error. Can anyone help me with this error?

By the way, I am using geant4.9.2.p01, clhep 2.0.4.2, and root v5.24.00.

Bill

****************************************************

Idle> /run/beamOn 10

msc:   for e-    SubType= 10
      Lambda tables from 100 eV  to 100 TeV in 84 bins, spline: 1
      RangeFactor= 0.02, step limit type: 1, lateralDisplacement: 1, skin= 3, geomFactor= 2.5
      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
         UrbanMscUni :     Emin=          0 eV         Emax=   100 TeV
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete
AugerTransitionTable complete

LowEnergyIoni:  Total cross sections from EEDL database.
      Gamma energy sampled from a parametrised formula.
      Implementation of the continuous dE/dx part.
      At present it can be used for electrons in the energy range [250eV,100GeV].
      The process must work with G4LowEnergyBremsstrahlung.

LowEnBrem:  Total cross sections from EEDL database.
      Gamma energy sampled from a parameterised formula.
      Implementation of the continuous dE/dx part.
      At present it can be used for electrons in the energy range [250eV,100GeV].
      The process must work with G4LowEnergyIonisation.

eIoni:   for  e+    SubType= 2
      dE/dx and range tables from 100 eV  to 100 TeV in 84 bins
      Lambda tables from threshold to 100 TeV in 84 bins, spline: 1
      finalRange(mm)= 1, dRoverRange= 0.2, integral: 1, fluct: 1, linLossLimit= 0.01
      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
        MollerBhabha :     Emin=          0 eV         Emax=   100 TeV

eBrem:   for  e+    SubType= 3
      dE/dx and range tables from 100 eV  to 100 TeV in 84 bins
      Lambda tables from threshold to 100 TeV in 84 bins, spline: 1
      LPM flag: 1 for E > 1 GeV
      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
               eBrem :     Emin=          0 eV         Emax=   1 GeV
            eBremRel :     Emin=          1 GeV        Emax=   100 TeV

annihil:   for  e+    SubType= 5
      Lambda tables from 100 eV  to 100 TeV in 84 bins, spline: 1
      ===== EM models for the G4Region  DefaultRegionForTheWorld ======
            eplus2gg :     Emin=          0 eV         Emax=   100 TeV
========= Table of registered couples ============================== 

Index : 0     used in the geometry : Yes     recalculation needed : No 
 Material : Air
 Range cuts        :  gamma 100 um     e- 100 um     e+ 0 fm 
 Energy thresholds :  gamma 250 eV     e- 250 eV     e+ 250 eV 
 Region(s) which use this couple : 
    DefaultRegionForTheWorld

Index : 1     used in the geometry : Yes     recalculation needed : No 
 Material : Tungsten
 Range cuts        :  gamma 100 um     e- 100 um     e+ 0 fm 
 Energy thresholds :  gamma 36.0633 keV    e- 353.17 keV    e+ 250 eV 
 Region(s) which use this couple : 
    DefaultRegionForTheWorld

Index : 2     used in the geometry : Yes     recalculation needed : No 
 Material : CZT
 Range cuts        :  gamma 100 um     e- 100 um     e+ 0 fm 
 Energy thresholds :  gamma 9.68148 keV    e- 168.259 keV    e+ 250 eV 
 Region(s) which use this couple : 
    DefaultRegionForTheWorld
==================================================================== 

 *** Break *** segmentation violation
(no debugging symbols found)
Using host libthread_db library "/lib/tls/libthread_db.so.1".
Attaching to program: /proc/6946/exe, process 6946
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
(no debugging symbols found)...done.
[Thread debugging using libthread_db enabled]
[New Thread -1208977728 (LWP 6946)]

0x004927a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1  0x034da4b3 in __waitpid_nocancel () from /lib/tls/libc.so.6
#2  0x03483779 in do_system () from /lib/tls/libc.so.6
#3  0x05afd98d in system () from /lib/tls/libpthread.so.0
#4  0x026524af in TUnixSystem::Exec ()
   from /home1/ycui/GATE5/root/lib/libCore.so
#5  0x02658147 in TUnixSystem::StackTrace ()
   from /home1/ycui/GATE5/root/lib/libCore.so
#6  0x02654b42 in TUnixSystem::DispatchSignals ()
   from /home1/ycui/GATE5/root/lib/libCore.so
#7  0x02654bd0 in SigHandler () from /home1/ycui/GATE5/root/lib/libCore.so
#8  0x02653e4d in sighandler () from /home1/ycui/GATE5/root/lib/libCore.so
#9  <signal handler called>
#10 0x00ab258b in MyAnalysisManager::FillHistogram ()
   from /home1/ycui/GATE5/gate_v5.0.0/tmp/Linux-g++/2Dtest/lib2Dtest.so
#11 0x00abb7f3 in MySensitiveDetector::ProcessHits ()
   from /home1/ycui/GATE5/gate_v5.0.0/tmp/Linux-g++/2Dtest/lib2Dtest.so
#12 0x00d05acb in G4SteppingManager::Stepping ()
   from /home1/ycui/GATE5/geant4.9.2/lib/geant4/Linux-g++/libG4tracking.so
#13 0x00d0e394 in G4TrackingManager::ProcessOneTrack ()
   from /home1/ycui/GATE5/geant4.9.2/lib/geant4/Linux-g++/libG4tracking.so
#14 0x01d722dd in G4EventManager::DoProcessing ()
   from /home1/ycui/GATE5/geant4.9.2/lib/geant4/Linux-g++/libG4event.so
#15 0x01d7315a in G4EventManager::ProcessOneEvent ()
   from /home1/ycui/GATE5/geant4.9.2/lib/geant4/Linux-g++/libG4event.so
#16 0x003628c3 in G4RunManager::DoEventLoop ()
   from /home1/ycui/GATE5/geant4.9.2/lib/geant4/Linux-g++/libG4run.so
#17 0x00361aac in G4RunManager::BeamOn ()
   from /home1/ycui/GATE5/geant4.9.2/lib/geant4/Linux-g++/libG4run.so
#18 0x00369911 in G4RunMessenger::SetNewValue ()
   from /home1/ycui/GATE5/geant4.9.2/lib/geant4/Linux-g++/libG4run.so
#19 0x05b29b23 in G4UIcommand::DoIt ()
   from /home1/ycui/GATE5/geant4.9.2/lib/geant4/Linux-g++/libG4intercoms.so
#20 0x05b375e5 in G4UImanager::ApplyCommand ()
   from /home1/ycui/GATE5/geant4.9.2/lib/geant4/Linux-g++/libG4intercoms.so
#21 0x05b37e68 in G4UImanager::ApplyCommand ()
   from /home1/ycui/GATE5/geant4.9.2/lib/geant4/Linux-g++/libG4intercoms.so
#22 0x00781e2d in G4UIterminal::ExecuteCommand ()
   from /home1/ycui/GATE5/geant4.9.2/lib/geant4/Linux-g++/libG4UIbasic.so
#23 0x00782fec in G4UIterminal::SessionStart ()
   from /home1/ycui/GATE5/geant4.9.2/lib/geant4/Linux-g++/libG4UIbasic.so
#24 0x0804ba61 in main ()
WARNING - Attempt to delete the physical volume store while geometry closed !
WARNING - Attempt to delete the logical volume store while geometry closed !
WARNING - Attempt to delete the solid store while geometry closed !
WARNING - Attempt to delete the region store while geometry closed !

 Add Message Add Message
to: "help - segmentation violation"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]