You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Daniel Shahaf <d....@daniel.shahaf.name> on 2011/08/19 16:45:15 UTC

Assertion in HEAD

% $svn up        
Updating '.':
subversion/libsvn_wc/wc_db.c:11516: (apr_err=235000)
svn: E235000: In file 'subversion/libsvn_wc/wc_db.c' line 11516: assertion failed (base_status == svn_wc__db_status_incomplete)
zsh: abort      $SVN up
% $svn info 
Path: .
Working Copy Root Path: /home/daniel/src/svn/svnbook/en
URL: http://svnbook.googlecode.com/svn/trunk/src/en/book
Repository Root: http://svnbook.googlecode.com/svn
Repository UUID: 931749d0-5854-0410-9456-f14be4d6b398
Revision: 3805
Node Kind: directory
Schedule: normal
Last Changed Author: cmpilato@gmail.com
Last Changed Rev: 3805
Last Changed Date: 2010-10-15 20:16:49 +0200 (Fri, 15 Oct 2010)
% $svnversion ~/src/svn/t1
1159297:1159299M

Re: Assertion in HEAD

Posted by Alan Wood <Al...@clear.net.nz>.
On 19 Aug 2011 at 19:20, Daniel Shahaf wrote:

> This asserts:
> 
> $svn co http://svnbook.googlecode.com/svn/trunk/src/en/book@3805 && cd book && $svn up
> 

Hi devs,
 Just tried this on Windows with trunk.
Result:
Updating '.':
..\..\..\subversion\svn\update-cmd.c:163: (apr_err=175002)
..\..\..\subversion\libsvn_client\update.c:610: (apr_err=175002)
..\..\..\subversion\libsvn_client\update.c:551: (apr_err=175002)
..\..\..\subversion\libsvn_client\update.c:412: (apr_err=175002)
..\..\..\subversion\libsvn_ra_neon\fetch.c:2424: (apr_err=175002)
..\..\..\subversion\libsvn_ra_neon\fetch.c:2424: (apr_err=175002)
..\..\..\subversion\libsvn_ra_neon\util.c:1323: (apr_err=175002)
..\..\..\subversion\libsvn_ra_neon\util.c:660: (apr_err=175002)
svn: E175002: REPORT of '/svn/!svn/vcc/default': 200 OK (http://svnbook.googleco
de.com)

The response to the "REPORT" request is a chunked response of zero length.
I don't know if this is legal but sounds Ok to me.
This causes ne_discard_response() to return an error as it incorrectly 
sees the "0" of the chunk length as a non zero length response.

I don't know enough about the neon library to dig further or suggest 
a patch.

Regards
Alan



> This doesn't assert:
> 
> $svn checkout -q http://svn-qavm.apache.org/repos/svnbook/trunk/src/en/book@3805 && cd book && $svn up



Re: Assertion in HEAD

Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
This asserts:

$svn co http://svnbook.googlecode.com/svn/trunk/src/en/book@3805 && cd book && $svn up

This doesn't assert:

$svn checkout -q http://svn-qavm.apache.org/repos/svnbook/trunk/src/en/book@3805 && cd book && $svn up

Re: Assertion in HEAD

Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
Daniel Shahaf wrote on Fri, Aug 19, 2011 at 17:45:15 +0300:
> 
> % $svn up        
> Updating '.':
> subversion/libsvn_wc/wc_db.c:11516: (apr_err=235000)
> svn: E235000: In file 'subversion/libsvn_wc/wc_db.c' line 11516: assertion failed (base_status == svn_wc__db_status_incomplete)

A few more bits of information...

[[[
(gdb) p local_relpath
$2 = 0xb7f6fdef ""
(gdb) p base_status
$3 = svn_wc__db_status_normal
]]]

[[[
% $svn st -q
  L     .
  L     images
% $svn cleanup
% $svn up
(still reproduces)
]]]

