Message317431
There are following bugs in the garbage collector.
* If the garbage collector fails to add an object with __del__ or referenced by an object with __del__ to gc.garbage (in handle_legacy_finalizers()), it leaks it and other not added objects with __del__ and referenced by them. They become no longer accessible by the garbage collector.
* PyGC_Collect() is not documented, but it is a public C API. And it can be called by user with an exception set. PyGC_Collect() then can either crash or just silent the exception. It is safer to safe possible exception and restore it after collecting.
* A pointer to released member can be used (compared with NULL) in invoke_gc_callback(). This is an undefined behavior. |
|
Date |
User |
Action |
Args |
2018-05-23 17:41:20 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, pitrou, vstinner |
2018-05-23 17:41:20 | serhiy.storchaka | set | messageid: <1527097280.42.0.682650639539.issue33622@psf.upfronthosting.co.za> |
2018-05-23 17:41:20 | serhiy.storchaka | link | issue33622 messages |
2018-05-23 17:41:20 | serhiy.storchaka | create | |
|