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

Re: more fallout from rev 2024?

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2002-05-29 06:20:32 CEST

Philip Martin <philip@codematters.co.uk> writes:

> % svn st -u
> _ * 2025 000000)
> _ * 2025 (8‚จพ6
> M 2025 ./subversion/libsvn_wc/update_editor.c
> M_ 2025 ./subversion/tests/clients/cmdline/basic_tests.py
> _ * 2025 ./subversion/tests/libsvn_subr/time-test(`
> Head revision: 2026

valgrind is reporting the use of free'd memory for 'svn st -u':

==6920== Invalid read of size 1
==6920== at 0x4038F866: svn_path_compare_paths (in /usr/local/subversion/lib/libsvn_subr.so.0.0.0)
==6920== by 0x40390A79: svn_sort_compare_items_as_paths (../svn/subversion/libsvn_subr/sorts.c:74)
==6920== by 0x405D4323: (within /lib/libc-2.2.5.so)
==6920== by 0x405D4277: (within /lib/libc-2.2.5.so)
==6920== Address 0x4342CB00 is 0 bytes inside a block of size 21 free'd
==6920== at 0x40040B22: (within /usr/lib/valgrind/valgrind.so)
==6920== by 0x40463993: pool_clear_debug (apr_pools.c:1364)
==6920== by 0x40463A2E: apr_pool_destroy_debug (apr_pools.c:1398)
==6920== by 0x40365DA8: wrap_close_directory (../svn/subversion/libsvn_delta/default_editor.c:389)

(gdb) bt
#0 0x4005f49f in vgPlain_shutdown_logging ()
   from /usr/lib/valgrind/valgrind.so
#1 0x00002360 in ?? ()
#2 0x4038f866 in svn_path_compare_paths (path1=0xbffff70c, path2=0xbffff6fc)
    at ../svn/subversion/libsvn_subr/path.c:489
#3 0x40390a79 in svn_sort_compare_items_as_paths (a=0x43478b48, b=0x43478b54)
    at ../svn/subversion/libsvn_subr/sorts.c:74
#4 0x405d4323 in bsearch () from /lib/libc.so.6
#5 0x405d4277 in bsearch () from /lib/libc.so.6
#6 0x405d43fe in qsort () from /lib/libc.so.6
#7 0x40390bc4 in apr_hash_sorted_keys (ht=0x43398c98,
    comparison_func=0x8049e10 <svn_sort_compare_items_as_paths>,
    pool=0x4339647c) at ../svn/subversion/libsvn_subr/sorts.c:123
#8 0x0804f3fa in svn_cl__print_status_list (statushash=0x43398c98,
    youngest=6, detailed=1, show_last_committed=0, skip_unrecognized=0,
    pool=0x4339647c) at ../svn/subversion/clients/cmdline/status.c:236
#9 0x0804f093 in svn_cl__status (os=0x43396ee4, opt_state=0xbffff9d0,
    pool=0x4339647c) at ../svn/subversion/clients/cmdline/status-cmd.c:74
#10 0x0804dadf in main (argc=4, argv=0xbffffab4)
    at ../svn/subversion/clients/cmdline/main.c:1121
(gdb) up 2
#2 0x4038f866 in svn_path_compare_paths (path1=0xbffff70c, path2=0xbffff6fc)
    at ../svn/subversion/libsvn_subr/path.c:489
489 while (i < min_len && path1->data[i] == path2->data[i])
(gdb) p (char*)0x4342CB00
$11 = 0x4342cb00 "/home/pm/wc/branches"
(gdb) p path1[0].data
$12 = 0x4342cb00 "/home/pm/wc/branches"

-- 
Philip
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed May 29 06:21:39 2002

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.