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

Re: segfault when applying patch

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Thu, 03 Nov 2011 20:19:23 +0000

Stefan K√ľng <tortoisesvn_at_gmail.com> writes:

> A few crash dumps sent for TSVN 1.7 show a segfault when applying a patch.
>
> in libsvn_client/patch.c, line 2703:
>
> target_info = APR_ARRAY_IDX(targets_info, i, patch_target_info_t *);
> parent = svn_dirent_dirname(target_info->local_abspath, iterpool);
>
> the target_info->local_abspath is NULL, so svn_dirent_dirname() then
> segfaults.
>
> I haven't figured out why target_info->local_abspath is NULL though,
> but maybe you have an idea?

What you need is a patch file that has modifies two targets. One part
of the patch gets applied and deletes a file, another part of the patch
gets skipped, because the path is outside the working copy say. The
skipped target has local_abspath NULL and delete_empty_dirs will crash.

-- 
uberSVN: Apache Subversion Made Easy
http://www.uberSVN.com
Received on 2011-11-03 21:20:00 CET

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.