Message353631
I worked some on trying to create a unit test this evening. Attached is my best result so far (gc_weakref_bug_demo.py). It requires that you enable the 'xx' module so we have a container object without tp_traverse. We should probably add one to _testcapi for the real unit test so we have it.
I can make the weakref callback run from within delete_garbage(). I haven't been able to make tp_clear for the function execute before the callback and I think that is needed to replicate the crash in this bug report. |
|
| Date |
User |
Action |
Args |
| 2019-10-01 03:10:16 | nascheme | set | recipients:
+ nascheme, tim.peters, pitrou, vstinner, larry, christian.heimes, benjamin.peterson, ned.deily, petr.viktorin, methane, lukasz.langa, Mark.Shannon, jdemeyer, pablogsal, miss-islington |
| 2019-10-01 03:10:16 | nascheme | set | messageid: <[email protected]> |
| 2019-10-01 03:10:16 | nascheme | link | issue38006 messages |
| 2019-10-01 03:10:16 | nascheme | create | |
|