You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Hyrum K Wright <hy...@hyrumwright.org> on 2011/05/09 22:20:51 UTC

Error in 'svn cp', but the operation succeeds

A small bug I ran across.  I'll eventually dig deeper, but if anybody
has the time, they are welcome to look.  This is with a r1101202 trunk
client.

[[[
$ svn cp ^/apr/site/trunk/docs/download.cgi .
svn: E160013: '/repos/asf/!svn/bc/30/apr/site/trunk/docs/download.cgi'
path not found
$ svn st
A  +    download.cgi
$
]]]

It appears that copy is returning an error, but the copy still
succeeds (and the source path should indeed be found in HEAD).

-Hyrum

Re: Error in 'svn cp', but the operation succeeds

Posted by "C. Michael Pilato" <cm...@collab.net>.
On 05/10/2011 02:09 PM, C. Michael Pilato wrote:
> Yeah, I've found the problem.  Just cleaning up the solution now.

r1101580

-- 
C. Michael Pilato <cm...@collab.net>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand


Re: Error in 'svn cp', but the operation succeeds

Posted by "C. Michael Pilato" <cm...@collab.net>.
On 05/10/2011 02:02 PM, Philip Martin wrote:
> "C. Michael Pilato" <cm...@collab.net> writes:
> 
>> I'm thinking there's a pool lifetime issue or something.  I just tried this
>> myself, and got:
>>
>> svn: E160006: No such revision 157327024
>>
>> Methinks that the svn_revnum_t this thing is trying to use at some point is
>> full of garbage.
> 
> Valgrind complains:
> 
> ==11432== Conditional jump or move depends on uninitialised value(s)
> ==11432==    at 0x51294B0: svn_wc__db_op_copy_file (wc_db.c:4415)
> ==11432==    by 0x51154C4: svn_wc_add_repos_file4 (update_editor.c:4943)
> ==11432==    by 0x4E4CC5E: repos_to_wc_copy_single (copy.c:1600)
> ==11432==    by 0x4E4D458: repos_to_wc_copy_locked (copy.c:1758)
> ==11432==    by 0x4E4D51A: repos_to_wc_copy_cb (copy.c:1785)
> ==11432==    by 0x50EDA54: svn_wc__call_with_write_lock (lock.c:1643)
> ==11432==    by 0x4E4DD7A: repos_to_wc_copy (copy.c:1925)
> ==11432==    by 0x4E4ECF6: try_copy (copy.c:2238)
> ==11432==    by 0x4E4EF83: svn_client_copy6 (copy.c:2300)
> ==11432==    by 0x40BE9A: svn_cl__copy (copy-cmd.c:125)
> ==11432==    by 0x4168FD: main (main.c:2591)
> ==11432== 

Yeah, I've found the problem.  Just cleaning up the solution now.


-- 
C. Michael Pilato <cm...@collab.net>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand


Re: Error in 'svn cp', but the operation succeeds

Posted by Philip Martin <ph...@wandisco.com>.
"C. Michael Pilato" <cm...@collab.net> writes:

> I'm thinking there's a pool lifetime issue or something.  I just tried this
> myself, and got:
>
> svn: E160006: No such revision 157327024
>
> Methinks that the svn_revnum_t this thing is trying to use at some point is
> full of garbage.

Valgrind complains:

==11432== Conditional jump or move depends on uninitialised value(s)
==11432==    at 0x51294B0: svn_wc__db_op_copy_file (wc_db.c:4415)
==11432==    by 0x51154C4: svn_wc_add_repos_file4 (update_editor.c:4943)
==11432==    by 0x4E4CC5E: repos_to_wc_copy_single (copy.c:1600)
==11432==    by 0x4E4D458: repos_to_wc_copy_locked (copy.c:1758)
==11432==    by 0x4E4D51A: repos_to_wc_copy_cb (copy.c:1785)
==11432==    by 0x50EDA54: svn_wc__call_with_write_lock (lock.c:1643)
==11432==    by 0x4E4DD7A: repos_to_wc_copy (copy.c:1925)
==11432==    by 0x4E4ECF6: try_copy (copy.c:2238)
==11432==    by 0x4E4EF83: svn_client_copy6 (copy.c:2300)
==11432==    by 0x40BE9A: svn_cl__copy (copy-cmd.c:125)
==11432==    by 0x4168FD: main (main.c:2591)
==11432== 

-- 
Philip

Re: Error in 'svn cp', but the operation succeeds

