Problem 1606 - Optional EM extra physics crash in MultiThreading mode
Summary: Optional EM extra physics crash in MultiThreading mode
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: physics_lists (show other problems)
Version: 10.0
Hardware: All All
: P5 major
Assignee: asai
URL:
Depends on:
Blocks:
 
Reported: 2014-04-10 19:35 CEST by Andrea Dotti
Modified: 2014-04-14 20:00 CEST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
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