[Python-Dev] refleaks in 2.4
Armin Rigo
arigo at tunes.org
Wed Apr 12 19:04:01 CEST 2006
Hi all,
On Sun, Mar 26, 2006 at 11:39:50PM -0800, Neal Norwitz wrote:
> There are 5 tests that leak references that are present in 2.4.3c1,
> but not on HEAD. It would be great if someone can diagnose these and
> suggest a fix.
>
> test_doctest leaked [1, 1, 1] references
> test_pkg leaked [10, 10, 10] references
> test_pkgimport leaked [2, 2, 2] references
> test_traceback leaked [11, 11, 11] references
> test_unicode leaked [7, 7, 7] references
>
> test_traceback leaks due to test_bug737473.
A follow-up on this: all the tests apart from test_traceback are due to
the dummy object in dictionaries. I modified the code to ignore exactly
these references and all the 4 other tests no longer leak. I'm about to
check in this nice time saver :-)
For information, the 2.5 HEAD now reports the following remaining leaks:
test_generators leaked [1, 1, 1, 1] references
test_threadedtempfile leaked [-85, 85, -85, 85] references
test_threading_local leaked [34, 40, 26, 28] references
test_urllib2 leaked [-66, 143, -77, -66] references
A bientot,
Armin
More information about the Python-Dev
mailing list