Problem 622 - Crash of GEANT4 when inactivating processes
Summary: Crash of GEANT4 when inactivating processes
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: tracking (show other problems)
Version: 6.1
Hardware: PC Linux
: P3 normal
Assignee: kurasige
URL:
Depends on:
Blocks:
 
Reported: 2004-05-06 07:44 CEST by ol.hartmann
Modified: 2004-05-11 10:26 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description ol.hartmann 2004-05-06 07:44:05 CEST
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
Comment 1 Takashi.Sasaki 2004-05-11 00:44:59 CEST
*** This bug has been marked as a duplicate of 137 ***
*** 'kurasige@phys.sci.kobe-u.ac.jp' will be responsible for this bug. ***
Comment 2 kurasige 2004-05-11 04:30:59 CEST
I can not find out MuonPhysics class in release 6.1. So I can not reproduce the
error.
Comment 3 ol.hartmann 2004-05-11 04:39:59 CEST
The muon physics class in my case is located at
$G4INSTALL/hadronic_lists/lists/Packaging/include/MuonPhysics.hh .
Comment 4 kurasige 2004-05-11 10:26:59 CEST
A bug in G4ProcessManager::RemoveProcess for the case the removed process is
inactive will be fixed in release Geant4 6.2