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

Re: svnsync fails on a 'pull' operation

From: Tony Butt <tony.butt_at_cea.com.au>
Date: Thu, 23 Aug 2012 10:28:26 +1000

On Tue, 2012-08-21 at 12:08 +0100, Daniel Shahaf wrote:
> Daniel Shahaf wrote on Tue, Aug 21, 2012 at 12:01:28 +0100:
> > You copy and paste the error message into the email for us.
>
> I meant to say: "You forgot to copy"
I found the correct ulimit setting to enable core dumps, and was able to
use that to obtain a stack trace - see attached.

According to gdb, the failing function call is this memcmp(), called
from svn_dirent_skip_ancestor().

1440 if (0 != memcmp(parent_dirent, child_dirent, len))
1441 return NULL; /* parent_dirent is no ancestor of child_dirent */

The string arguments are evident from the stack trace.
parent_dirent=0xb47faeb0 "/auspar/trunk/Modules/VirtualShip/Trunk/RadarGeometry/RadarGeometryManager/Trunk/Test/TestApplication/Build/Win32-x86-MULTI/DevelopmentShared.gpj"
child_dirent=0xb468ef80 "/auspar/trunk/Modules/VirtualShip/Trunk/RadarGeometry/RadarGeometryManager/Trunk/Test/TestApplication/Build/Win32-x86-MULTI"
len == 147

Strangely enough, parent and child seem to back back to front. I am
assuming the memcmp is running off the end of child_dirent, and causing
my failure.
This was built with gcc 4.6.3-1ubuntu5, using '-O2 -g'

I will try setting a breakpoint here, and looking for a consistent
pattern.

-- 
Tony Butt <tony.butt_at_cea.com.au>
CEA Technologies

(gdb) bt
#0 0xb75f08fe in ?? () from /lib/i386-linux-gnu/libc.so.6
#1 0xb76d98f2 in svn_dirent_skip_ancestor (
    parent_dirent=0xb47faeb0 "/auspar/trunk/Modules/VirtualShip/Trunk/RadarGeometry/RadarGeometryManager/Trunk/Test/TestApplication/Build/Win32-x86-MULTI/DevelopmentShared.gpj",
    child_dirent=0xb468ef80 "/auspar/trunk/Modules/VirtualShip/Trunk/RadarGeometry/RadarGeometryManager/Trunk/Test/TestApplication/Build/Win32-x86-MULTI") at subversion/libsvn_subr/dirent_uri.c:1440
#2 0xb76d9a83 in svn_dirent_is_ancestor (
    parent_dirent=0xb47faeb0 "/auspar/trunk/Modules/VirtualShip/Trunk/RadarGeometry/RadarGeometryManager/Trunk/Test/TestApplication/Build/Win32-x86-MULTI/DevelopmentShared.gpj",
    child_dirent=0xb468ef80 "/auspar/trunk/Modules/VirtualShip/Trunk/RadarGeometry/RadarGeometryManager/Trunk/Test/TestApplication/Build/Win32-x86-MULTI") at subversion/libsvn_subr/dirent_uri.c:1546
#3 0xb723b7b4 in find_descendents_in_cache (baton=0xbf831610, key=0xb468ef80, klen=123, val=0xb451fba0, pool=0xb47d9018)
    at subversion/libsvn_fs_fs/tree.c:231
#4 0xb76cd152 in iter_cb (baton=0xbf8315a8, key=0xb468ef80, klen=123, val=0xb468ef68, pool=0xb47d9018)
    at subversion/libsvn_subr/cache-inprocess.c:443
#5 0xb76e5956 in hash_do_callback (baton=0xbf831560, key=0xb468ef80, klen=123, value=0xb468ef68)
    at subversion/libsvn_subr/iter.c:58
#6 0xb767c6c3 in apr_hash_do () from /usr/lib/libapr-1.so.0
#7 0xb76e59d4 in svn_iter_apr_hash (completed=0x0, hash=0xb4630478, func=0xb76cd120 <iter_cb>, baton=0xbf8315a8,
    pool=0xb47e9018) at subversion/libsvn_subr/iter.c:79
#8 0xb76cd445 in inprocess_cache_iter (completed=0x0, cache_void=0xb4630420, user_cb=0xb723b780 <find_descendents_in_cache>,
    user_baton=0xbf831610, scratch_pool=0xb47e9018) at subversion/libsvn_subr/cache-inprocess.c:459
