You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We borrow a reference to the static exceptions TypeError and
ValueError and pass these objects to PyModule_AddObject, which steals
a reference. In Python 3.11 and newer, Py_Finalize() deallocates
static exceptions
python/cpython#30805
This results in a crash on termination, because _PyStaticType_Dealloc
indirectly calls _Py_Dealloc on the objects as the reference count
drops to zero. The issue does not occur in Python 3.12 and newer
because the objects are immortal.
Signed-off-by: Emanuele Giaquinta <[email protected]>
The following code
leads to a segmentation fault on the following configurations:
ormsgpack 1.4.1 + Python 3.11.7 on Debian 12
ormsgpack 1.4.1 + Python 3.11.6 on macOS sonoma 14.2.1
To reproduce, copy the content in file called test.py for example and execute the command:
The example works fine with Python 3.9.16 and Python 3.10.10.
The text was updated successfully, but these errors were encountered: