I'm not sure where the problem arises - I have spent
hours (8+) attempting to debug the code and looked
through CVS to see where previous leaks were fixed
but to no avail.
My MySQL "lxr.files" table currently contains 4400 files.
My repository contains thousands of font files and
other non-indexable files.
My repository contains hundreds of files generated
with old (9+ years) versions of RCS which results
in "co" errors.
Using Devel::Leak I believe the biggest leak is
when "co" fails - under these circumstances I think the
FileHandle is not "undef" but actually contains the
error message from "co". Perhaps parsing this causes
In any case Devel::Leak shows each file generates 2
leaks per file (even when indexing successfully) - I
think %files lib/LXR/Index/Mysql.pl causes one as it
keeps getting appended - is it possible to include %
files = undef in the "empty_cache" function?
Other than that I am at a loss for ideas.
I am running very old versions of perl and MySQL
which I hope to update and may be the cause, but I
expect they are not the only reason for the problem.
I am running: