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

Re: svn mv segfault

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2002-01-29 22:00:25 CET

Lars Kellogg-Stedman <lars@larsshack.org> writes:

> Here's a new one. And this one's reliable :).
>
> I tried performing the following operation:
>
> $ svn mv src/config.h.in .
>
> But src/config.h.in wasn't in the repository.

I assume you mean "wasn't in the working copy".

> This should have generated an error, right around line 141 in
> libsvn_wc/copy.c. But instead it's segfaulting.

Yeah, I can see the problem. If svn_wc_entry() fails to get an entry
for something, it returns a NULL entry, silently. There are many
callers of this function that forget to check for a NULL return
value. Thanks for pointing it out!

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:37:01 2006

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.