Crashing when using newer versions of cppyy (>=3.0.0)
With the update to version 3.0.0, cppyy updated their backend to use cling on top of LLVM 13. This caused previously working code to crash at runtime, i.e. compiling the code with cppyy.include(...)
raised no errors, but when calling functions from C++ the program would crash with the following error:
[runStaticInitializersOnce]: Failed to materialize symbols: { (main, { chi1mem, __cxx_global_var_initcling_module_142_.4, _ZN2ap17template_1d_arrayIN3amp5campfILj160EEELb0EEC1ERKS4_, _GLOBAL__sub_I_cling_module_142, __cxx_global_var_initcling_module_142_.68, __cxx_global_var_initcling_module_142_.2, chi2mem, kxmem, _ZN2ap17template_1d_arrayIN3amp4ampfILj160EEELb0EE9setboundsEii, __cxx_global_var_initcling_module_142_.70, _ZN3amp5campfILj160EEaSEi, __orc_init_func.cling-module-142, __cxx_global_var_initcling_module_142_.1, main, _ZL5jimag, eta1mem, _ZN15memorycontainerC2Em, __cxx_global_var_initcling_module_142_.3, $.cling-module-142.__inits.0, __cxx_global_var_initcling_module_142_.69, _ZN3ampmlILj160EEEKNS_4ampfIXT_EEERKiRS3_, __cxx_global_var_initcling_module_142_, _ZN2ap17template_1d_arrayIN3amp4ampfILj160EEELb0EED1Ev, mem, eta2mem }) }
[runStaticInitializersOnce]: Failed to materialize symbols: { (main, { __orc_init_func.cling-module-142 }) }
The full context of this error can be seen in the log from job 28314664, which ran on commit 3609b2bc.