[Xapian-discuss] Memory leak

double ninive at gmx.at
Mon Jan 24 20:50:34 GMT 2011


Hello,

There is a memory leak in Xapian 1.2.4.
We use a persistant connection in FastCGI processes. As soon
as we catch this exception, "dmalloc" recognizes memory leaks:
     The revision being read has been discarded - you should
     call Xapian::Database::reopen() and retry the operation
Down below the output of "dmalloc".

This happens only on the production system. On my local maschine,
"valgrind" reports "all blocks freed".

Thanks a lot
Marcus


total-size  count  source
     294912     36  Line 64 of "backends/chert/chert_cursor.cc"
     122880     15  Line 2070 of "backends/chert/chert_table.cc"
      26021      5  Line 262 of "backends/chert/chert_btreebase.cc"
      26021      5  Line 263 of "backends/chert/chert_btreebase.cc"
       2056      1  Line 358 of "backends/dbfactory.cc"
       1836     17  Line 383 of "./include/xapian/weight.h"
       1700     17  Line 871 of "backends/chert/chert_database.cc"
        864     18  Line 62 of "backends/chert/chert_cursor.cc"
        780     13  Line 408 of "matcher/queryoptimiser.cc"
        576     18  Line 1331 of "backends/chert/chert_table.cc"
        112      2  Line 1663 of "backends/chert/chert_table.cc"
        100      1  Line 66 of "backends/chert/chert_postlist.cc"
         48      1  Line 66 of "matcher/orpostlist.cc"
         40      1  Line 189 of "matcher/queryoptimiser.cc"
         24      1  Line 33 of "matcher/multiandpostlist.cc"
         15      1  Line 31 of "matcher/multiandpostlist.cc"






More information about the Xapian-discuss mailing list