[Xapian-tickets] [Xapian] #604: Document.get_data() seems to leak (from Python)

Xapian nobody at xapian.org
Wed Sep 5 23:20:12 BST 2012


#604: Document.get_data() seems to leak (from Python)
--------------------------------------+-------------------------------------
 Reporter:  agilezebra                |       Owner:  richard
     Type:  defect                    |      Status:  new    
 Priority:  normal                    |   Milestone:         
Component:  Xapian-bindings (Python)  |     Version:  1.2.12 
 Severity:  major                     |    Keywords:         
Blockedby:                            |    Platform:  Linux  
 Blocking:                            |  
--------------------------------------+-------------------------------------

Comment(by olly):

 I don't seem to have a totally suitable test database to hand as I just
 get a single line of output for any of the ones I've tried, but if I
 modify the code to report every 100 documents I see the memory usage grow
 a little.

 But valgrind seems to show we aren't actually leaking memory so I suspect
 we're just holding on to more and it'll get released eventually.  The
 apparently linear growth is bad though.

 I notice if I remove the .get_data() part, leaving just match.document,
 then I still see the memory growth, so I guess this is down to the
 !MSetItem object in the bindings.

 Adding Python gc.collect() calls doesn't seem to help.

 Richard: Any ideas?

-- 
Ticket URL: <http://trac.xapian.org/ticket/604#comment:1>
Xapian <http://xapian.org/>
Xapian



More information about the Xapian-tickets mailing list