Problem related to crashing/ break segmentation

Please fill out the following information to help in answering your question, and also see tips for posting code snippets. If you don’t provide this information it will take longer to help with your problem!

_Geant4 Version: geant4-v11.1.1
_Operating System: Ubuntu 22.04
_Compiler/Version: GCC 11.4.0
_CMake Version: 3.22.1


It looks like the fundamental issue is in DetectorConstruction::StoreParTree but you’ll have to run the application through a debugger like gdb to pinpoint the cause.


I tried to make the executable by direct compilation but It did not work. This code was running well in an old version of Geant4, but I am not able to run it in a new version.

It’s impossible to tell from that information what the cause could be - the only way to determine that is to run in a debugger to pinpoint the line/state in the code and program.