[Xapian-discuss] File descriptor leak (?) in Python

Joost Cassee joost at cassee.net
Wed Aug 25 19:52:46 BST 2010


Hi all,

Finally, I think I have isolated the memory leak. Objects like
MatchDeciders or PostingSources are not garbage collected after having
been used in a search. I have attached a test case for MatchDecider as
xapian-testcase7.py. It uses the great objgraph module [1] by Marius
Gedminas.

[1] http://mg.pov.lt/objgraph/

The test case ends with a list containing a TestMatchDecider that
should have been garbage collected. The 'objects.png' shows the object
graph.

Regards,
Joost

-- 
Joost Cassee
http://joost.cassee.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xapian-testcase7.py
Type: text/x-python
Size: 919 bytes
Desc: not available
URL: <http://lists.xapian.org/pipermail/xapian-discuss/attachments/20100825/d596110a/attachment.py>


More information about the Xapian-discuss mailing list