Message: RE: Segmentation fault ( core dumped) Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None RE: Segmentation fault ( core dumped)  

Forum: Medical Applications
Re: Question Segmentation fault ( core dumped) (Kalachov Alex)
Date: 05 May, 2013
From: Susanna <Susanna>

Dear Alex,

My impression is that you have the segmentation fault because you try to access the PostStepPoint information of a Step when a particle goes outside the World volume.  You have to check that the PostStepPoint of the Step is in an existing Physical Volume.

Cheers
Susanna
 

-----Original Message-----
From: Kalachov Alex [mailto:akalachov@mail.ru] 
Sent: Sunday, 5 May 2013 9:37 AM
To: medical_app-g4hn@slac.stanford.edu
Subject: Segmentation fault ( core dumped) 


*** Discussion title: Medical Applications

Hello! I try to get name of th process by
step->GetPostStepPoint()->GetProcessDefinedStep()->GetProcessName() and
there is an error occured like this :

eIoni Transportation ionIoni RadioactiveDecay Transportation Transportation Transportation RadioactiveDecay Transportation Segmentation fault (core dumped)

If i will turn off this function the programm will work fine.The same result i have when i turn off one of these function in PhysicsList:

1)... else if (particleName == "GenericIon") {
      pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
      G4ionIonisation* ionIoni = new G4ionIonisation();
      ionIoni->SetEmModel(new G4IonParametrisedLossModel());
      ionIoni->SetStepFunction(0.1, 10*um);
      pmanager->AddProcess(ionIoni,-1, 2, 2); ... <-------- this function

2)... pmanager->AddProcess(theRadioactiveDecay);
      pmanager->SetProcessOrdering(theRadioactiveDecay,idxPostStep);
      pmanager->SetProcessOrdering(theRadioactiveDecay, idxAtRest); <--this fucntion

But at thirst case a have no gamma in readioctive decay,at second i have no decay in general

Please help) Probably the error caused by programm part,but i have no enough information to find where the probleam really is.

-------------------------------------------------------------
Visit this GEANT4 at hypernews.slac.stanford.edu message (to reply or unsubscribe) at: 
http://hypernews.slac.stanford.edu/HyperNews/geant4/get/medical_app/326.html 

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

1 Feedback: Re: RE: Segmentation fault ( core dumped)   (Kalachov Alex - 05 May, 2013)
 Add Message Add Message
to: "RE: Segmentation fault ( core dumped) "

 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 ]