Message: segmentation violation due to pmt process_hits and event action Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question segmentation violation due to pmt process_hits and event action 

Forum: Processes Involving Optical Photons
Date: 21 Jan, 2012
From: Athreya Shankar <Athreya Shankar>

Hello all,

I have followed the LXe example to create a pmt in my program. It compiles well, but when I run the program, it exits after simulating just 1 or 2 photons, with the following message:

 *** Break *** segmentation violation
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 !

I ran it in gdb, and the following showed up alternately:

0x00146a09 in ExN02PMTSD::ProcessHits_constStep(G4Step const*, G4TouchableHistory*) () from /home/athreya/g4work/tmp/Linux-g++/waveshift/libwaveshift.so
(gdb) where
#0  0x00146a09 in ExN02PMTSD::ProcessHits_constStep(G4Step const*, G4TouchableHistory*) () from /home/athreya/g4work/tmp/Linux-g++/waveshift/libwaveshift.so
#1  0x0014d08f in ExN02SteppingAction::UserSteppingAction(G4Step const*) () from /home/athreya/g4work/tmp/Linux-g++/waveshift/libwaveshift.so
#2  0x01ddb2bc in G4SteppingManager::Stepping() () from /home/athreya/geant4/install/9.4.p02/lib/geant4/Linux-g++/libG4tracking.so
#3  0x01de58be in G4TrackingManager::ProcessOneTrack(G4Track*) () from /home/athreya/geant4/install/9.4.p02/lib/geant4/Linux-g++/libG4tracking.so
#4  0x01d4e34c in G4EventManager::DoProcessing(G4Event*) () from /home/athreya/geant4/install/9.4.p02/lib/geant4/Linux-g++/libG4event.so
#5  0x01d4ed2b in G4EventManager::ProcessOneEvent(G4Event*) () from /home/athreya/geant4/install/9.4.p02/lib/geant4/Linux-g++/libG4event.so
#6  0x0064fbac in G4RunManager::DoEventLoop(int, char const*, int) () from /home/athreya/geant4/install/9.4.p02/lib/geant4/Linux-g++/libG4run.so
#7  0x0064f6c1 in G4RunManager::BeamOn(int, char const*, int) () from /home/athreya/geant4/install/9.4.p02/lib/geant4/Linux-g++/libG4run.so
#8  0x0065762e in G4RunMessenger::SetNewValue(G4UIcommand*, G4String) () from /home/athreya/geant4/install/9.4.p02/lib/geant4/Linux-g++/libG4run.so
#9  0x02258708 in G4UIcommand::DoIt(G4String) () from /home/athreya/geant4/install/9.4.p02/lib/geant4/Linux-g++/libG4intercoms.so
#10 0x02270682 in G4UImanager::ApplyCommand(char const*) () from /home/athreya/geant4/install/9.4.p02/lib/geant4/Linux-g++/libG4intercoms.so
#11 0x02270c16 in G4UImanager::ApplyCommand(G4String) () from /home/athreya/geant4/install/9.4.p02/lib/geant4/Linux-g++/libG4intercoms.so
#12 0x02248ccd in G4UIbatch::ExecCommand(G4String const&) () from /home/athreya/geant4/install/9.4.p02/lib/geant4/Linux-g++/libG4intercoms.so
#13 0x02249f7c in G4UIbatch::SessionStart() () from /home/athreya/geant4/install/9.4.p02/lib/geant4/Linux-g++/libG4intercoms.so
#14 0x0226c04c in G4UImanager::ExecuteMacroFile(char const*) () from /home/athreya/geant4/install/9.4.p02/lib/geant4/Linux-g++/libG4intercoms.so
#15 0x02263cb7 in G4UIcontrolMessenger::SetNewValue(G4UIcommand*, G4String) ()
   from /home/athreya/geant4/install/9.4.p02/lib/geant4/Linux-g++/libG4intercoms.so
#16 0x02258708 in G4UIcommand::DoIt(G4String) () from /home/athreya/geant4/install/9.4.p02/lib/geant4/Linux-g++/libG4intercoms.so
#17 0x02270682 in G4UImanager::ApplyCommand(char const*) () from /home/athreya/geant4/install/9.4.p02/lib/geant4/Linux-g++/libG4intercoms.so
#18 0x02270c16 in G4UImanager::ApplyCommand(G4String) () from /home/athreya/geant4/install/9.4.p02/lib/geant4/Linux-g++/libG4intercoms.so
#19 0x0804cf72 in main ()

