SIGSEGV when trying to load GDML Files
Using v2.3.3 and possibly a wrong GDML file, I encounter a SIGSEV on world building. First time I tried to create a GDML file. When opening it in gdmlview it works, though. See attached screenshot.
Reading symbols from allpix...
(No debugging symbols found in allpix)
(gdb) r
Starting program: /cvmfs/clicdp.cern.ch/software/allpix-squared/2.3.3/x86_64-centos7-gcc11-opt/bin/allpix -c simulation.conf
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
|14:34:08.717| (STATUS) Welcome to Allpix^2 v2.3.3
|14:34:08.718| (STATUS) Initialized PRNG with system entropy seed 18062350350636991542
[Detaching after fork from child process 13116]
[Detaching after fork from child process 13118]
[Detaching after fork from child process 13120]
[Detaching after fork from child process 13122]
[Detaching after fork from child process 13124]
[Detaching after fork from child process 13126]
[Detaching after fork from child process 13131]
[Detaching after fork from child process 13133]
|14:34:10.283| (WARNING) Main ROOT file "/data/scratch/tbisanz/ap_mat/output/modules.root" exists and will be overwritten.
|14:34:10.337| (STATUS) Loaded 7 modules
|14:34:10.337| (STATUS) Initializing 7 module instantiations
Program received signal SIGSEGV, Segmentation fault.
0x00007f1a5282f144 in allpix::GDMLModel::buildVolume(std::shared_ptr<G4LogicalVolume> const&) ()
from /cvmfs/clicdp.cern.ch/software/allpix-squared/2.3.3/x86_64-centos7-gcc11-opt/lib/libAllpixModuleGeometryBuilderGeant4.so
(gdb) bt
#0 0x00007f1a5282f144 in allpix::GDMLModel::buildVolume(std::shared_ptr<G4LogicalVolume> const&) ()
from /cvmfs/clicdp.cern.ch/software/allpix-squared/2.3.3/x86_64-centos7-gcc11-opt/lib/libAllpixModuleGeometryBuilderGeant4.so
#1 0x00007f1a528230b8 in allpix::PassiveMaterialConstructionG4::buildVolumes(std::shared_ptr<G4LogicalVolume> const&) ()
from /cvmfs/clicdp.cern.ch/software/allpix-squared/2.3.3/x86_64-centos7-gcc11-opt/lib/libAllpixModuleGeometryBuilderGeant4.so
#2 0x00007f1a528085fd in allpix::GeometryConstructionG4::Construct() ()
from /cvmfs/clicdp.cern.ch/software/allpix-squared/2.3.3/x86_64-centos7-gcc11-opt/lib/libAllpixModuleGeometryBuilderGeant4.so
#3 0x00007f1a4f37cf16 in G4RunManager::InitializeGeometry() () from /cvmfs/sft.cern.ch/lcg/views/LCG_101/x86_64-centos7-gcc11-opt/lib64/libG4run.so
#4 0x00007f1a4b0f9912 in allpix::ModuleManager::initialize() () from /cvmfs/clicdp.cern.ch/software/allpix-squared/2.3.3/x86_64-centos7-gcc11-opt/lib/libAllpixCore.so
#5 0x00000000004048d2 in main ()
Would expect some error/warning if the GDML file is incorrect, no crash though. Do you have builds with debug symbols on cvmfs?
Edited by Tobias Bisanz