#9 0xb76d0722 in svn_cache__iter (completed=0x0, cache=0xb46303f0, user_cb=0xb723b780 <find_descendents_in_cache>,
    user_baton=0xbf831610, scratch_pool=0xb47e9018) at subversion/libsvn_subr/cache.c:117
#10 0xb7223ae8 in dag_node_cache_invalidate (root=0xb46303a8, path=<optimised out>, pool=0xb4517018)
    at subversion/libsvn_fs_fs/tree.c:257
#11 0xb723ef4c in fs_delete_node (root=0xb46303a8,
    path=0xb483a1d0 "/auspar/trunk/Modules/VirtualShip/Trunk/RadarGeometry/RadarGeometryManager/Trunk/Test/TestApplication/Build/Win32-x86-MULTI/DevelopmentShared.gpj", pool=0xb4517018) at subversion/libsvn_fs_fs/tree.c:1899
#12 0xb72d8630 in svn_fs_delete (root=0xb46303a8,
    path=0xb483a1d0 "/auspar/trunk/Modules/VirtualShip/Trunk/RadarGeometry/RadarGeometryManager/Trunk/Test/TestApplication/Build/Win32-x86-MULTI/DevelopmentShared.gpj", pool=0xb4517018) at subversion/libsvn_fs/fs-loader.c:1033
#13 0xb72e5c96 in delete_entry (
    path=0x8ad9a80 "auspar/trunk/Modules/VirtualShip/Trunk/RadarGeometry/RadarGeometryManager/Trunk/Test/TestApplication/Build/Win32-x86-MULTI/DevelopmentShared.gpj", revision=-1, parent_baton=0xb45249d8, pool=0xb4517018)
    at subversion/libsvn_repos/commit.c:410
#14 0x0804d33c in delete_entry (
    path=0x8ad9a80 "auspar/trunk/Modules/VirtualShip/Trunk/RadarGeometry/RadarGeometryManager/Trunk/Test/TestApplication/Build/W---Type <return> to continue, or q <return> to quit---
in32-x86-MULTI/DevelopmentShared.gpj", base_revision=-1, parent_baton=0xb4517060, pool=0xb4517018)
    at subversion/svnsync/sync.c:215
#15 0xb7721f03 in delete_entry (
    path=0x8ad9a80 "auspar/trunk/Modules/VirtualShip/Trunk/RadarGeometry/RadarGeometryManager/Trunk/Test/TestApplication/Build/Win32-x86-MULTI/DevelopmentShared.gpj", base_revision=-1, parent_baton=0xb4517058, pool=0xb4517018)
    at subversion/libsvn_delta/cancel.c:95
#16 0xb747c53a in start_element (elem=0xbf8317fc, baton=0xbf831d10, parent_state=274, nspace=0x8a6c5d0 "svn:",
    elt_name=0x8c91620 "delete-entry", atts=0x8a78538) at subversion/libsvn_ra_neon/replay.c:180
#17 0xb74801ed in wrapper_startelm_cb (baton=0xb45710d8, parent=274, nspace=0x8a6c5d0 "svn:", name=0x8c91620 "delete-entry",
    atts=0x8a78538) at subversion/libsvn_ra_neon/util.c:1095
#18 0xb72a7c7d in ?? () from /usr/lib/libneon-gnutls.so.27
#19 0xb6ffc008 in xmlParseStartTag () from /usr/lib/i386-linux-gnu/libxml2.so.2
#20 0xb7004b6a in ?? () from /usr/lib/i386-linux-gnu/libxml2.so.2
#21 0xb7005825 in xmlParseChunk () from /usr/lib/i386-linux-gnu/libxml2.so.2
#22 0xb72a808c in ne_xml_parse () from /usr/lib/libneon-gnutls.so.27
#23 0xb72a819b in ne_xml_parse_v () from /usr/lib/libneon-gnutls.so.27
#24 0xb747ff97 in cancellation_callback (userdata=0xb4c70c20,
    block=0x8cd7b60 "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<S:editor-report xmlns:S=\"svn:\">\n<S:target-revision rev=\"4609\"/>\n<S:open-root rev=\"-1\"/>\n<S:open-directory name=\"auspar\" rev=\"-1\"/>\n<S:open-directory name=\"auspa"...,
    len=3180) at subversion/libsvn_ra_neon/util.c:1241
