[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: OOM problems

From: Marius Gedminas <mgedmin_at_b4net.lt>
Date: 2005-12-04 12:22:40 CET

Background: somehow a BDB repository was corrupted and started looping
forever eating more and more memory, until the kernel's OOM killer
intervened. http://subversion.tigris.org/issues/show_bug.cgi?id=2430

On Wed, Nov 02, 2005 at 06:24:04PM +0200, Marius Gedminas wrote:
> Ok, here's what happens: the do..while loop in rep_read_range never
> finishes. rep_key inside it alternates between "2y1" and "4hq".
>
> Looks like a loop in a data structure that should not contain loops.
> Fun fun fun.
>
> According to log messages, revs 458 and 595 only changed svn:ignore
> properties. I think (although I cannot prove) that the problem is with
> svn:ignore on a single directory.

I patched dump_node (libsvn_repos/dump.c) and delta_proplists
(libsvn_repos/delta.c) to skip property lists when path was "/", and
that way got a full repository dump (without any properties on the
topmost directory). That makes me happy (not as happy as I would be if
subversion had never broken down in the first place, but much happier
than if I had lost all the history).

Marius Gedminas

-- 
Microsoft has performed an illegal operation and will be shut down.
		-- Judge Jackson

Received on Sun Dec 4 12:24:26 2005

This is an archived mail posted to the Subversion Users mailing list.