Code not compiling due to a ROOT error in printing a warning? Stack trace provided

I am currently working with a MC calculator for position resolution in silicon detectors.
The code is available here (github.com/simonspa/resolution-simulator) and it is ran on lxplus. It requires ROOT and an external library (GBL) from here (gitlab.desy.de/claus.kleinwort/general-broken-lines).

The framework compiles without any errors on lxplus. However, I am unable to run any example file (from the build/devices directory). Any command just hangs…

To initialize the environment, a shell script is available (init_x86_64.sh) in the first mentioned repository. This prepares LCG_101 from cvmfs/sft.cern.ch/x86_64-centos7-gcc11-opt//lcg/views/ with GCC as compiler, version gcc11.

The version of ROOT is 6.24/06

To see what happens behind I am using gdb. Here is the output:

(gdb) add-auto-load-safe-path /cvmfs/sft.cern.ch/lcg/releases/gcc/11.1.0-e80bf/x86_64-centos7/lib64/libstdc++.so.6.0.29-gdb.py
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /afs/cern.ch/user/m/mblidaru/resolution-simulator/build/devices/tscope_datura
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[Detaching after fork from child process 27531]
[Detaching after fork from child process 27533]

^C
Program received signal SIGINT, Interrupt.
0x00007f955dd6e54d in __lll_lock_wait () from /lib64/libpthread.so.0
(gdb) where
#0  0x00007f955dd6e54d in __lll_lock_wait () from /lib64/libpthread.so.0
#1  0x00007f955dd69e9b in _L_lock_883 () from /lib64/libpthread.so.0
#2  0x00007f955dd69d68 in pthread_mutex_lock () from /lib64/libpthread.so.0
#3  0x00007f955e178cae in DebugPrint(char const*, ...) () from /cvmfs/sft.cern.ch/lcg/views/LCG_101/x86_64-centos7-gcc11-opt/lib/libCore.so
#4  0x00007f955e178f7d in DefaultErrorHandler(int, bool, char const*, char const*) () from /cvmfs/sft.cern.ch/lcg/views/LCG_101/x86_64-centos7-gcc11-opt/lib/libCore.so
#5  0x00007f955e231705 in ErrorHandler () from /cvmfs/sft.cern.ch/lcg/views/LCG_101/x86_64-centos7-gcc11-opt/lib/libCore.so
#6  0x00007f955e232088 in Warning(char const*, char const*, ...) () from /cvmfs/sft.cern.ch/lcg/views/LCG_101/x86_64-centos7-gcc11-opt/lib/libCore.so
#7  0x00007f955e26296d in ROOT::TGenericClassInfo::TGenericClassInfo(char const*, char const*, int, std::type_info const&, ROOT::Internal::TInitBehavior const*, TClass* (*)(), TVirtualIsAProxy*, int, int) ()
   from /cvmfs/sft.cern.ch/lcg/views/LCG_101/x86_64-centos7-gcc11-opt/lib/libCore.so
