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 pablogsal
Recipients corona10, lukasz.langa, pablogsal, petr.viktorin, serhiy.storchaka, shihai1991, tim.peters, vstinner
Date 2020-05-21.18:51:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Actually, I have been thinking about this more and I cannot really trace how the bug could happen. We control the type allocation, but Py_tp_alloc controls the instance allocation and that can be anything, the current patch should not interfere with that.

Petr, do you have a reproducer? I tried to create a reproducer of a type that overrides Py_tp_alloc but not Py_tp_traverse (therefore it does not implement gc support) and I cannot make it crash.
Date User Action Args
2020-05-21 18:51:31pablogsalsetrecipients: + pablogsal, tim.peters, vstinner, petr.viktorin, lukasz.langa, serhiy.storchaka, corona10, shihai1991
2020-05-21 18:51:31pablogsalsetmessageid: <>
2020-05-21 18:51:31pablogsallinkissue40217 messages
2020-05-21 18:51:30pablogsalcreate