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

mod_dav_svn crashing with SVNListParentPath

From: Chris Huseman <chris_at_d0rk.org>
Date: Tue, 11 Aug 2009 09:24:13 -0500

Hello, I think I've found a bug with SVNListParentPath that takes down
I'm running Apache v2.2.13 along with Subversion v1.6.4. I'm running in
win32 land on a 2003 server and a Vista box.

Relevant configuration bits:

<VirtualHost *:80>
  <Location />
    DAV svn
    SVNParentPath "C:/Subversion"
    SVNListParentPath on

To reproduce the bug, I submit a request to the root url (no repository)
with a svn client:

  svn info http://localhost/

If you switch SVNListParentPath off, the server does not crash.

I've briefly looked into where the crash happens in code, and it looks like
it is in util.c when dav_svn__build_uri is called. The supplied repos
parameter has a NULL root_path, and here's the relevant code that causes the

  const char *root_path = repos->root_path;

  if (root_path[1] == '\0')
    root_path = "";

It looks like the real problem is further up the stack but I'm so unfamiliar
with the code I'm just posting what I've found so far.



To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-08-11 20:35:46 CEST

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

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