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 vstinner
Recipients Mark.Shannon, christian.heimes, jdemeyer, lukasz.langa, pablogsal, petr.viktorin, pitrou, vstinner
Date 2019-09-02.21:38:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1567460316.65.0.266603535295.issue38006@roundup.psfhosted.org>
In-reply-to
Content
> Another issue is that the GC doesn't prevent the crash. Would it be possible to prevent the crash without changing the behavior (ex: still call weakref callbacks)?

I discussed with Pablo and it doesn't seem possible to prevent to clear a function if it is indirectly used as a callback for a weak reference to a object which doesn't implement tp_traverse properly (like the CFFI type).

The best that we can do is to detect the bug in C extension and emit a warning explaining the bug and suggesting a way to fix it.
History
Date User Action Args
2019-09-02 21:38:36vstinnersetrecipients: + vstinner, pitrou, christian.heimes, petr.viktorin, lukasz.langa, Mark.Shannon, jdemeyer, pablogsal
2019-09-02 21:38:36vstinnersetmessageid: <1567460316.65.0.266603535295.issue38006@roundup.psfhosted.org>
2019-09-02 21:38:36vstinnerlinkissue38006 messages
2019-09-02 21:38:36vstinnercreate