Posted by "C. Michael Pilato" <cm...@collab.net>.
On 05/10/2011 10:57 AM, Hyrum K Wright wrote:
> On Tue, May 10, 2011 at 9:42 AM, C. Michael Pilato <cm...@collab.net> wrote:
>> On 05/09/2011 05:53 PM, Hyrum K Wright wrote:
>>> On Mon, May 9, 2011 at 3:46 PM, Hyrum K Wright <hy...@hyrumwright.org> wrote:
>>>> On Mon, May 9, 2011 at 3:20 PM, Hyrum K Wright <hy...@hyrumwright.org> wrote:
>>>>> A small bug I ran across.  I'll eventually dig deeper, but if anybody
>>>>> has the time, they are welcome to look.  This is with a r1101202 trunk
>>>>> client.
>>>>>
>>>>> [[[
>>>>> $ svn cp ^/apr/site/trunk/docs/download.cgi .
>>>>> svn: E160013: '/repos/asf/!svn/bc/30/apr/site/trunk/docs/download.cgi'
>>>>> path not found
>>
>> "bc/30"?  Revision *30*?  It's no wonder the path isn't found.
> 
> I have no idea where serf is getting that URL, then, 'cause I
> certainly didn't specify a revision, and the operation was being done
> in a up-to-date working copy.  Subversion was also still able to
> somehow find the content, since it was able to plop it into my working
> copy (albeit with bogus metadata leading to the failed commit).

I'm thinking there's a pool lifetime issue or something.  I just tried this
myself, and got:

svn: E160006: No such revision 157327024

Methinks that the svn_revnum_t this thing is trying to use at some point is
full of garbage.

-- 
C. Michael Pilato <cm...@collab.net>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand


Re: Error in 'svn cp', but the operation succeeds

Posted by Hyrum K Wright <hy...@hyrumwright.org>.
On Tue, May 10, 2011 at 9:42 AM, C. Michael Pilato <cm...@collab.net> wrote:
> On 05/09/2011 05:53 PM, Hyrum K Wright wrote:
>> On Mon, May 9, 2011 at 3:46 PM, Hyrum K Wright <hy...@hyrumwright.org> wrote:
>>> On Mon, May 9, 2011 at 3:20 PM, Hyrum K Wright <hy...@hyrumwright.org> wrote:
>>>> A small bug I ran across.  I'll eventually dig deeper, but if anybody
>>>> has the time, they are welcome to look.  This is with a r1101202 trunk
>>>> client.
>>>>
>>>> [[[
>>>> $ svn cp ^/apr/site/trunk/docs/download.cgi .
>>>> svn: E160013: '/repos/asf/!svn/bc/30/apr/site/trunk/docs/download.cgi'
>>>> path not found
>
> "bc/30"?  Revision *30*?  It's no wonder the path isn't found.

I have no idea where serf is getting that URL, then, 'cause I
certainly didn't specify a revision, and the operation was being done
in a up-to-date working copy.  Subversion was also still able to
somehow find the content, since it was able to plop it into my working
copy (albeit with bogus metadata leading to the failed commit).

-Hyrum

Re: Error in 'svn cp', but the operation succeeds

Posted by "C. Michael Pilato" <cm...@collab.net>.
On 05/09/2011 05:53 PM, Hyrum K Wright wrote:
> On Mon, May 9, 2011 at 3:46 PM, Hyrum K Wright <hy...@hyrumwright.org> wrote:
>> On Mon, May 9, 2011 at 3:20 PM, Hyrum K Wright <hy...@hyrumwright.org> wrote:
>>> A small bug I ran across.  I'll eventually dig deeper, but if anybody
>>> has the time, they are welcome to look.  This is with a r1101202 trunk
>>> client.
>>>
>>> [[[
>>> $ svn cp ^/apr/site/trunk/docs/download.cgi .
>>> svn: E160013: '/repos/asf/!svn/bc/30/apr/site/trunk/docs/download.cgi'
>>> path not found

"bc/30"?  Revision *30*?  It's no wonder the path isn't found.

-- 
C. Michael Pilato <cm...@collab.net>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand


Re: Error in 'svn cp', but the operation succeeds

Posted by Hyrum K Wright <hy...@hyrumwright.org>.
On Mon, May 9, 2011 at 4:58 PM, Stefan Sperling <st...@elego.de> wrote:
> On Mon, May 09, 2011 at 04:53:15PM -0500, Hyrum K Wright wrote:
>> On Mon, May 9, 2011 at 3:46 PM, Hyrum K Wright <hy...@hyrumwright.org> wrote:
>> > On Mon, May 9, 2011 at 3:20 PM, Hyrum K Wright <hy...@hyrumwright.org> wrote:
>> >> A small bug I ran across.  I'll eventually dig deeper, but if anybody
>> >> has the time, they are welcome to look.  This is with a r1101202 trunk
>> >> client.
>> >>
>> >> [[[
>> >> $ svn cp ^/apr/site/trunk/docs/download.cgi .
>> >> svn: E160013: '/repos/asf/!svn/bc/30/apr/site/trunk/docs/download.cgi'
>> >> path not found
>> >> $ svn st
>> >> A  +    download.cgi
>> >> $
>> >> ]]]
>> >>
>> >> It appears that copy is returning an error, but the copy still
>> >> succeeds (and the source path should indeed be found in HEAD).
>> >
>> > For the record, my cwd was a working copy of site/publish.
>>
>> Update: attempting to commit this node also errors with the following:
>> [[[
>> $ svn ci -m 'Commit'
>> Adding         publish/download.cgi
>> svn: E160013: Commit failed (details follow):
>> svn: E160013: '/repos/asf/!svn/bc/30/apr/site/trunk/docs/download.cgi'
>> path not found
>> svn: E175002: COPY of
>> '/repos/asf/!svn/bc/30/apr/site/trunk/docs/download.cgi': 404 Not
>> Found
>> $
>> ]]]
>
> I can reproduce this. The error during copy only shows with serf.
> It seems to work fine with neon. I haven't tried to commit.

I was using serf for both the copy and the commit.

-Hyrum

Re: Error in 'svn cp', but the operation succeeds

Posted by Stefan Sperling <st...@elego.de>.
On Mon, May 09, 2011 at 04:53:15PM -0500, Hyrum K Wright wrote:
> On Mon, May 9, 2011 at 3:46 PM, Hyrum K Wright <hy...@hyrumwright.org> wrote:
> > On Mon, May 9, 2011 at 3:20 PM, Hyrum K Wright <hy...@hyrumwright.org> wrote:
> >> A small bug I ran across.  I'll eventually dig deeper, but if anybody
> >> has the time, they are welcome to look.  This is with a r1101202 trunk
> >> client.
> >>
> >> [[[
> >> $ svn cp ^/apr/site/trunk/docs/download.cgi .
> >> svn: E160013: '/repos/asf/!svn/bc/30/apr/site/trunk/docs/download.cgi'
> >> path not found
> >> $ svn st
> >> A  +    download.cgi
> >> $
> >> ]]]
> >>
> >> It appears that copy is returning an error, but the copy still
> >> succeeds (and the source path should indeed be found in HEAD).
> >
> > For the record, my cwd was a working copy of site/publish.
> 
> Update: attempting to commit this node also errors with the following:
> [[[
> $ svn ci -m 'Commit'
> Adding         publish/download.cgi
> svn: E160013: Commit failed (details follow):
> svn: E160013: '/repos/asf/!svn/bc/30/apr/site/trunk/docs/download.cgi'
> path not found
> svn: E175002: COPY of
> '/repos/asf/!svn/bc/30/apr/site/trunk/docs/download.cgi': 404 Not
> Found
> $
> ]]]

I can reproduce this. The error during copy only shows with serf.
It seems to work fine with neon. I haven't tried to commit.

Re: Error in 'svn cp', but the operation succeeds

Posted by Hyrum K Wright <hy...@hyrumwright.org>.
On Mon, May 9, 2011 at 3:46 PM, Hyrum K Wright <hy...@hyrumwright.org> wrote:
> On Mon, May 9, 2011 at 3:20 PM, Hyrum K Wright <hy...@hyrumwright.org> wrote:
>> A small bug I ran across.  I'll eventually dig deeper, but if anybody
>> has the time, they are welcome to look.  This is with a r1101202 trunk
>> client.
>>
>> [[[
>> $ svn cp ^/apr/site/trunk/docs/download.cgi .
>> svn: E160013: '/repos/asf/!svn/bc/30/apr/site/trunk/docs/download.cgi'
>> path not found
>> $ svn st
>> A  +    download.cgi
>> $
>> ]]]
>>
>> It appears that copy is returning an error, but the copy still
>> succeeds (and the source path should indeed be found in HEAD).
>
> For the record, my cwd was a working copy of site/publish.

Update: attempting to commit this node also errors with the following:
[[[
$ svn ci -m 'Commit'
Adding         publish/download.cgi
svn: E160013: Commit failed (details follow):
svn: E160013: '/repos/asf/!svn/bc/30/apr/site/trunk/docs/download.cgi'
path not found
svn: E175002: COPY of
'/repos/asf/!svn/bc/30/apr/site/trunk/docs/download.cgi': 404 Not
Found
$
]]]

-Hyrum

Re: Error in 'svn cp', but the operation succeeds

Posted by Hyrum K Wright <hy...@hyrumwright.org>.
On Mon, May 9, 2011 at 3:20 PM, Hyrum K Wright <hy...@hyrumwright.org> wrote:
> A small bug I ran across.  I'll eventually dig deeper, but if anybody
> has the time, they are welcome to look.  This is with a r1101202 trunk
> client.
>
> [[[
> $ svn cp ^/apr/site/trunk/docs/download.cgi .
> svn: E160013: '/repos/asf/!svn/bc/30/apr/site/trunk/docs/download.cgi'
> path not found
> $ svn st
> A  +    download.cgi
> $
> ]]]
>
> It appears that copy is returning an error, but the copy still
> succeeds (and the source path should indeed be found in HEAD).

For the record, my cwd was a working copy of site/publish.

-Hyrum