This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Anthony Sottile, ammar2, christian.heimes, erlendaasland, pablogsal, paul.moore, shreyanavigyan, stestagg, steve.dower, tim.golden, vstinner, zach.ware
Date 2021-05-21.00:17:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1621556268.45.0.968344924781.issue44184@roundup.psfhosted.org>
In-reply-to
Content
Valgrind detects the bug (unmodified Python):

$ PYTHONMALLOC=debug valgrind ./python ref.py 
(...)
==607098== Invalid read of size 8
==607098==    at 0x493FBE: subtype_dealloc (typeobject.c:1456)
==607098==    by 0x47C914: _Py_Dealloc (object.c:2288)
==607098==    by 0x45F6BF: _Py_DECREF (object.h:500)
==607098==    by 0x45F70D: _Py_XDECREF (object.h:567)
==607098==    by 0x4654F5: dict_dealloc (dictobject.c:2068)
==607098==    by 0x47C914: _Py_Dealloc (object.c:2288)
==607098==    by 0x668EBE: _Py_DECREF (object.h:500)
==607098==    by 0x66E8BE: ast_dealloc (Python-ast.c:764)
==607098==    by 0x493FB9: subtype_dealloc (typeobject.c:1450)
(...)
History
Date User Action Args
2021-05-21 00:17:48vstinnersetrecipients: + vstinner, paul.moore, christian.heimes, tim.golden, zach.ware, steve.dower, Anthony Sottile, ammar2, pablogsal, erlendaasland, stestagg, shreyanavigyan
2021-05-21 00:17:48vstinnersetmessageid: <1621556268.45.0.968344924781.issue44184@roundup.psfhosted.org>
2021-05-21 00:17:48vstinnerlinkissue44184 messages
2021-05-21 00:17:48vstinnercreate