| Summary: | Crash of GEANT4 when inactivating processes | ||
|---|---|---|---|
| Product: | Geant4 | Reporter: | ol.hartmann |
| Component: | tracking | Assignee: | kurasige |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 6.1 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
*** This bug has been marked as a duplicate of 137 *** *** 'kurasige@phys.sci.kobe-u.ac.jp' will be responsible for this bug. *** I can not find out MuonPhysics class in release 6.1. So I can not reproduce the error. The muon physics class in my case is located at $G4INSTALL/hadronic_lists/lists/Packaging/include/MuonPhysics.hh . A bug in G4ProcessManager::RemoveProcess for the case the removed process is inactive will be fixed in release Geant4 6.2 |
If I run my GEANT4 simulation and try to inactivate several processes, e.g. process/inactivate Decay, process/inactivate MuIoni, ... the program crahes when exiting with Idle> exit G4ProcessManager::GetAttribute(): particle[mu+] index out of range #processes[5] index [-1] *** Break *** segmentation violation Below I give also the stack trace. 0x4360a6b8 in <unknown> from /lib/libc.so.6 0x42881cec in G4ProcessManager::RemoveProcess(int) at src/G4ProcessManager.cc:5 44 from /usr/local/pub/debian3.0/gcc323-00/sim/geant4.6.1/lib/Linux-g++/libG4pro cman.so 0x42881d51 in G4ProcessManager::RemoveProcess(G4VProcess*) at src/G4ProcessMana ger.cc:554 from /usr/local/pub/debian3.0/gcc323-00/sim/geant4.6.1/lib/Linux-g++/ libG4procman.so 0x4128bfb4 in MuonPhysics::~MuonPhysics [in-charge deleting]() at src/MuonPhysi cs.cc:53 from /usr/local/pub/debian3.0/gcc323-00/sim/geant4.6.1/lib/.lists_build /Linux-g++/libPackaging.so 0x42570ed3 in G4VModularPhysicsList::~G4VModularPhysicsList [not-in-charge]() a t src/G4VModularPhysicsList.cc:43 from /usr/local/pub/debian3.0/gcc323-00/sim/ge ant4.6.1/lib/Linux-g++/libG4run.so 0x0827afaa in PhysicsList::~PhysicsList [in-charge deleting]() + 0x4c from PndS imApp 0x0827b3ab in virtual thunk [v:0,-12] to PhysicsList::~PhysicsList [in-charge d eleting]() + 0x27 from PndSimApp 0x4255df85 in G4RunManager::~G4RunManager [in-charge deleting]() at src/G4RunMa nager.cc:102 from /usr/local/pub/debian3.0/gcc323-00/sim/geant4.6.1/lib/Linux-g+ +/libG4run.so 0x080b8645 in main + 0x2ebd from PndSimApp