RooRealVar::setBinning with name in pyROOT

Hi, all!

I am trying to give a name for the Binning scheme I pass to the RooRealVar, but I am getting an assertion message from ROOT source code.
The stack is following:

bash-5.1$ python test_fit_orig.py 
[#1] INFO:DataHandling -- RooAbsCategory::attachToTree(year) TTree branch year will be interpreted as category index
[#1] INFO:DataHandling -- RooAbsCategory::attachToTree(hlt1b) TTree branch hlt1b will be interpreted as category index
{ {"X_M_bin0" , 0}, {"X_M_bin1" , 1}, {"X_M_bin10" , 10}, {"X_M_bin11" , 11}, {"X_M_bin12" , 12}, {"X_M_bin13" , 13}, {"X_M_bin14" , 14}, {"X_M_bin15" , 15}, {"X_M_bin16" , 16}, {"X_M_bin17" , 17}, {"X_M_bin18" , 18}, {"X_M_bin19" , 19}, {"X_M_bin2" , 2}, {"X_M_bin20" , 20}, {"X_M_bin21" , 21}, {"X_M_bin22" , 22}, {"X_M_bin23" , 23}, {"X_M_bin24" , 24}, {"X_M_bin25" , 25}, {"X_M_bin26" , 26}, {"X_M_bin27" , 27}, {"X_M_bin28" , 28}, {"X_M_bin29" , 29}, {"X_M_bin3" , 3}, {"X_M_bin30" , 30}, {"X_M_bin31" , 31}, {"X_M_bin32" , 32}, {"X_M_bin33" , 33}, {"X_M_bin34" , 34}, {"X_M_bin35" , 35}, {"X_M_bin36" , 36}, {"X_M_bin37" , 37}, {"X_M_bin38" , 38}, {"X_M_bin39" , 39}, {"X_M_bin4" , 4}, {"X_M_bin40" , 40}, {"X_M_bin41" , 41}, {"X_M_bin42" , 42}, {"X_M_bin43" , 43}, {"X_M_bin44" , 44}, {"X_M_bin45" , 45}, {"X_M_bin46" , 46}, {"X_M_bin47" , 47}, {"X_M_bin48" , 48}, {"X_M_bin49" , 49}, {"X_M_bin5" , 5}, {"X_M_bin50" , 50}, {"X_M_bin51" , 51}, {"X_M_bin52" , 52}, {"X_M_bin53" , 53}, {"X_M_bin54" , 54}, {"X_M_bin55" , 55}, {"X_M_bin56" , 56}, {"X_M_bin57" , 57}, {"X_M_bin58" , 58}, {"X_M_bin59" , 59}, {"X_M_bin6" , 6}, {"X_M_bin60" , 60}, {"X_M_bin61" , 61}, {"X_M_bin62" , 62}, {"X_M_bin63" , 63}, {"X_M_bin64" , 64}, {"X_M_bin65" , 65}, {"X_M_bin66" , 66}, {"X_M_bin67" , 67}, {"X_M_bin68" , 68}, {"X_M_bin69" , 69}, {"X_M_bin7" , 7}, {"X_M_bin70" , 70}, {"X_M_bin71" , 71}, {"X_M_bin72" , 72}, {"X_M_bin73" , 73}, {"X_M_bin74" , 74}, {"X_M_bin75" , 75}, {"X_M_bin76" , 76}, {"X_M_bin77" , 77}, {"X_M_bin78" , 78}, {"X_M_bin79" , 79}, {"X_M_bin8" , 8}, {"X_M_bin80" , 80}, {"X_M_bin81" , 81}, {"X_M_bin82" , 82}, {"X_M_bin83" , 83}, {"X_M_bin84" , 84}, {"X_M_bin85" , 85}, {"X_M_bin86" , 86}, {"X_M_bin87" , 87}, {"X_M_bin88" , 88}, {"X_M_bin89" , 89}, {"X_M_bin9" , 9}, {"X_M_bin90" , 90}, {"X_M_bin91" , 91}, {"X_M_bin92" , 92}, {"X_M_bin93" , 93}, {"X_M_bin94" , 94}, {"X_M_bin95" , 95}, {"X_M_bin96" , 96}, {"X_M_bin97" , 97}, {"X_M_bin98" , 98}, {"X_M_bin99" , 99} } <class cppyy.gbl.RooCategory at 0x564a2e593d70>
{ {"biased" , 0}, {"unbiased" , 1} } <class cppyy.gbl.RooCategory at 0x564a2e593d70>
{ {"p2015" , 2015}, {"p2016" , 2016}, {"p2017" , 2017}, {"p2018" , 2018} } <class cppyy.gbl.RooCategory at 0x564a2e593d70>
python: /home/conda/feedstock_root/build_artifacts/root_base_1654795774398/work/root-source/roofit/roofitcore/src/RooMultiCategory.cxx:155: virtual RooAbsCategory::value_type RooMultiCategory::evaluate() const: Assertion `createLabel() == computeLabelOldStyle(_catSet, computedStateIndex)' failed.
 *** Break *** abort



===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================

Thread 2 (Thread 0x7f907314c700 (LWP 62135)):
#0  0x00007f90984c8de2 in pthread_cond_timedwait

GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x0000564a2755ea7d in PyCOND_TIMEDWAIT (us=<optimized out>, mut=<optimized out>, cond=0x564a277ded60 <_PyRuntime+384>) at /usr/local/src/conda/python-3.9.13/Python/condvar.h:73
#2  take_gil () at /usr/local/src/conda/python-3.9.13/Python/ceval_gil.h:247
#3  0x0000564a275a6cb2 in PyEval_RestoreThread () at /usr/local/src/conda/python-3.9.13/Python/ceval.c:467
#4  0x0000564a2769ad84 in pysleep (secs=<optimized out>) at /usr/local/src/conda/python-3.9.13/Modules/timemodule.c:2037
#5  time_sleep () at /usr/local/src/conda/python-3.9.13/Modules/timemodule.c:365
#6  0x0000564a27586722 in cfunction_vectorcall_O () at /usr/local/src/conda/python-3.9.13/Objects/methodobject.c:516
#7  0x0000564a2757a636 in _PyObject_VectorcallTstate (kwnames=0x0, nargsf=<optimized out>, args=0x7f907e2ccec0, callable=0x7f9098852630, tstate=0x564a2cf86420) at /usr/local/src/conda/python-3.9.13/Include/cpython/abstract.h:118
#8  PyObject_Vectorcall (kwnames=0x0, nargsf=<optimized out>, args=0x7f907e2ccec0, callable=0x7f9098852630) at /usr/local/src/conda/python-3.9.13/Include/cpython/abstract.h:127
#9  call_function (kwnames=0x0, oparg=<optimized out>, pp_stack=<synthetic pointer>, tstate=0x564a2cf86420) at /usr/local/src/conda/python-3.9.13/Python/ceval.c:5077
#10 _PyEval_EvalFrameDefault () at /usr/local/src/conda/python-3.9.13/Python/ceval.c:3489
#11 0x0000564a27574a17 in _PyEval_EvalFrame (throwflag=0, f=0x7f907e2ccd40, tstate=0x564a2cf86420) at /usr/local/src/conda/python-3.9.13/Include/internal/pycore_ceval.h:40
#12 _PyEval_EvalCode () at /usr/local/src/conda/python-3.9.13/Python/ceval.c:4329
#13 0x0000564a27586ff9 in _PyFunction_Vectorcall (func=<optimized out>, stack=<optimized out>, nargsf=<optimized out>, kwnames=<optimized out>) at /usr/local/src/conda/python-3.9.13/Objects/call.c:396
#14 0x0000564a27579396 in do_call_core (kwdict=0x7f907e29b280, callargs=0x7f909886d4f0, func=0x7f909884c550, tstate=<optimized out>) at /usr/local/src/conda/python-3.9.13/Python/ceval.c:5125
#15 _PyEval_EvalFrameDefault () at /usr/local/src/conda/python-3.9.13/Python/ceval.c:3582
#16 0x0000564a27587303 in _PyEval_EvalFrame (throwflag=0, f=0x7f9091216040, tstate=0x564a2cf86420) at /usr/local/src/conda/python-3.9.13/Include/internal/pycore_ceval.h:40
#17 function_code_fastcall () at /usr/local/src/conda/python-3.9.13/Objects/call.c:330
#18 0x0000564a27576063 in _PyObject_VectorcallTstate (kwnames=0x0, nargsf=<optimized out>, args=0x7f907e22f1b8, callable=0x7f9084b3a790, tstate=0x564a2cf86420) at /usr/local/src/conda/python-3.9.13/Include/cpython/abstract.h:118
#19 PyObject_Vectorcall (kwnames=0x0, nargsf=<optimized out>, args=0x7f907e22f1b8, callable=0x7f9084b3a790) at /usr/local/src/conda/python-3.9.13/Include/cpython/abstract.h:127
#20 call_function (kwnames=0x0, oparg=<optimized out>, pp_stack=<synthetic pointer>, tstate=0x564a2cf86420) at /usr/local/src/conda/python-3.9.13/Python/ceval.c:5077
#21 _PyEval_EvalFrameDefault () at /usr/local/src/conda/python-3.9.13/Python/ceval.c:3506
#22 0x0000564a27587303 in _PyEval_EvalFrame (throwflag=0, f=0x7f907e22f040, tstate=0x564a2cf86420) at /usr/local/src/conda/python-3.9.13/Include/internal/pycore_ceval.h:40
#23 function_code_fastcall () at /usr/local/src/conda/python-3.9.13/Objects/call.c:330
#24 0x0000564a27576063 in _PyObject_VectorcallTstate (kwnames=0x0, nargsf=<optimized out>, args=0x7f909117bc38, callable=0x7f9084b3aa60, tstate=0x564a2cf86420) at /usr/local/src/conda/python-3.9.13/Include/cpython/abstract.h:118
#25 PyObject_Vectorcall (kwnames=0x0, nargsf=<optimized out>, args=0x7f909117bc38, callable=0x7f9084b3aa60) at /usr/local/src/conda/python-3.9.13/Include/cpython/abstract.h:127
#26 call_function (kwnames=0x0, oparg=<optimized out>, pp_stack=<synthetic pointer>, tstate=0x564a2cf86420) at /usr/local/src/conda/python-3.9.13/Python/ceval.c:5077
#27 _PyEval_EvalFrameDefault () at /usr/local/src/conda/python-3.9.13/Python/ceval.c:3506
#28 0x0000564a27587303 in _PyEval_EvalFrame (throwflag=0, f=0x7f909117bac0, tstate=0x564a2cf86420) at /usr/local/src/conda/python-3.9.13/Include/internal/pycore_ceval.h:40
#29 function_code_fastcall () at /usr/local/src/conda/python-3.9.13/Objects/call.c:330
#30 0x0000564a275964a5 in _PyObject_VectorcallTstate (kwnames=0x0, nargsf=1, args=0x7f907314be68, callable=0x7f9084b3a820, tstate=0x564a2cf86420) at /usr/local/src/conda/python-3.9.13/Include/cpython/abstract.h:103
#31 method_vectorcall () at /usr/local/src/conda/python-3.9.13/Objects/classobject.c:61
#32 0x0000564a2767a4e5 in t_bootstrap () at /usr/local/src/conda/python-3.9.13/Modules/_threadmodule.c:1040
#33 0x0000564a2767a494 in pythread_wrapper (arg=<optimized out>) at /usr/local/src/conda/python-3.9.13/Python/thread_pthread.h:245
#34 0x00007f90984c4ea5 in start_thread () from /lib64/libpthread.so.0
#35 0x00007f90978dcb0d in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f90988d7740 (LWP 62080)):
#0  0x00007f90978a3659 in waitpid () from /lib64/libc.so.6
#1  0x00007f9097820f62 in do_system () from /lib64/libc.so.6
#2  0x00007f9097821311 in system () from /lib64/libc.so.6
#3  0x00007f9090efe545 in TUnixSystem::StackTrace() () from /cvmfs/lhcbdev.cern.ch/conda/envs/default/2022-06-15_17-18/linux-64/bin/../lib/libCore.so.6.26
#4  0x00007f909871685f in (anonymous namespace)::TExceptionHandlerImp::HandleException(int) () from /cvmfs/lhcbdev.cern.ch/conda/envs/default/2022-06-15_17-18/linux-64/bin/../lib/libcppyy_backend3_9.so.6.26
#5  0x00007f9090efb721 in TUnixSystem::DispatchSignals(ESignals) () from /cvmfs/lhcbdev.cern.ch/conda/envs/default/2022-06-15_17-18/linux-64/bin/../lib/libCore.so.6.26
#6  <signal handler called>
#7  0x00007f9097814387 in raise () from /lib64/libc.so.6
#8  0x00007f9097815a78 in abort () from /lib64/libc.so.6
#9  0x00007f909780d1a6 in __assert_fail_base () from /lib64/libc.so.6
#10 0x00007f909780d252 in __assert_fail () from /lib64/libc.so.6
#11 0x00007f90726339ae in RooMultiCategory::evaluate() const () from /cvmfs/lhcbdev.cern.ch/conda/envs/default/2022-06-15_17-18/linux-64/lib/libRooFitCore.so.6.26.04
#12 0x00007f9072498c3d in RooAbsCategory::getCurrentIndex() const () from /cvmfs/lhcbdev.cern.ch/conda/envs/default/2022-06-15_17-18/linux-64/lib/libRooFitCore.so.6.26.04
#13 0x00007f9072498c3d in RooAbsCategory::getCurrentIndex() const () from /cvmfs/lhcbdev.cern.ch/conda/envs/default/2022-06-15_17-18/linux-64/lib/libRooFitCore.so.6.26.04
#14 0x00007f9071a3d034 in ?? ()
#15 0x0000564a2f846d70 in ?? ()
#16 0x0000564a2f846d70 in ?? ()
#17 0x00007ffc23900ad4 in ?? ()
#18 0x00007f909871e60f in WrapperCall(long, unsigned long, void*, void*, void*) () from /cvmfs/lhcbdev.cern.ch/conda/envs/default/2022-06-15_17-18/linux-64/bin/../lib/libcppyy_backend3_9.so.6.26
#19 0x00007f909871eef2 in Cppyy::CallI(long, void*, unsigned long, void*) () from /cvmfs/lhcbdev.cern.ch/conda/envs/default/2022-06-15_17-18/linux-64/bin/../lib/libcppyy_backend3_9.so.6.26
#20 0x00007f9091104810 in CPyCppyy::(anonymous namespace)::IntExecutor::Execute(long, void*, CPyCppyy::CallContext*) () from /cvmfs/lhcbdev.cern.ch/conda/envs/default/2022-06-15_17-18/linux-64/lib/python3.9/site-packages/libcppyy3_9.so
#21 0x00007f90910f20c9 in CPyCppyy::CPPMethod::ExecuteFast(void*, long, CPyCppyy::CallContext*) [clone .isra.0] () from /cvmfs/lhcbdev.cern.ch/conda/envs/default/2022-06-15_17-18/linux-64/lib/python3.9/site-packages/libcppyy3_9.so
#22 0x00007f90910f2e98 in CPyCppyy::CPPMethod::ExecuteProtected(void*, long, CPyCppyy::CallContext*) () from /cvmfs/lhcbdev.cern.ch/conda/envs/default/2022-06-15_17-18/linux-64/lib/python3.9/site-packages/libcppyy3_9.so
#23 0x00007f90910f351a in CPyCppyy::CPPMethod::Execute(void*, long, CPyCppyy::CallContext*) () from /cvmfs/lhcbdev.cern.ch/conda/envs/default/2022-06-15_17-18/linux-64/lib/python3.9/site-packages/libcppyy3_9.so
#24 0x00007f90910f469f in CPyCppyy::CPPMethod::Call(CPyCppyy::CPPInstance*&, _object*, _object*, CPyCppyy::CallContext*) () from /cvmfs/lhcbdev.cern.ch/conda/envs/default/2022-06-15_17-18/linux-64/lib/python3.9/site-packages/libcppyy3_9.so
#25 0x00007f90910f970f in CPyCppyy::(anonymous namespace)::mp_call(CPyCppyy::CPPOverload*, _object*, _object*) () from /cvmfs/lhcbdev.cern.ch/conda/envs/default/2022-06-15_17-18/linux-64/lib/python3.9/site-packages/libcppyy3_9.so
#26 0x0000564a2757efa7 in _PyObject_MakeTpCall () at /usr/local/src/conda/python-3.9.13/Objects/call.c:200
#27 0x0000564a2757ad5f in _PyObject_VectorcallTstate (kwnames=0x0, nargsf=<optimized out>, args=<optimized out>, callable=0x7f907e222d30, tstate=<optimized out>) at /usr/local/src/conda/python-3.9.13/Include/cpython/abstract.h:116
#28 _PyObject_VectorcallTstate (kwnames=0x0, nargsf=<optimized out>, args=0x564a286db5d8, callable=0x7f907e222d30, tstate=<optimized out>) at /usr/local/src/conda/python-3.9.13/Include/cpython/abstract.h:103
#29 PyObject_Vectorcall (kwnames=0x0, nargsf=<optimized out>, args=0x564a286db5d8, callable=0x7f907e222d30) at /usr/local/src/conda/python-3.9.13/Include/cpython/abstract.h:127
#30 call_function (kwnames=0x0, oparg=<optimized out>, pp_stack=<synthetic pointer>, tstate=0x564a286836e0) at /usr/local/src/conda/python-3.9.13/Python/ceval.c:5077
#31 _PyEval_EvalFrameDefault () at /usr/local/src/conda/python-3.9.13/Python/ceval.c:3489
#32 0x0000564a27574a17 in _PyEval_EvalFrame (throwflag=0, f=0x564a286db460, tstate=0x564a286836e0) at /usr/local/src/conda/python-3.9.13/Include/internal/pycore_ceval.h:40
#33 _PyEval_EvalCode () at /usr/local/src/conda/python-3.9.13/Python/ceval.c:4329
#34 0x0000564a275746d7 in _PyEval_EvalCodeWithName (_co=<optimized out>, globals=<optimized out>, locals=<optimized out>, args=<optimized out>, argcount=argcount
entry=0, kwnames=<optimized out>, kwargs=0x0, kwcount=0, kwstep=2, defs=0x0, defcount=0, kwdefs=0x0, closure=0x0, name=0x0, qualname=0x0) at /usr/local/src/conda/python-3.9.13/Python/ceval.c:4361
#35 0x0000564a27574689 in PyEval_EvalCodeEx () at /usr/local/src/conda/python-3.9.13/Python/ceval.c:4377
#36 0x0000564a2762fe3b in PyEval_EvalCode (co=co
entry=0x7f9098813df0, globals=globals
entry=0x7f9098809bc0, locals=locals
entry=0x7f9098809bc0) at /usr/local/src/conda/python-3.9.13/Python/ceval.c:828
#37 0x0000564a2765e4a9 in run_eval_code_obj () at /usr/local/src/conda/python-3.9.13/Python/pythonrun.c:1221
#38 0x0000564a2765a694 in run_mod () at /usr/local/src/conda/python-3.9.13/Python/pythonrun.c:1242
#39 0x0000564a274df6d2 in pyrun_file (fp=0x564a286fac90, filename=0x7f909125c830, start=257, globals=0x7f9098809bc0, locals=0x7f9098809bc0, closeit=1, flags=0x7ffc23901358) at /usr/local/src/conda/python-3.9.13/Python/pythonrun.c:1140
#40 0x0000564a276541f2 in pyrun_simple_file (flags=0x7ffc23901358, closeit=1, filename=0x7f909125c830, fp=0x564a286fac90) at /usr/local/src/conda/python-3.9.13/Python/pythonrun.c:450
#41 PyRun_SimpleFileExFlags () at /usr/local/src/conda/python-3.9.13/Python/pythonrun.c:483
#42 0x0000564a27653f5b in PyRun_AnyFileExFlags () at /usr/local/src/conda/python-3.9.13/Python/pythonrun.c:92
#43 0x0000564a27651533 in pymain_run_file (cf=0x7ffc23901358, config=0x564a28681580) at /usr/local/src/conda/python-3.9.13/Modules/main.c:377
#44 pymain_run_python (exitcode=0x7ffc23901350) at /usr/local/src/conda/python-3.9.13/Modules/main.c:602
#45 Py_RunMain () at /usr/local/src/conda/python-3.9.13/Modules/main.c:681
#46 0x0000564a27623bf0 in pymain_main () at /usr/local/src/conda/python-3.9.13/Modules/main.c:1077
#47 0x0000564a27623b79 in Py_BytesMain (argc=<optimized out>, argv=<optimized out>) at /usr/local/src/conda/python-3.9.13/Modules/main.c:1101
#48 0x00007f9097800555 in __libc_start_main () from /lib64/libc.so.6
#49 0x0000564a27623a81 in _start () at /usr/local/src/conda/python-3.9.13/Python/pymath.c:88
===========================================================


The lines below might hint at the cause of the crash.
You may get help by asking at the ROOT forum https://root.cern/forum
Only if you are really convinced it is a bug in ROOT then please submit a
report at https://root.cern/bugs Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.
===========================================================
#7  0x00007f9097814387 in raise () from /lib64/libc.so.6
#8  0x00007f9097815a78 in abort () from /lib64/libc.so.6
#9  0x00007f909780d1a6 in __assert_fail_base () from /lib64/libc.so.6
#10 0x00007f909780d252 in __assert_fail () from /lib64/libc.so.6
#11 0x00007f90726339ae in RooMultiCategory::evaluate() const () from /cvmfs/lhcbdev.cern.ch/conda/envs/default/2022-06-15_17-18/linux-64/lib/libRooFitCore.so.6.26.04
#12 0x00007f9072498c3d in RooAbsCategory::getCurrentIndex() const () from /cvmfs/lhcbdev.cern.ch/conda/envs/default/2022-06-15_17-18/linux-64/lib/libRooFitCore.so.6.26.04
#13 0x00007f9072498c3d in RooAbsCategory::getCurrentIndex() const () from /cvmfs/lhcbdev.cern.ch/conda/envs/default/2022-06-15_17-18/linux-64/lib/libRooFitCore.so.6.26.04
#14 0x00007f9071a3d034 in ?? ()
#15 0x0000564a2f846d70 in ?? ()
#16 0x0000564a2f846d70 in ?? ()
#17 0x00007ffc23900ad4 in ?? ()
#18 0x00007f909871e60f in WrapperCall(long, unsigned long, void*, void*, void*) () from /cvmfs/lhcbdev.cern.ch/conda/envs/default/2022-06-15_17-18/linux-64/bin/../lib/libcppyy_backend3_9.so.6.26
#19 0x00007f909871eef2 in Cppyy::CallI(long, void*, unsigned long, void*) () from /cvmfs/lhcbdev.cern.ch/conda/envs/default/2022-06-15_17-18/linux-64/bin/../lib/libcppyy_backend3_9.so.6.26
#20 0x00007f9091104810 in CPyCppyy::(anonymous namespace)::IntExecutor::Execute(long, void*, CPyCppyy::CallContext*) () from /cvmfs/lhcbdev.cern.ch/conda/envs/default/2022-06-15_17-18/linux-64/lib/python3.9/site-packages/libcppyy3_9.so
#21 0x00007f90910f20c9 in CPyCppyy::CPPMethod::ExecuteFast(void*, long, CPyCppyy::CallContext*) [clone .isra.0] () from /cvmfs/lhcbdev.cern.ch/conda/envs/default/2022-06-15_17-18/linux-64/lib/python3.9/site-packages/libcppyy3_9.so
#22 0x00007f90910f2e98 in CPyCppyy::CPPMethod::ExecuteProtected(void*, long, CPyCppyy::CallContext*) () from /cvmfs/lhcbdev.cern.ch/conda/envs/default/2022-06-15_17-18/linux-64/lib/python3.9/site-packages/libcppyy3_9.so
#23 0x00007f90910f351a in CPyCppyy::CPPMethod::Execute(void*, long, CPyCppyy::CallContext*) () from /cvmfs/lhcbdev.cern.ch/conda/envs/default/2022-06-15_17-18/linux-64/lib/python3.9/site-packages/libcppyy3_9.so
#24 0x00007f90910f469f in CPyCppyy::CPPMethod::Call(CPyCppyy::CPPInstance*&, _object*, _object*, CPyCppyy::CallContext*) () from /cvmfs/lhcbdev.cern.ch/conda/envs/default/2022-06-15_17-18/linux-64/lib/python3.9/site-packages/libcppyy3_9.so
#25 0x00007f90910f970f in CPyCppyy::(anonymous namespace)::mp_call(CPyCppyy::CPPOverload*, _object*, _object*) () from /cvmfs/lhcbdev.cern.ch/conda/envs/default/2022-06-15_17-18/linux-64/lib/python3.9/site-packages/libcppyy3_9.so
#26 0x0000564a2757efa7 in _PyObject_MakeTpCall () at /usr/local/src/conda/python-3.9.13/Objects/call.c:200
#27 0x0000564a2757ad5f in _PyObject_VectorcallTstate (kwnames=0x0, nargsf=<optimized out>, args=<optimized out>, callable=0x7f907e222d30, tstate=<optimized out>) at /usr/local/src/conda/python-3.9.13/Include/cpython/abstract.h:116
#28 _PyObject_VectorcallTstate (kwnames=0x0, nargsf=<optimized out>, args=0x564a286db5d8, callable=0x7f907e222d30, tstate=<optimized out>) at /usr/local/src/conda/python-3.9.13/Include/cpython/abstract.h:103
#29 PyObject_Vectorcall (kwnames=0x0, nargsf=<optimized out>, args=0x564a286db5d8, callable=0x7f907e222d30) at /usr/local/src/conda/python-3.9.13/Include/cpython/abstract.h:127
#30 call_function (kwnames=0x0, oparg=<optimized out>, pp_stack=<synthetic pointer>, tstate=0x564a286836e0) at /usr/local/src/conda/python-3.9.13/Python/ceval.c:5077
#31 _PyEval_EvalFrameDefault () at /usr/local/src/conda/python-3.9.13/Python/ceval.c:3489
#32 0x0000564a27574a17 in _PyEval_EvalFrame (throwflag=0, f=0x564a286db460, tstate=0x564a286836e0) at /usr/local/src/conda/python-3.9.13/Include/internal/pycore_ceval.h:40
#33 _PyEval_EvalCode () at /usr/local/src/conda/python-3.9.13/Python/ceval.c:4329
#34 0x0000564a275746d7 in _PyEval_EvalCodeWithName (_co=<optimized out>, globals=<optimized out>, locals=<optimized out>, args=<optimized out>, argcount=argcount
entry=0, kwnames=<optimized out>, kwargs=0x0, kwcount=0, kwstep=2, defs=0x0, defcount=0, kwdefs=0x0, closure=0x0, name=0x0, qualname=0x0) at /usr/local/src/conda/python-3.9.13/Python/ceval.c:4361
#35 0x0000564a27574689 in PyEval_EvalCodeEx () at /usr/local/src/conda/python-3.9.13/Python/ceval.c:4377
#36 0x0000564a2762fe3b in PyEval_EvalCode (co=co
entry=0x7f9098813df0, globals=globals
entry=0x7f9098809bc0, locals=locals
entry=0x7f9098809bc0) at /usr/local/src/conda/python-3.9.13/Python/ceval.c:828
#37 0x0000564a2765e4a9 in run_eval_code_obj () at /usr/local/src/conda/python-3.9.13/Python/pythonrun.c:1221
#38 0x0000564a2765a694 in run_mod () at /usr/local/src/conda/python-3.9.13/Python/pythonrun.c:1242
#39 0x0000564a274df6d2 in pyrun_file (fp=0x564a286fac90, filename=0x7f909125c830, start=257, globals=0x7f9098809bc0, locals=0x7f9098809bc0, closeit=1, flags=0x7ffc23901358) at /usr/local/src/conda/python-3.9.13/Python/pythonrun.c:1140
#40 0x0000564a276541f2 in pyrun_simple_file (flags=0x7ffc23901358, closeit=1, filename=0x7f909125c830, fp=0x564a286fac90) at /usr/local/src/conda/python-3.9.13/Python/pythonrun.c:450
#41 PyRun_SimpleFileExFlags () at /usr/local/src/conda/python-3.9.13/Python/pythonrun.c:483
#42 0x0000564a27653f5b in PyRun_AnyFileExFlags () at /usr/local/src/conda/python-3.9.13/Python/pythonrun.c:92
#43 0x0000564a27651533 in pymain_run_file (cf=0x7ffc23901358, config=0x564a28681580) at /usr/local/src/conda/python-3.9.13/Modules/main.c:377
#44 pymain_run_python (exitcode=0x7ffc23901350) at /usr/local/src/conda/python-3.9.13/Modules/main.c:602
#45 Py_RunMain () at /usr/local/src/conda/python-3.9.13/Modules/main.c:681
#46 0x0000564a27623bf0 in pymain_main () at /usr/local/src/conda/python-3.9.13/Modules/main.c:1077
#47 0x0000564a27623b79 in Py_BytesMain (argc=<optimized out>, argv=<optimized out>) at /usr/local/src/conda/python-3.9.13/Modules/main.c:1101
#48 0x00007f9097800555 in __libc_start_main () from /lib64/libc.so.6
#49 0x0000564a27623a81 in _start () at /usr/local/src/conda/python-3.9.13/Python/pymath.c:88
===========================================================


Traceback (most recent call last):
  File "/project/bfys/valukash/BsJpsiphi/p2vv/scripts/run2/test_fit_orig.py", line 46, in <module>
    index = splitCat.getIndex()
cppyy.ll.AbortSignal: int RooAbsCategory::getIndex() =>
    AbortSignal: abort from C++; program state was reset

If I replace KKMass.setBinning(KKMassBinning, name), the error is gone.

How should I assign the name to the binning scheme correctly?
An example file: test_fit_orig.py (1.5 KB)
Run with ROOT 6.26/04 and python 3.9.13.

Thanks!

HI @watmann,

thank you very much for reporting this!

The assert is checking that the implementation of the RooSuperCategory is consistent with an old implementation that was there before ROOT 6.22.

Thanks to your code, we understand now that the old reference implementation has a bug, that’s why the assertion fails even thought nothing is wrong. I have opened a PR to get rid of the assert with the next ROOT release:

What you can do now to avoid this problem is to not use a ROOT debug build for your work. This would be good to do anyway, because the debug builds are much slower with all the added checks.

I hope that clarifies the situation!
Jonas

Hi, @jonas! Thanks!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.