Problem 1606

Summary: Optional EM extra physics crash in MultiThreading mode
Product: Geant4 Reporter: Andrea Dotti <andrea.dotti>
Component: physics_listsAssignee: asai
Status: RESOLVED FIXED    
Severity: major CC: andrea.dotti, Vladimir.Ivantchenko
Priority: P5    
Version: 10.0   
Hardware: All   
OS: All   

Description Andrea Dotti 2014-04-10 19:35:13 CEST
In MT mode the following UI commands cause a crash:
/physics_engine/tailor/SyncRadiation on
/physics_engine/tailor/MuonNuclear on
The following exception is issued:
-------- EEEE ------- G4Exception-START -------- EEEE -------
*** G4Exception : Run11002
       issued by : G4WorkerRunManagerKernel::SetupShadowProcess()
  Size of G4ProcessVector is inconsistent between master and worker threads
for the particle <e+>.
  size of G4ProcessVector for worker thread is 9 while masther thread is 10.
*** Fatal Exception *** core dump ***
-------- EEEE -------- G4Exception-END --------- EEEE -------

The problem being that the messenger exists only for master thread. Thus command has no effect in worker and wrong physics status is produced.
Comment 1 Andrea Dotti 2014-04-10 19:38:56 CEST
Problem identified. I am working on that. It will require a tag in physics list.
Since I do understand now the problem, I will go through all physics constructors and verify if similar problems are present in other areas.
Comment 2 Andrea Dotti 2014-04-14 20:00:26 CEST
Fixed in tag phys-ctro-glnuclear-V10-00-01