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

Re: Segfault when upgrading

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Mon, 08 Aug 2011 18:01:46 +0100

Stefan Küng <tortoisesvn_at_gmail.com> writes:

> Hi,
>
> I've now analyzed the fifth crash report for TSVN that shows a
> segfault when upgrading a working copy. The crash happens here:
>
> libsvn_wc\upgrade.c, line 1111
>
> info = apr_hash_get(*text_bases_info, versioned_file_name,
> APR_HASH_KEY_STRING);
>
> with 'versioned_file_name' being NULL.
> (ok, the crash is in the hash function in the apr lib, but it crashes
> because the key string is NULL).
>
> Problem is I have no idea why that would be NULL, it gets set a few
> lines above by the 'remove_suffix()' function which only returns NULL
> if either the filename is too short or the extension doesn't match -
> which I can't see why this would ever happen.
>
> Anyone got any ideas?

A stray file in .svn/text-base:

$ rm -rf repo wc
$ svnadmin create repo
$ svn-1.6 co file://`pwd`/repo wc
$ touch wc/.svn/text-base/x.x
$ svn-1.7 upgrade wc
Segmentation fault

-- 
uberSVN: Apache Subversion Made Easy
http://www.uberSVN.com
Received on 2011-08-08 19:02:22 CEST

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.