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

Re: [WIP] Gracefully handle svn_wc_prop_set4() errors in svn patch

From: Daniel Näslund <daniel_at_longitudo.com>
Date: Tue, 28 Sep 2010 21:32:59 +0200

On Tue, Sep 28, 2010 at 07:18:39PM +0100, Philip Martin wrote:
> Daniel Näslund <daniel_at_longitudo.com> writes:
>
> > On Tue, Sep 28, 2010 at 03:45:33PM +0200, Daniel Shahaf wrote:
> >> Daniel Näslund wrote on Mon, Sep 27, 2010 at 22:09:26 +0200:
> >>
> >> err_abort() is called when an error object hadn't been svn_error_clear()'d.
> >> (The error creation installed err_abort() as a pool cleanup callback,
> >> and clearing the error unregisters the callback.)
> >
> > Yes, that was how I understood it.
>
> If you run the program gdb, it will catch the abort. If you step up
> the stack to err_abort and print err[0] then you will see the file and
> line where the error was created. (You may well have worked this out
> already).

Turned out that it was caused by prop_target->was_deleted (the flag that
was set when an error was detected) not beeing initialized to FALSE.

Thanks for the suggestion on checking err. Didn't think of that (but I
really should have!).

Thanks,
Daniel
Received on 2010-09-28 21:33:47 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.