Message369532
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:31 | pablogsal | set | recipients:
+ pablogsal, tim.peters, vstinner, petr.viktorin, lukasz.langa, serhiy.storchaka, corona10, shihai1991 |
2020-05-21 18:51:31 | pablogsal | set | messageid: <1590087091.04.0.684959450036.issue40217@roundup.psfhosted.org> |
2020-05-21 18:51:31 | pablogsal | link | issue40217 messages |
2020-05-21 18:51:30 | pablogsal | create | |
|