mctools / simplebuild-dgcode

dgcode: the Geant4-based simulation framework of the ESS Detector Group. Provided as simple-build-system bundles.
https://mctools.github.io/simplebuild-dgcode/
Other
2 stars 1 forks source link

geant4 11.2.2 mutex lock failure bug #44

Open tkittel opened 1 month ago

tkittel commented 1 month ago

When upgrading to geant4 11.2.2 we got hit by https://geant4-forum.web.cern.ch/t/mutex-lock-failure/12772 :

====>
1097
====> First 100 lines from sb_g4mcpltests_testmcplwrite/refdiff.log:
1098
====>
1099
858a859,6106
1100
> Non-critical error: mutex lock failure in ~G4Cache<P15G4HadFinalState>. 
1101
> If the RunManagerKernel has been deleted, it failed to delete an allocated resource
1102
> and this destructor is being called after the statics were destroyed.

The workaround is to move to G4MTRunManager with a single thread. I wasted a few days trying to do that, before finally aborting the effort since NCrystal does not support it, even for a single thread.

tkittel commented 1 month ago

Downgrading to 11.1.3 again...