Message: Segmentation violation in G4BertiniElectroNuclearBuilder destructor Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Segmentation violation in G4BertiniElectroNuclearBuilder destructor 

Forum: Physics List
Date: 29 Aug, 2013
From: Marek Szuba <Marek Szuba>

Hello,

Every time my Geant4 application shuts down, I see a segmentation fault triggered by the destructor of G4BertiniElectroNuclearBuilder. The relevant portion of the stack trace looks along the lines of:

#0  0x0000003b420c094a in waitpid () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x0000003b4204605e in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007f2b0303ecd7 in TUnixSystem::StackTrace() () from /opt/hep/lib/root/libCore.so.5.34
#3  0x00007f2b03041e93 in TUnixSystem::DispatchSignals(ESignals) () from /opt/hep/lib/root/libCore.so.5.34
#4  <signal handler called>
#5  0x0000000000000071 in ?? ()
#6  0x00007f2afc614538 in G4BertiniElectroNuclearBuilder::~G4BertiniElectroNuclearBuilder() () from /opt/hep/lib/libG4physicslists.so
#7  0x00007f2afc6145b9 in G4BertiniElectroNuclearBuilder::~G4BertiniElectroNuclearBuilder() () from /opt/hep/lib/libG4physicslists.so
#8  0x00007f2afc61b543 in G4EmExtraPhysics::~G4EmExtraPhysics() () from /opt/hep/lib/libG4physicslists.so
#9  0x00007f2afc61b599 in G4EmExtraPhysics::~G4EmExtraPhysics() () from /opt/hep/lib/libG4physicslists.so
#10 0x00007f2afbf0891e in G4VModularPhysicsList::~G4VModularPhysicsList() () from /opt/hep/lib/libG4run.so
#11 0x00007f2afc677697 in TFTFP_BERT<G4VModularPhysicsList>::~TFTFP_BERT() () from /opt/hep/lib/libG4physicslists.so
#12 0x00007f2afc6776e9 in TFTFP_BERT<G4VModularPhysicsList>::~TFTFP_BERT() () from /opt/hep/lib/libG4physicslists.so
#13 0x00007f2afbef8af6 in G4RunManager::~G4RunManager() () from /opt/hep/lib/libG4run.so

This happens for all three reference physics lists I use: FTFP_BERT, FTF_BIC and QBBC.

The part of my code responsible for configuring the physics list looks as follows:

G4RunManager runManager;
// set detector-construction initialisation
G4VModularPhysicsList* physicsList = G4PhysListFactory().GetReferencePhysList("FTFP_BERT");
runManager.SetUserInitialization(physicsList);

Any idea what the problem might be? I presently run version 9.6.2 but have also encountered the problem with 9.6.0 and, IIRC, 9.5.0.

Cheers,
-- 
MS

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

1 None: Re: Segmentation violation in G4BertiniElectroNuclearBuilder destructor   (Michael H. Kelsey - 29 Aug, 2013)
2 Idea: Re: Segmentation violation in G4BertiniElectroNuclearBuilder destructor   (Vladimir Ivanchenko - 29 Aug, 2013)
1 None: Re: Segmentation violation in G4BertiniElectroNuclearBuilder destructor   (Marek Szuba - 30 Aug, 2013)
(_ Idea: Re: Segmentation violation in G4BertiniElectroNuclearBuilder destructor   (Andrea Dotti - 30 Aug, 2013)
 Add Message Add Message
to: "Segmentation violation in G4BertiniElectroNuclearBuilder destructor"

 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 ]