and

0x00142a45 in ExN02EventAction::EndOfEventAction(G4Event const*) () from /home/athreya/g4work/tmp/Linux-g++/waveshift/libwaveshift.so
(gdb) where
#0  0x00142a45 in ExN02EventAction::EndOfEventAction(G4Event const*) () from /home/athreya/g4work/tmp/Linux-g++/waveshift/libwaveshift.so
#1  0x01d4e9cc in G4EventManager::DoProcessing(G4Event*) () from /home/athreya/geant4/install/9.4.p02/lib/geant4/Linux-g++/libG4event.so
#2  0x01d4ed2b in G4EventManager::ProcessOneEvent(G4Event*) () from /home/athreya/geant4/install/9.4.p02/lib/geant4/Linux-g++/libG4event.so
#3  0x0064fbac in G4RunManager::DoEventLoop(int, char const*, int) () from /home/athreya/geant4/install/9.4.p02/lib/geant4/Linux-g++/libG4run.so
#4  0x0064f6c1 in G4RunManager::BeamOn(int, char const*, int) () from /home/athreya/geant4/install/9.4.p02/lib/geant4/Linux-g++/libG4run.so
#5  0x0065762e in G4RunMessenger::SetNewValue(G4UIcommand*, G4String) () from /home/athreya/geant4/install/9.4.p02/lib/geant4/Linux-g++/libG4run.so
#6  0x02258708 in G4UIcommand::DoIt(G4String) () from /home/athreya/geant4/install/9.4.p02/lib/geant4/Linux-g++/libG4intercoms.so
#7  0x02270682 in G4UImanager::ApplyCommand(char const*) () from /home/athreya/geant4/install/9.4.p02/lib/geant4/Linux-g++/libG4intercoms.so
#8  0x02270c16 in G4UImanager::ApplyCommand(G4String) () from /home/athreya/geant4/install/9.4.p02/lib/geant4/Linux-g++/libG4intercoms.so
#9  0x02248ccd in G4UIbatch::ExecCommand(G4String const&) () from /home/athreya/geant4/install/9.4.p02/lib/geant4/Linux-g++/libG4intercoms.so
#10 0x02249f7c in G4UIbatch::SessionStart() () from /home/athreya/geant4/install/9.4.p02/lib/geant4/Linux-g++/libG4intercoms.so
#11 0x0226c04c in G4UImanager::ExecuteMacroFile(char const*) () from /home/athreya/geant4/install/9.4.p02/lib/geant4/Linux-g++/libG4intercoms.so
#12 0x02263cb7 in G4UIcontrolMessenger::SetNewValue(G4UIcommand*, G4String) ()
   from /home/athreya/geant4/install/9.4.p02/lib/geant4/Linux-g++/libG4intercoms.so
#13 0x02258708 in G4UIcommand::DoIt(G4String) () from /home/athreya/geant4/install/9.4.p02/lib/geant4/Linux-g++/libG4intercoms.so
#14 0x02270682 in G4UImanager::ApplyCommand(char const*) () from /home/athreya/geant4/install/9.4.p02/lib/geant4/Linux-g++/libG4intercoms.so
#15 0x02270c16 in G4UImanager::ApplyCommand(G4String) () from /home/athreya/geant4/install/9.4.p02/lib/geant4/Linux-g++/libG4intercoms.so
#16 0x0804cf72 in main ()

Please tell me what the mistakes are and how to rectify them?

I am also attaching my PMTSD code and EventAction code

Thanks in advance, Athreya

   Attachment:
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2012/01/21/10.41-74216-ExN02EventAction.cc
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2012/01/21/10.41-29014-ExN02PMTSD.cc

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Feedback: Re: segmentation violation due to pmt process_hits and event action   (Gumplinger Peter - 23 Jan, 2012)
 Add Message Add Message
to: "segmentation violation due to pmt process_hits and event action"

 Subscribe Subscribe

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