Message: *** Break *** segmentation violation with G4HadronElasticProcess Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question *** Break *** segmentation violation with G4HadronElasticProcess 

Keywords: Break segmentation violation G4HadronElasticProcess
Forum: Hadronic Processes
Date: 21 Dec, 2006
From: Luis <jlnavarro@ugr.es>

Hello,
when I include the hadronic process in my Physiclist (like this):
      G4HadronElasticProcess* hadElastProc = new G4HadronElasticProcess;
      G4LElastic *theElasticModel= new G4LElastic;
      hadElastProc->RegisterMe(theElasticModel);
      pmanager->AddDiscreteProcess(hadElastProc);

I obtain the next error in run time:

*** Break *** segmentation violation
 Generating stack trace...
 0x007d56cc in G4VUserPhysicsList::PreparePhysicsTable(G4ParticleDefinition*) + 0x1c from /usr/local/Geant4/G4.8.2/geant4.8.2/lib/Linux-g++/libG4run.so
 0x007d752f in G4VUserPhysicsList::BuildPhysicsTable() + 0x4f from /usr/local/Geant4/G4.8.2/geant4.8.2/lib/Linux-g++/libG4run.so
 0x007c3835 in G4RunManagerKernel::BuildPhysicsTables() + 0x65 from /usr/local/Geant4/G4.8.2/geant4.8.2/lib/Linux-g++/libG4run.so
 0x007c39a8 in G4RunManagerKernel::RunInitialization() + 0xd8 from /usr/local/Geant4/G4.8.2/geant4.8.2/lib/Linux-g++/libG4run.so
 0x007c80d5 in G4RunManager::RunInitialization() + 0x25 from /usr/local/Geant4/G4.8.2/geant4.8.2/lib/Linux-g++/libG4run.so
 0x007c5513 in G4RunManager::BeamOn(int, char const*, int) + 0x33 from /usr/local/Geant4/G4.8.2/geant4.8.2/lib/Linux-g++/libG4run.so
 0x007ca85c in G4RunMessenger::SetNewValue(G4UIcommand*, G4String) + 0x28c from /usr/local/Geant4/G4.8.2/geant4.8.2/lib/Linux-g++/libG4run.so
 0x05723bbf in G4UIcommand::DoIt(G4String) + 0xbaf from /usr/local/Geant4/G4.8.2/geant4.8.2/lib/Linux-g++/libG4intercoms.so
 0x0572e0b5 in G4UImanager::ApplyCommand(char const*) + 0x595 from /usr/local/Geant4/G4.8.2/geant4.8.2/lib/Linux-g++/libG4intercoms.so
 0x05711751 in G4UIbatch::SessionStart() + 0x1c1 from /usr/local/Geant4/G4.8.2/geant4.8.2/lib/Linux-g++/libG4intercoms.so
 0x0572c74f in G4UImanager::ExecuteMacroFile(char const*) + 0x4f from /usr/local/Geant4/G4.8.2/geant4.8.2/lib/Linux-g++/libG4intercoms.so
 0x0572a39f in G4UIcontrolMessenger::SetNewValue(G4UIcommand*, G4String) + 0xef from /usr/local/Geant4/G4.8.2/geant4.8.2/lib/Linux-g++/libG4intercoms.so
 0x05723bbf in G4UIcommand::DoIt(G4String) + 0xbaf from /usr/local/Geant4/G4.8.2/geant4.8.2/lib/Linux-g++/libG4intercoms.so
 0x0572e0b5 in G4UImanager::ApplyCommand(char const*) + 0x595 from /usr/local/Geant4/G4.8.2/geant4.8.2/lib/Linux-g++/libG4intercoms.so
 0x0572e317 in G4UImanager::ApplyCommand(G4String) + 0x27 from /usr/local/Geant4/G4.8.2/geant4.8.2/lib/Linux-g++/libG4intercoms.so
 0x0804beea in main + 0x2ba from /home/luis/geant4/bin/Linux-g++/Ebox
 0x43ef6f2c in __libc_start_main + 0xdc from /lib/libc.so.6
 0x0804b511 in G4VisManager::DispatchToModel(G4VTrajectory const&, int) + 0x79 from /home/luis/geant4/bin/Linux-g++/Ebox
Abort

Somebody knows what is happening and how can I fix this error? wihtout "pmanager->AddDiscreteProcess(hadElastProc);" the program works properly, but I need the Hadronic physic.

Thanks to all. Merry christmas and happy new year.

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

1 None: Re: *** Break *** segmentation violation with G4HadronElasticProcess   (Vladimir IVANTCHENKO - 22 Dec, 2006)
 Add Message Add Message
to: "*** Break *** segmentation violation with G4HadronElasticProcess"

 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 ]