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

Re: Cancelling location segments operation from callback

From: Martin Panter <vadmium+floss_at_gmail.com>
Date: Mon, 27 Jan 2014 06:59:58 +0000

Hello again

Unfortunately I ran into trouble trying to implement the cancel
callback in the Subvertpy library. The library passes a temporary pool
to svn_ra_get_location_segments(), and then destroys the pool when the
call returns. However this seems to be causing a segfault in the
subsequent call to svn_ra_get_log2().

GDB backtrace and demonstration code:
https://gist.github.com/vadmium/8643825

After reading Bert’s response, it sounds like the Serf implementation
doesn’t handle cancellation properly at all, and my crash could be
another symptom of the same problem. So unless anyone has any other
suggestions I think I will try to avoid returning errors into any
callback, cancel function or otherwise.
Received on 2014-01-27 08:00:35 CET

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.