[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: Milian Wolff <mail_at_milianw.de>
Date: Mon, 24 Oct 2011 02:13:12 +0200

On Monday 24 October 2011 01:14:53 Stefan Sperling wrote:
> 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-bu
> > gs 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().

Thanks, I'll ask the bug reporters for feedback to see whether my updated
example code is still exhibiting the incorrect behavior:

https://bugs.kde.org/show_bug.cgi?id=284061#c10

If you happen to use svn1.7, did the app work with the two changes you
mentioned above? I.e. is the updated version working now?

Much appreciated, take care

-- 
Milian Wolff
mail_at_milianw.de
http://milianw.de

Received on 2011-10-24 02:13:57 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.