kodi segfaults on exit
Description:
Not sure whether to file this under kodi or python; kodi segfaults on exit, backtrace refers to libpython.
This happens since either kodi 21 or python 3.12 (both packages released in April).
Additional info:
- package version(s):
kodi 21.0-4
python 3.12.3-1
- config and/or log files:
Process 2826 (kodi.bin) of user 420 dumped core.
Core was generated by `/usr/lib/kodi/kodi.bin --standalone'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x0000758146172d11 in _PyGCHead_SET_PREV (prev=<optimized out>, gc=<optimized out>) at ./Include/internal/pycore_gc.h:74
74 gc->_gc_prev = ((gc->_gc_prev & ~_PyGC_PREV_MASK) | uprev);
[Current thread is 1 (Thread 0x758102a006c0 (LWP 2856))]
(gdb) backtrace
#0 0x0000758146172d11 in _PyGCHead_SET_PREV (prev=<optimized out>, gc=<optimized out>) at ./Include/internal/pycore_gc.h:74
#1 _PyObject_GC_UNTRACK (op=0x758103f5e890) at ./Include/internal/pycore_object.h:247
#2 PyObject_GC_UnTrack (op_raw=0x758103f5e890) at Modules/gcmodule.c:2242
#3 0x0000758146274f7b in module_dealloc (m=0x758103f5e890) at Objects/moduleobject.c:709
#4 0x0000758146188437 in _Py_Dealloc (op=<optimized out>) at Objects/object.c:2625
#5 Py_DECREF (op=<optimized out>) at ./Include/object.h:705
#6 Py_XDECREF (op=<optimized out>) at ./Include/object.h:798
#7 Py_XDECREF (op=<optimized out>) at ./Include/object.h:795
#8 meth_dealloc (m=0x758103f5f740) at Objects/methodobject.c:170
#9 0x00007581461774e1 in _Py_Dealloc (op=0x758103f5f740) at Objects/object.c:2625
#10 Py_DECREF (op=0x758103f5f740) at ./Include/object.h:705
#11 Py_XDECREF (op=0x758103f5f740) at ./Include/object.h:798
#12 insertdict (interp=0x758134522010, mp=mp@entry=0x75810cda7980, key=key@entry=0x758103f67d30, hash=hash@entry=-2078559206695431833, value=value@entry=0x7581465a9de0 <_Py_NoneStruct>) at Objects/dictobject.c:1319
#13 0x00007581461faf01 in _PyDict_SetItem_Take2 (value=0x7581465a9de0 <_Py_NoneStruct>, key=<optimized out>, mp=<optimized out>) at Objects/dictobject.c:1865
#14 PyDict_SetItem (value=0x7581465a9de0 <_Py_NoneStruct>, key=<optimized out>, op=<optimized out>) at Objects/dictobject.c:1883
#15 _PyModule_ClearDict (d=0x75810cda7980) at Objects/moduleobject.c:656
#16 0x0000758146274b4c in finalize_modules_clear_weaklist (verbose=0, weaklist=0x7580d7dd3340, interp=0x758134522010) at Python/pylifecycle.c:1526
#17 finalize_modules (tstate=tstate@entry=0x75813457f930) at Python/pylifecycle.c:1609
#18 0x00007581462803fe in Py_EndInterpreter (tstate=0x75813457f930) at Python/pylifecycle.c:2199
#19 0x000061870dab0388 in CPythonInvoker::onExecutionDone() ()
#20 0x000061870e5bac1d in non-virtual thunk to CLanguageInvokerThread::OnExit() ()
#21 0x000061870deb9b90 in CThread::Action() ()
#22 0x000061870dec3304 in ??? ()
#23 0x00007581444e0c84 in std::execute_native_thread_routine (__p=0x61872e34d160) at /usr/src/debug/gcc/gcc/libstdc++-v3/src/c++11/thread.cc:104
#24 0x00007581442a6ded in start_thread (arg=<optimized out>) at pthread_create.c:447
#25 0x000075814432a0dc in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
Please let me know which further information to provide.