#25 0xb72a5ca1 in ?? () from /usr/lib/libneon-gnutls.so.27
#26 0xb7298f7f in ne_read_response_block () from /usr/lib/libneon-gnutls.so.27
#27 0xb729937c in ne_discard_response () from /usr/lib/libneon-gnutls.so.27
#28 0xb72993c1 in ne_request_dispatch () from /usr/lib/libneon-gnutls.so.27
#29 0xb74818d5 in svn_ra_neon__request_dispatch (code_p=0x0, req=0xb4571058, extra_headers=0x0,
    body=0xb4c70b18 "<S:replay-report xmlns:S=\"svn:\">\n <S:revision>4609</S:revision>\n <S:low-water-mark>0</S:low-water-mark>\n <S:send-deltas>1</S:send-deltas>\n</S:replay-report>", okay_1=200, okay_2=0, pool=0xb5774018)
    at subversion/libsvn_ra_neon/util.c:1534
#30 0xb748224f in parsed_request (pool=0xb5774018, spool_response=0, status_code=0x0, extra_headers=0x0, baton=0xbf831d10,
    endelm_cb=0xb747bf80 <end_element>, cdata_cb=0xb747c0f0 <cdata_handler>, startelm_cb=0xb747c220 <start_element>,
    set_parser=0, body_file=0x0,
    body=0xb4c70b18 "<S:replay-report xmlns:S=\"svn:\">\n <S:revision>4609</S:revision>\n <S:low-water-mark>0</S:low-water-mark>\n <S:send-deltas>1</S:send-deltas>\n</S:replay-report>", url=0xb5784190 "http://lion.cea.com.au/repos/CEA",
    method=0xb7482ae2 "REPORT", ras=0xb57840f0, req=0xb4571058) at subversion/libsvn_ra_neon/util.c:1320
#31 svn_ra_neon__parsed_request (sess=0xb57840f0, method=<optimised out>, url=0xb5784190 "http://lion.cea.com.au/repos/CEA",
    body=0xb4c70b18 "<S:replay-report xmlns:S=\"svn:\">\n <S:revision>4609</S:revision>\n <S:low-water-mark>0</S:low-water-mark>\n <S:send-deltas>1</S:send-deltas>\n</S:replay-report>", body_file=0x0, set_parser=0,
    startelm_cb=0xb747c220 <start_element>, cdata_cb=0xb747c0f0 <cdata_handler>, endelm_cb=0xb747bf80 <end_element>,
---Type <return> to continue, or q <return> to quit---
    baton=0xbf831d10, extra_headers=0x0, status_code=0x0, spool_response=0, pool=0xb5774018)
    at subversion/libsvn_ra_neon/util.c:1373
#32 0xb747ceb6 in svn_ra_neon__replay (session=0xb5784090, revision=4609, low_water_mark=0, send_deltas=1, editor=0xb4c70ac8,
    edit_baton=0xb4c70b08, pool=0xb5774018) at subversion/libsvn_ra_neon/replay.c:484
#33 0xb773492f in svn_ra_replay (session=0xb5784090, revision=4609, low_water_mark=0, text_deltas=1, editor=0xb4c70ac8,
    edit_baton=0xb4c70b08, pool=0xb5774018) at subversion/libsvn_ra/ra_loader.c:1132
#34 0xb7734a77 in svn_ra_replay_range (session=0xb5784090, start_revision=1, end_revision=78614, low_water_mark=0,
    text_deltas=1, revstart_func=0x804d070 <replay_rev_started>, revfinish_func=0x804cd30 <replay_rev_finished>,
    replay_baton=0xb57717b0, pool=0xb76b0018) at subversion/libsvn_ra/ra_loader.c:1175
#35 0x0804c38a in do_synchronize (to_session=0xb69b7088, baton=0xb69b6198, pool=0xb76b0018) at subversion/svnsync/main.c:1328
#36 0x0804b00d in with_locked (session=0xb69b7088, func=0x804c070 <do_synchronize>, baton=0xb69b6198, steal_lock=0,
    pool=0xb76b0018) at subversion/svnsync/main.c:415
#37 0x0804c76a in synchronize_cmd (os=0xb76b0138, b=0xbf831f90, pool=0xb76b0018) at subversion/svnsync/main.c:1383
#38 0x0804a737 in main (argc=3, argv=0xbf8320d4) at subversion/svnsync/main.c:2125
(gdb)
Received on 2012-08-23 02:31:10 CEST

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.