I have a program that worked properly under Geant4 10.5.1 as recently as February 2020. I use my own custom Physics List because I have to modify particle-specific aspects of scintillation. I have since upgraded to Geant4 10.6.1 and I recently recompiled and tried to execute the program without any changes. It now fails to work. It appears to fail to find proton cross sections and throws an exception in G4HadronicProcess. It outputs an error message and halts before even attempting ‘beam on’.
(The program models scintillation in different scintillator/PMT combinations irradiated by various hadronic particle and gamma ray beams of low energy (<20 MeV). It outputs a file of the number of scintillation and PMT photons for each event and it has been working for several years.)
With debugger on:
"-------- EEEE ------- G4Exception-START -------- EEEE -------
*** G4Exception : had001
issued by : G4CrossSectionDataStore::BuildPhysicsTable
No cross section is registered for proton
*** Fatal Exception *** core dump ***
**** Track information is not available at this moment
**** Step information is not available at this moment
-------- EEEE -------- G4Exception-END --------- EEEE -------
*** G4Exception: Aborting execution ***
Program received signal SIGABRT, Aborted.
0x00007ffff09a0a25 in raise () from /lib64/libc.so.6
Missing separate debuginfos, use: dnf debuginfo-install bzip2-libs-1.0.8-2.fc32.x86_64 expat-2.2.8-2.fc32.x86_64 freetype-2.10.1-2.fc32.x86_64 glib2-2.64.3-1.fc32.x86_64 graphite2-1.3.14-1.fc32.x86_64 harfbuzz-2.6.4-3.fc32.x86_64 libICE-1.0.10-3.fc32.x86_64 libSM-1.2.3-5.fc32.x86_64 libX11-1.6.9-3.fc32.x86_64 libXau-1.0.9-3.fc32.x86_64 libXext-1.3.4-3.fc32.x86_64 libXmu-1.1.3-3.fc32.x86_64 libXt-1.2.0-1.fc32.x86_64 libgcc-10.1.1-1.fc32.x86_64 libgcrypt-1.8.5-3.fc32.x86_64 libglvnd-1.3.1-1.fc32.x86_64 libglvnd-glx-1.3.1-1.fc32.x86_64 libgpg-error-1.36-3.fc32.x86_64 libicu-65.1-2.fc32.x86_64 libpng-1.6.37-3.fc32.x86_64 libstdc+±10.1.1-1.fc32.x86_64 libuuid-2.35.2-1.fc32.x86_64 libxcb-1.13.1-4.fc32.x86_64 lz4-libs-1.9.1-2.fc32.x86_64 mesa-libGLU-9.0.1-2.fc32.x86_64 pcre2-utf16-10.35-1.fc32.x86_64 qt5-qtbase-5.13.2-5.fc32.x86_64 qt5-qtbase-gui-5.13.2-5.fc32.x86_64 systemd-libs-245.4-1.fc32.x86_64 zlib-1.2.11-21.fc32.x86_64
(gdb) trace back
Tracepoint 1 at 0x7ffff0da3c00 (9 locations)
(gdb) where
#0 0x00007ffff09a0a25 in raise () from /lib64/libc.so.6
#1 0x00007ffff0989895 in abort () from /lib64/libc.so.6
#2 0x00007ffff0f779cd in G4Exception(char const*, char const*, G4ExceptionSeverity, char const*) ()
from /home/jmcfee/geant4/geant4.10.6.p01-install/lib64/libG4global.so
#3 0x00007ffff0f77b60 in G4Exception(char const*, char const*, G4ExceptionSeverity, std::__cxx11::basic_ostringstream<char, std::char_traits, std::allocator >&) ()
from /home/jmcfee/geant4/geant4.10.6.p01-install/lib64/libG4global.so
#4 0x00007ffff24b0bcc in G4CrossSectionDataStore::BuildPhysicsTable(G4ParticleDefinition const&) ()
from /home/jmcfee/geant4/geant4.10.6.p01-install/lib64/libG4processes.so
#5 0x00007ffff24f0448 in G4HadronicProcess::BuildPhysicsTable(G4ParticleDefinition const&) ()
from /home/jmcfee/geant4/geant4.10.6.p01-install/lib64/libG4processes.so
#6 0x00007ffff6365ca7 in G4VUserPhysicsList::BuildPhysicsTable(G4ParticleDefinition*) () from /home/jmcfee/geant4/geant4.10.6.p01-install/lib64/libG4run.so
#7 0x00007ffff636670e in G4VUserPhysicsList::BuildPhysicsTable() ()
from /home/jmcfee/geant4/geant4.10.6.p01-install/lib64/libG4run.so
#8 0x00007ffff634f3fe in G4RunManagerKernel::BuildPhysicsTables(bool) ()
from /home/jmcfee/geant4/geant4.10.6.p01-install/lib64/libG4run.so
#9 0x00007ffff634f90e in G4RunManagerKernel::RunInitialization(bool) ()
from /home/jmcfee/geant4/geant4.10.6.p01-install/lib64/libG4run.so
–Type for more, q to quit, c to continue without paging–
#10 0x00007ffff6340b24 in G4RunManager::RunInitialization() ()
from /home/jmcfee/geant4/geant4.10.6.p01-install/lib64/libG4run.so
#11 0x00007ffff633bd2d in G4RunManager::BeamOn(int, char const*, int) ()
from /home/jmcfee/geant4/geant4.10.6.p01-install/lib64/libG4run.so
#12 0x00007ffff6346dbb in G4MTRunManager::Initialize() ()
from /home/jmcfee/geant4/geant4.10.6.p01-install/lib64/libG4run.so
#13 0x000000000040815a in main (argc=3, argv=0x7fffffffcad8)
at /home/jmcfee/geant4_workdir/OpLaCl3AccumulateGPS/OpNovice.cc:147
(gdb) "
I have made no changes to the code between the 10.5.1 and 10.6.1 runs except to add a line “#include “G4Types.hh”” at the beginning of main to eliminate a compile error in the kernel initialization line in main: “runManager->Initialize();”:
“In function ‘int main(int, char**)’:
/home/jmcfee/geant4_workdir/OpLaCl3AccumulateGPS/OpNovice.cc:122:3: error: ‘G4MTRunManager’ was not declared in this scope; did you mean ‘G4RunManager’?
122 | G4MTRunManager * runManager = new G4MTRunManager;”
I have attached my Physicslist. I can find no obvious problem with it.
Any help is gratefully appreciated. Thanks.
OpNovicePhysicsList.cc (23.8 KB)