Here’s the full stacktrace in case that helps:
[Macbook2022 18:38] VVSemilep$ ./python/mj_fits.py
Wrote reco.fit_mJ.hp.one-exp.fatjet_pt0,3000.May23-ANN.png
*** Break *** segmentation violation
[/Applications/root_v6.26.06/lib/libCore.6.26.06.so] TUnixSystem::DispatchSignals(ESignals) (no debug info)
[/usr/lib/system/libsystem_platform.dylib] _sigtramp (no debug info)
[/Applications/root_v6.26.06/lib/libcppyy_backend3_8.6.26.06.so] WrapperCall(long, unsigned long, void*, void*, void*) (no debug info)
[/Applications/root_v6.26.06/lib/libcppyy_backend3_8.6.26.06.so] WrapperCall(long, unsigned long, void*, void*, void*) (no debug info)
[/Applications/root_v6.26.06/lib/libcppyy_backend3_8.6.26.06.so] Cppyy::CallR(long, void*, unsigned long, void*) (no debug info)
[/Applications/root_v6.26.06/lib/libcppyy3_8.6.26.06.so] CPyCppyy::(anonymous namespace)::InstancePtrExecutor::Execute(long, void*, CPyCppyy::CallContext*) (no debug info)
[/Applications/root_v6.26.06/lib/libcppyy3_8.6.26.06.so] CPyCppyy::CPPMethod::ExecuteFast(void*, long, CPyCppyy::CallContext*) (no debug info)
[/Applications/root_v6.26.06/lib/libcppyy3_8.6.26.06.so] CPyCppyy::CPPMethod::ExecuteProtected(void*, long, CPyCppyy::CallContext*) (no debug info)
[/Applications/root_v6.26.06/lib/libcppyy3_8.6.26.06.so] CPyCppyy::CPPMethod::Call(CPyCppyy::CPPInstance*&, _object*, _object*, CPyCppyy::CallContext*) (no debug info)
[/Applications/root_v6.26.06/lib/libcppyy3_8.6.26.06.so] CPyCppyy::(anonymous namespace)::mp_call(CPyCppyy::CPPOverload*, _object*, _object*) (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.8/Python] _PyObject_MakeTpCall (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.8/Python] call_function (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.8/Python] _PyEval_EvalFrameDefault (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.8/Python] _PyEval_EvalCodeWithName (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.8/Python] _PyFunction_Vectorcall (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.8/Python] call_function (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.8/Python] _PyEval_EvalFrameDefault (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.8/Python] function_code_fastcall (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.8/Python] call_function (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.8/Python] _PyEval_EvalFrameDefault (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.8/Python] _PyEval_EvalCodeWithName (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.8/Python] _PyFunction_Vectorcall (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.8/Python] call_function (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.8/Python] _PyEval_EvalFrameDefault (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.8/Python] _PyEval_EvalCodeWithName (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.8/Python] _PyFunction_Vectorcall (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.8/Python] call_function (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.8/Python] _PyEval_EvalFrameDefault (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.8/Python] _PyEval_EvalCodeWithName (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.8/Python] _PyFunction_Vectorcall (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.8/Python] PyVectorcall_Call (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.8/Python] _PyEval_EvalFrameDefault (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.8/Python] _PyEval_EvalCodeWithName (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.8/Python] _PyFunction_Vectorcall (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.8/Python] call_function (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.8/Python] _PyEval_EvalFrameDefault (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.8/Python] function_code_fastcall (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.8/Python] call_function (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.8/Python] _PyEval_EvalFrameDefault (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.8/Python] _PyEval_EvalCodeWithName (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.8/Python] PyEval_EvalCode (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.8/Python] PyRun_SimpleFileExFlags (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.8/Python] Py_RunMain (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.8/Python] pymain_main (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.8/Python] Py_BytesMain (no debug info)
[/usr/lib/dyld] start (no debug info)
Traceback (most recent call last):
File "./python/mj_fits.py", line 585, in <module>
v()
File "./python/mj_fits.py", line 546, in single_func
graphs.hist_2d_binned(args, bins, callback=callback)
File "/Users/riley/Documents/CERN/VVSemilep/python/graphs.py", line 561, in hist_2d_binned
_hist_1d(hists, info, opts_bin, **new_kwargs)
File "/Users/riley/Documents/CERN/VVSemilep/python/graphs.py", line 344, in _hist_1d
hists, opts = callback(hists, opts)
File "/Users/riley/Documents/CERN/VVSemilep/python/graphs.py", line 554, in new_callback
hists, opts = user_callback(hists, opts)
File "./python/mj_fits.py", line 486, in callback
h_mc, opts = _common_callback(hists, opts)
File "./python/mj_fits.py", line 372, in _common_callback
h = graphs.rebin(h, bins)
File "/Users/riley/Documents/CERN/VVSemilep/python/graphs.py", line 162, in rebin
return h.Rebin(len(val) - 1, h.GetName() + '_rebin', val)
cppyy.ll.SegmentationViolation: TH1* TH1::Rebin(int ngroup = 2, const char* newname = "", const double* xbins = 0) =>
SegmentationViolation: segfault in C++; program state was reset