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 jeremy.kloth, jkloth, vstinner
Date 2022-02-26.23:31:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1645918319.27.0.55790404767.issue46857@roundup.psfhosted.org>
In-reply-to
Content
> Initially, I modified Py_INCREF to dump the object (addr & tp_name) on
> initial inc (ob_refcnt == 1) and Py_DECREF to dump on final dec
> (ob_refcnt == 0). Then filter that list (~65K) to find objects not
> dealloc'ed.  Given those names (~200), cross-check with source files
> containing 'ifdef MS_WINDOWS' (and related spellings).

That's smart! Thanks for sharing. It may help to identify future leaks.


> Even using that change, I still have negative refs (but I still have
Py_TRACE_REFS defined)

Ah, maybe testing with Py_TRACE_REFS shows more bugs. I didn't try Py_TRACE_REFS recently. Well, if someone finds why it's becoming negative, a fix would be welcomed :-)
History
Date User Action Args
2022-02-26 23:31:59vstinnersetrecipients: + vstinner, jkloth, jeremy.kloth
2022-02-26 23:31:59vstinnersetmessageid: <1645918319.27.0.55790404767.issue46857@roundup.psfhosted.org>
2022-02-26 23:31:59vstinnerlinkissue46857 messages
2022-02-26 23:31:59vstinnercreate