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

Re: Crash of svn during checkout

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2003-06-04 16:23:50 CEST

Patrick Mayweg <mayweg@qint.de> writes:

> Hi Ben,

Hi Patrick, I'm keeping this on the dev list.

> > This part of libsvn_ra_dav is parsing an <update-report> coming from
> > the server, in particular, the <open-directory> tag. The xml "name"
> > attribute is not optional in the report language... so either the
> > report is very messed up, or the server truncated something.
> It seems to be optional sometimes. On the top level directory there is no name
> attribute. I this it is checked by
> if (rb->dirs->nelts == 0)
> I think there are some </open-directory> or </add-directory> elements missing.
> I get a rb->dirs->nelt of 5.

Ah, right, all update-reports begin with an editor->open_root() call,
and it never has a name. That function call just looks like a single
<open-directory rev="-1"> at the very beginning of every report.

> > What we need from you is:
> >
> > 1. a reproduction recipe, if possible
> >
> > 2. an ethereal trace of the http session, so we can see the xml in
> > the protocol. (Make sure that you set "http-compression" to "no"
> > in your ~/.subversion/servers file before doing the capture.)
> It happens all the time, when I checkout our own sources. The ethereal trace
> file is 14MB big. The checkout took almost 1 hour run localy before it
> crashed. Since the software in the repository is not open source, I would like
> to debug it myself.
> I just would need some pointers, how to proceed.

Look at the ethereal trace. In particular, look for the first REPORT
request in the dialogue. The response should look something like

<?xml version="1.0" encoding="utf-8"?>
<S:update-report xmlns:S="svn:" xmlns:V="http://subversion.tigris.org/xmlns/dav/" xmlns:D="DAV:">
<S:target-revision rev="6140"/>
<S:open-directory rev="-1">
<S:add-file name="PORTING">
<S:add-file name="Makefile.in">
<S:add-directory name="ac-helpers">
<S:add-file name="install.sh">

... and so on. Assuming that you're using svn 0.23 or later on both
client and server, then you should never see any <open-directory> tags
at all, other than the very first one. The report should only contain
<add-director> or <add-file> commands.

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jun 4 16:25:37 2003

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.