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

Re: regression in 1.7: libsvn crashes in svn_client_info

From: Stefan Sperling <stsp_at_elego.de>
Date: Mon, 24 Oct 2011 01:14:53 +0200

On Sun, Oct 23, 2011 at 07:47:49PM +0200, Milian Wolff wrote:
> Hey there,
>
> please take a look at: https://bugs.kde.org/show_bug.cgi?id=284061
>
> It shows an apparent bug in libsvn from subversion 1.7 which triggers crashes
> in KDevelop and probably other applications. I've managed to write a minimal
> testcase that also triggers this behavior (see
> https://bugs.kde.org/show_bug.cgi?id=284061#c8 and the test code at
> https://bugs.kde.org/attachment.cgi?id=64741 ).
>
> How to proceed?
>
> http://subversion.apache.org/docs/community-guide/issues.html#reporting-bugs
> says I should first ask here, then go to the issue tracker, correct?

Your example code is not using the Subversion API properly.

You must initialize the client context, see svn_client_create_context().
The context your example code passes to svn_client_info() is not
initialized and therefore contains random garbage values.

You have to canonicalize paths before passing them into the Subversion
libraries. See svn_dirent_canonicalize(), use it instead of
svn_path_internal_style().
Received on 2011-10-24 01:15:35 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.