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

Crash with svn 1.4.0

From: Chris AtLee <chris_at_atlee.ca>
Date: 2006-10-05 20:32:33 CEST

Hello,

Sorry if this is a duplicate post, I sent this message yesterday and
didn't see it appear in the mailing list archives, so I figured I'd
subscribe and try again.

I can semi-reliably reproduce a crash with svn 1.4.0 if I interrupt it
soon after starting a 'svn status' command. It seems to only crash if I
interrupt it before any output has been generated (while it's locking
the wc?) My working copy is fairly large (a few hundred megs), so there
is often a few seconds before any status information is output. It runs
clean under valgrind except for an "Invalid read of size 4" at
apr_hash.c:117, which isn't too surprising.

Please let me know if there's any other information I can make available
to help track this down.

Thanks,
Chris

Here's the backtrace of the crash:
#0 apr_hash_next (hi=0x85e32e8) at apr_hash.c:117
#1 0xb7f40f8e in svn_sort__hash (ht=0x808f5a0,
    comparison_func=0x804abd0 <svn_sort_compare_items_as_paths@plt>,
    pool=0x8095310) at subversion/libsvn_subr/sorts.c:131
#2 0xb7f8b746 in do_close (adm_access=0x8507b18, preserve_lock=0,
    recurse=1) at subversion/libsvn_wc/lock.c:1288
#3 0xb7f899d8 in pool_cleanup (p=0x8507b18) at
    subversion/libsvn_wc/lock.c:395
#4 0xb7dd7d8d in run_cleanups (cref=0x8095320) at apr_pools.c:1959
#5 0xb7dd866d in apr_pool_destroy (pool=0x8095310) at apr_pools.c:731
#6 0xb7dd8658 in apr_pool_destroy (pool=0x80721a8) at apr_pools.c:728
#7 0x08053054 in main (argc=2, argv=0xbf9bdd74) at
    subversion/svn/main.c:1505

rooneg on #svn-dev suggested I check to see where svn_cl__check_cancel
was being called from, so here's that trace:

#0 svn_cl__check_cancel (baton=0x0) at subversion/svn/main.c:806
#1 0xb7ecd1ab in do_open (adm_access=0xbfc70090, associated=0x890bde0,
    path=0x88d9030 "XXXXXX/document/src/commands/commands", write_lock=0,
    depth=-1, under_construction=0,
    cancel_func=0x805161d <svn_cl__check_cancel>, cancel_baton=0x0,
    pool=0x8095310) at subversion/libsvn_wc/lock.c:646
#2 0xb7ecd28b in do_open (adm_access=0xbfc70120, associated=0x89062b0,
    path=0x86e2ba8 "XXXXXX/document/src/commands", write_lock=0, depth=-1,
    under_construction=0, cancel_func=0x805161d <svn_cl__check_cancel>,
    cancel_baton=0x0, pool=0x8095310) at subversion/libsvn_wc/lock.c:664
#3 0xb7ecd28b in do_open (adm_access=0xbfc701b0, associated=0x8559ca8,
    path=0x80a2dc0 "XXXXXX/document/src", write_lock=0, depth=-1,
    under_construction=0, cancel_func=0x805161d <svn_cl__check_cancel>,
    cancel_baton=0x0, pool=0x8095310) at subversion/libsvn_wc/lock.c:664
#4 0xb7ecd28b in do_open (adm_access=0xbfc70240, associated=0x8098248,
    path=0x82706c8 "XXXXXX/document", write_lock=0, depth=-1,
    under_construction=0, cancel_func=0x805161d <svn_cl__check_cancel>,
    cancel_baton=0x0, pool=0x8095310) at subversion/libsvn_wc/lock.c:664
#5 0xb7ecd28b in do_open (adm_access=0xbfc702d0, associated=0x8095430,
    path=0x8088b70 "XXXXXX", write_lock=0, depth=-1, under_construction=0,
    cancel_func=0x805161d <svn_cl__check_cancel>, cancel_baton=0x0,
    pool=0x8095310) at subversion/libsvn_wc/lock.c:664
#6 0xb7ecd28b in do_open (adm_access=0xbfc70438, associated=0x0,
    path=0x8073ee0 "", write_lock=0, depth=-1, under_construction=0,
    cancel_func=0x805161d <svn_cl__check_cancel>, cancel_baton=0x0,
    pool=0x8095310) at subversion/libsvn_wc/lock.c:664
#7 0xb7ece123 in svn_wc_adm_open_anchor (anchor_access=0xbfc70438,
    target_access=0xbfc70434, target=0xbfc70430, path=0x8073ee0 "",
    write_lock=0, depth=-1, cancel_func=0x805161d <svn_cl__check_cancel>,
    cancel_baton=0x0, pool=0x8095310) at subversion/libsvn_wc/lock.c:1119
#8 0xb7f11054 in svn_client_status2 (result_rev=0xbfc704cc,
    path=0x8073ee0 "", revision=0xbfc7053c,
    status_func=0x8056c79 <print_status>, status_baton=0xbfc70520, recurse=1,
    get_all=0, update=0, no_ignore=0, ignore_externals=0, ctx=0x8072690,
    pool=0x8095310) at subversion/libsvn_client/status.c:227
#9 0x08056e0c in do_status (opt_state=0xbfc7067c, target=0x8073ee0 "",
    rev=0xbfc7053c, status_baton=0xbfc70520, ctx=0x8072690, pool=0x8095310)
    at subversion/svn/status-cmd.c:160
#10 0x08057081 in svn_cl__status (os=0x80722c0, baton=0xbfc7066c,
    pool=0x80721a8) at subversion/svn/status-cmd.c:241
#11 0x08052fb1 in main (argc=2, argv=0xbfc70824) at subversion/svn/main.c:1485

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Oct 5 20:33:37 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.