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

Joost Cassee joost at cassee.net
Wed Aug 11 11:47:35 BST 2010

Hi all,

On Wed, Aug 11, 2010 at 06:29, Olly Betts <olly at survex.com> wrote:
> On Tue, Aug 10, 2010 at 05:35:28PM +0200, Joost Cassee wrote:
>> I realize that this may no longer be a Xapian issue, but it only seems
>> to happen with instances holding Xapian objects.
> [...] in some languages garbage collection
> happens at unpredictable times, and inadvertent references such as you seem to
> have are easy to create and hard to track down).

If I call the garbage collector myself [gc.collect()], then the
database is closed. Additionally, I cannot seem to replicate this in a
new module. I have too little time to chase down this problem, and
(although it feels like defeat) I will just break the cycle with a
weak reference...

Thanks, Olly and Michel, for thinking with me!


Joost Cassee

More information about the Xapian-discuss mailing list