|Message: segmentation violation when running many events||Not Logged In (login)|
Click on the Forum title, e.g. on the "Forums by Category" page, to read a sequence of postings to the Forum and its threads all in one page. If you are only interested in one thread or the thread following a specific posting, click the thread or the posting, which takes you to a smaller page, which contains only the part you are interested in and may be easier to navigate.
Messages are "chained" if there are only replies at the first level, i.e. 1/1.html, 1/1/1.html etc. In case of "chained" messages the message number is replaced by the icon and there is no indentation.
Inline: Display the subject line only or also the text of the posting(s); for the choice "All" the "Outline" choices are switched off.
|1||0||1||no text / full text of posting|
|2||1||All||text for level 1 only / text for All postings|
Outline: Choose the depth of the posting thread, successive toggle controls provide increasing detail.
|1||2||1||2 levels / 1 level (original posting)|
|2||3||2||3 levels / 2 levels|
|3||3||All||3 levels / all levels (all postings)|
I am trying to record the number of optical photons produced per event by 10 MeV electrons in a plastic scintillator. When I run a small number of events, say, around 100 or even 1000, there is no problem. But, if I increase it to 5000 or 10000, then the program exits in the middle with a segmentation error. It is NOT a memory issue as only 460-470 MB of my 3 GB RAM is used up. I ran the code using gdb, and the following is the output:
#0 0x01dd7217 in G4SteppingManager::Stepping() () from /home/athreya/geant4/install/9.4.p02/lib/geant4/Linux-g++/libG4tracking.so #1 0x01de18be in G4TrackingManager::ProcessOneTrack(G4Track*) () from /home/athreya/geant4/install/9.4.p02/lib/geant4/Linux-g++/libG4tracking.so #2 0x01d4a34c in G4EventManager::DoProcessing(G4Event*) () from /home/athreya/geant4/install/9.4.p02/lib/geant4/Linux-g++/libG4event.so #3 0x01d4ad2b in G4EventManager::ProcessOneEvent(G4Event*) () from /home/athreya/geant4/install/9.4.p02/lib/geant4/Linux-g++/libG4event.so #4 0x0064bbac in G4RunManager::DoEventLoop(int, char const*, int) () from /home/athreya/geant4/install/9.4.p02/lib/geant4/Linux-g++/libG4run.so #5 0x0064b6c1 in G4RunManager::BeamOn(int, char const*, int) () from /home/athreya/geant4/install/9.4.p02/lib/geant4/Linux-g++/libG4run.so #6 0x0065362e in G4RunMessenger::SetNewValue(G4UIcommand*, G4String) () from /home/athreya/geant4/install/9.4.p02/lib/geant4/Linux-g++/libG4run.so #7 0x02254708 in G4UIcommand::DoIt(G4String) () from /home/athreya/geant4/install/9.4.p02/lib/geant4/Linux-g++/libG4intercoms.so #8 0x0226c682 in G4UImanager::ApplyCommand(char const*) ()
Sometimes, it exits at G4Transportation::PostStepDoIt(G4Track const&, G4Step const&)...
What is even more surprising is that gdb doesnt show up any code that I have written or modified as the culprit for the segmentation error. Please suggest some way in which I can rectify this problem.
Thanks in advance, Athreya
|Inline Depth:||Outline Depth:||Add message:|