[[[
(gdb) bt
#0  0xb7fe2424 in __kernel_vsyscall ()
#1  0xb7c78751 in *__GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#2  0xb7c7bb82 in *__GI_abort () at abort.c:92
#3  0xb7e5257c in svn_error_abort_on_malfunction (can_return=1, file=0xb7f629c2 "subversion/libsvn_wc/wc_db.c", line=11516, 
    expr=0xb7f64070 "base_status == svn_wc__db_status_incomplete") at subversion/libsvn_subr/error.c:648
#4  0xb7e525d9 in svn_error__malfunction (can_return=1, file=0xb7f629c2 "subversion/libsvn_wc/wc_db.c", line=11516, 
    expr=0xb7f64070 "base_status == svn_wc__db_status_incomplete") at subversion/libsvn_subr/error.c:671
#5  0xb7f4fc0d in end_directory_update (baton=0x0, wcroot=0x80bbde0, local_relpath=0xb7f6fdef "", scratch_pool=0x80f4de8)
    at subversion/libsvn_wc/wc_db.c:11516
#6  0xb7f58539 in run_txn (baton=0xbfffe830, db=0x80bf988, scratch_pool=0x80f4de8) at subversion/libsvn_wc/wc_db_util.c:169
#7  0xb7e6d9ed in svn_sqlite__with_lock (db=0x80bf988, cb_func=0xb7f584de <run_txn>, cb_baton=0xbfffe830, 
    scratch_pool=0x80f4de8) at subversion/libsvn_subr/sqlite.c:1115
#8  0xb7f585b9 in svn_wc__db_with_txn (wcroot=0x80bbde0, local_relpath=0xb7f6fdef "", 
    cb_func=0xb7f4fb02 <end_directory_update>, cb_baton=0x0, scratch_pool=0x80f4de8) at subversion/libsvn_wc/wc_db_util.c:186
#9  0xb7f4fee5 in svn_wc__db_temp_op_end_directory_update (db=0x808e1f0, 
    local_dir_abspath=0x80b5fd0 "/home/daniel/src/svn/svnbook/en", scratch_pool=0x80f4de8)
    at subversion/libsvn_wc/wc_db.c:11541
#10 0xb7f1eda9 in close_edit (edit_baton=0x80f4e68, pool=0x80fee10) at subversion/libsvn_wc/update_editor.c:4393
#11 0xb7ea5cfb in close_edit (edit_baton=0x80b6f50, pool=0x80fee10) at subversion/libsvn_delta/cancel.c:318
#12 0xb7bbc588 in finish_report (report_baton=0x80b6f60, pool=0x80b59f0) at subversion/libsvn_ra_serf/update.c:2533
#13 0xb7ecd923 in svn_wc_crawl_revisions5 (wc_ctx=0x808e1e0, local_abspath=0x80b5ae8 "/home/daniel/src/svn/svnbook/en", 
    reporter=0xb7bc6cb0, report_baton=0x80b6f60, restore_files=1, depth=svn_depth_unknown, honor_depth_exclude=1, 
    depth_compatibility_trick=0, use_commit_times=0, cancel_func=0x8058dad <svn_cl__check_cancel>, cancel_baton=0x0, 
    notify_func=0x805f7ee <svn_cl__check_externals_failed_notify_wrapper>, notify_baton=0xbfffee60, scratch_pool=0x80b59f0)
    at subversion/libsvn_wc/adm_crawler.c:861
#14 0xb7fd86c4 in update_internal (result_rev=0xbfffeddc, local_abspath=0x80b5ae8 "/home/daniel/src/svn/svnbook/en", 
    anchor_abspath=0x80b5fd0 "/home/daniel/src/svn/svnbook/en", revision=0xbfffed4c, depth=svn_depth_unknown, 
    depth_is_sticky=0, ignore_externals=0, allow_unver_obstructions=0, adds_as_modification=1, timestamp_sleep=0xbfffede0, 
    notify_summary=1, ctx=0x808e180, pool=0x80b59f0) at subversion/libsvn_client/update.c:399
#15 0xb7fd8c57 in svn_client__update_internal (result_rev=0xbfffeddc, 
    local_abspath=0x80b5ae8 "/home/daniel/src/svn/svnbook/en", revision=0xbfffefa8, depth=svn_depth_unknown, 
    depth_is_sticky=0, ignore_externals=0, allow_unver_obstructions=0, adds_as_modification=1, make_parents=0, 
    innerupdate=0, timestamp_sleep=0xbfffede0, ctx=0x808e180, pool=0x80b59f0) at subversion/libsvn_client/update.c:541
#16 0xb7fd8ece in svn_client_update4 (result_revs=0xbfffee5c, paths=0x80bf918, revision=0xbfffefa8, depth=svn_depth_unknown, 
    depth_is_sticky=0, ignore_externals=0, allow_unver_obstructions=0, adds_as_modification=1, make_parents=0, 
    ctx=0x808e180, pool=0x808d980) at subversion/libsvn_client/update.c:598
#17 0x080677bc in svn_cl__update (os=0x808db28, baton=0xbfffef98, scratch_pool=0x808d980) at subversion/svn/update-cmd.c:157
#18 0x0805be9c in main (argc=2, argv=0xbffff214) at subversion/svn/main.c:2580
]]]