[issue45061] [C API] Detect refcount bugs on True/False in C extensions

STINNER Victor report at bugs.python.org
Tue Aug 31 09:19:06 EDT 2021


STINNER Victor <vstinner at python.org> added the comment:

To reproduce the bug, apply attached os_uname_refcount_bug.patch and call os.uname():
---
$ ./python -c 'import os; os.uname()'
(...)
Fatal Python error: _PyMem_DebugRawFree: bad ID: Allocated using API '', verified using API 'o'
(...)
---

----------
keywords: +patch
Added file: https://bugs.python.org/file50247/os_uname_refcount_bug.patch

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45061>
_______________________________________


More information about the Python-bugs-list mailing list