#8  0x00007f955e2e2f3a in ROOT::GenerateInitInstanceLocal(timespec const*) [clone .constprop.0] () from /cvmfs/sft.cern.ch/lcg/views/LCG_101/x86_64-centos7-gcc11-opt/lib/libCore.so
#9  0x00007f955e14a536 in _GLOBAL__sub_I_G__Core.cxx () from /cvmfs/sft.cern.ch/lcg/views/LCG_101/x86_64-centos7-gcc11-opt/lib/libCore.so
#10 0x00007f955f68c9c3 in _dl_init_internal () from /lib64/ld-linux-x86-64.so.2
#11 0x00007f955f69159e in dl_open_worker () from /lib64/ld-linux-x86-64.so.2
#12 0x00007f955f68c7d4 in _dl_catch_error () from /lib64/ld-linux-x86-64.so.2
#13 0x00007f955f690b8b in _dl_open () from /lib64/ld-linux-x86-64.so.2
#14 0x00007f955935ffab in dlopen_doit () from /lib64/libdl.so.2
#15 0x00007f955f68c7d4 in _dl_catch_error () from /lib64/ld-linux-x86-64.so.2
#16 0x00007f95593605ad in _dlerror_run () from /lib64/libdl.so.2
#17 0x00007f9559360041 in dlopen@@GLIBC_2.2.5 () from /lib64/libdl.so.2
#18 0x00007f955e14e690 in TROOT::InitInterpreter() () from /cvmfs/sft.cern.ch/lcg/views/LCG_101/x86_64-centos7-gcc11-opt/lib/libCore.so
#19 0x00007f955e14e85f in ROOT::Internal::GetROOT2() () from /cvmfs/sft.cern.ch/lcg/views/LCG_101/x86_64-centos7-gcc11-opt/lib/libCore.so
#20 0x00007f955e1777de in TEnv::Getvalue(char const*) const () from /cvmfs/sft.cern.ch/lcg/views/LCG_101/x86_64-centos7-gcc11-opt/lib/libCore.so
#21 0x00007f955e1780d9 in TEnv::GetValue(char const*, char const*) const () from /cvmfs/sft.cern.ch/lcg/views/LCG_101/x86_64-centos7-gcc11-opt/lib/libCore.so
#22 0x00007f955e1792a8 in DefaultErrorHandler(int, bool, char const*, char const*) () from /cvmfs/sft.cern.ch/lcg/views/LCG_101/x86_64-centos7-gcc11-opt/lib/libCore.so
#23 0x00007f955e231705 in ErrorHandler () from /cvmfs/sft.cern.ch/lcg/views/LCG_101/x86_64-centos7-gcc11-opt/lib/libCore.so
#24 0x00007f955e232088 in Warning(char const*, char const*, ...) () from /cvmfs/sft.cern.ch/lcg/views/LCG_101/x86_64-centos7-gcc11-opt/lib/libCore.so
#25 0x00007f955e262a3f in ROOT::TGenericClassInfo::TGenericClassInfo(char const*, int, char const*, int, std::type_info const&, ROOT::Internal::TInitBehavior const*, TClass* (*)(), TVirtualIsAProxy*, int, int) ()
   from /cvmfs/sft.cern.ch/lcg/views/LCG_101/x86_64-centos7-gcc11-opt/lib/libCore.so
#26 0x00007f955d10a2de in ROOT::GenerateInitInstanceLocal(TStorage const*) [clone .isra.450] () from /usr/lib64/root/libCore.so.6.24
#27 0x00007f955cf99a78 in _GLOBAL__sub_I_G__Core.cxx () from /usr/lib64/root/libCore.so.6.24
#28 0x00007f955f68c9c3 in _dl_init_internal () from /lib64/ld-linux-x86-64.so.2
#29 0x00007f955f67e17a in _dl_start_user () from /lib64/ld-linux-x86-64.so.2
#30 0x0000000000000001 in ?? ()
#31 0x00007ffe9f8ffdb9 in ?? ()
#32 0x0000000000000000 in ?? ()

I am unfortunately unable to understand what is wrong from here. I was hoping for some tips going through this stack trace and figuring out why ROOT seems to be stuck printing a warning…

Note: Beginner here, please bare with me :slight_smile:

The problem is likely that the LCG view is not completely hiding the locally installed version of ROOT:

#25 0x00007f955e262a3f in ROOT::TGenericClassInfo::TGenericClassInfo(char const*, int, char const*, int, std::type_info const&, ROOT::Internal::TInitBehavior const*, TClass* (*)(), TVirtualIsAProxy*, int, int) ()
   from /cvmfs/sft.cern.ch/lcg/views/LCG_101/x86_64-centos7-gcc11-opt/lib/libCore.so

vs

#27 0x00007f955cf99a78 in _GLOBAL__sub_I_G__Core.cxx () from /usr/lib64/root/libCore.so.6.24

What can be done in this situation?