[issue33622] Fix and improve errors handling in the garbage collector

2019-03-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue33622] Fix and improve errors handling in the garbage collector

2018-05-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See issue33712, issue33713 and issue33714 for three cases in the stdlib where an exception can be set in the tp_clear handler. This caused a crash in the garbage collector, or can be just silenced if failed at the shutdown stage. In the master branch it wi

[issue33622] Fix and improve errors handling in the garbage collector

2018-05-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset c4653c9bf159c3919a50f4ced32eef713e7e764e by Serhiy Storchaka in branch 'master': bpo-33622: Add checks for exceptions leaks in the garbage collector. (GH-7126) https://github.com/python/cpython/commit/c4653c9bf159c3919a50f4ced32eef713e7e764e

[issue33622] Fix and improve errors handling in the garbage collector

2018-05-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 7126 adds several assert(!PyErr_Occurred()) for earlier detection of leaked exceptions. And the failure in adding to gc.garbage is no longer fatal. It is better to not add an object to gc.garbage in this iteration than crash when we run garbage collectio

[issue33622] Fix and improve errors handling in the garbage collector

2018-05-26 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +6761 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue33622] Fix and improve errors handling in the garbage collector

2018-05-26 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: fixed -> stage: resolved -> status: closed -> open title: Fix errors handling in the garbage collector -> Fix and improve errors handling in the garbage collector ___ Python tracker

[issue33622] Fix and improve errors handling in the garbage collector

2018-05-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +6708 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue33622] Fix and improve errors handling in the garbage collector

2018-05-23 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : 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__ a