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

Re: MAC OSX stack trace, please, for commit-tests.py 59

From: Stefan Sperling <stsp_at_elego.de>
Date: Fri, 17 Jul 2009 16:08:27 +0100

On Fri, Jul 17, 2009 at 08:36:34AM -0500, Hyrum K. Wright wrote:
> On Jul 17, 2009, at 3:27 AM, Julian Foad wrote:
>
> > The MAC OSX buildbot is failing because of a seg-fault that occurs in
> > merge_tests.py 59. (See for example this recent failure email
> > <http://subversion.tigris.org/ds/viewMessage.do?dsForumId=552&dsMessageId=2371912
> > > and follow the link to "Full details".)
> >
> > Can a MAC user post a stack trace (including parameter values) of this
> > failure? It might help one of us to debug it. I will try if I can
> > see a
> > stack trace.
>
> I can't reproduce this locally, but that seems to say to me "memory
> bug!" Philip's valgrind trace posted elsethread appears to confirm
> this.

Yeah and it might also explain the trace below for test 56 I showed
Paul the other day. So far we've been unable to figure out the problem.
Note the bogus input being passed to svn_mergeinfo_parse().

Stefan

stsp_at_jack [~/svn/svn-trunk/subversion/tests/cmdline] $ gdb --args svn merge -r2:3 file:///home/stsp/svn/svn-trunk/subversion/tests/cmdline/svn-test-work/repositories/merge_tests-56/A/B svn-test-work/working_copies/merge_tests-56.other/A/C --dry-run --config-dir /home/stsp/svn/svn-trunk/subversion/tests/cmdline/svn-test-work/local_tmp/config --password rayjandom --no-auth-cache --username jrandom
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
(gdb) br subversion/libsvn_subr/mergeinfo.c:91
No source file named subversion/libsvn_subr/mergeinfo.c.
Make breakpoint pending on future shared library load? (y or [n]) y

Breakpoint 1 (subversion/libsvn_subr/mergeinfo.c:91) pending.
(gdb) run
Starting program: /home/stsp/svn/prefix/svn-trunk/bin/svn merge -r2:3 file:///home/stsp/svn/svn-trunk/subversion/tests/cmdline/svn-test-work/repositories/merge_tests-56/A/B svn-test-work/working_copies/merge_tests-56.other/A/C --dry-run --config-dir /home/stsp/svn/svn-trunk/subversion/tests/cmdline/svn-test-work/local_tmp/config --password rayjandom --no-auth-cache --username jrandom
[Thread debugging using libthread_db enabled]
[New Thread 0xb78a7a10 (LWP 25984)]
[New Thread 0xb76f5b90 (LWP 25987)]
[Thread 0xb76f5b90 (LWP 25987) exited]
[Switching to Thread 0xb78a7a10 (LWP 25984)]

Breakpoint 1, parse_pathname (input=0xbffaa164, end=0x91ae754 "",
    pathname=0xbffaa0b8, pool=0x90fd460)
    at subversion/libsvn_subr/mergeinfo.c:91
91 return svn_error_create(SVN_ERR_MERGEINFO_PARSE_ERROR, NULL,
(gdb) bt
#0 parse_pathname (input=0xbffaa164, end=0x91ae754 "", pathname=0xbffaa0b8,
    pool=0x90fd460) at subversion/libsvn_subr/mergeinfo.c:91
#1 0xb7de864f in parse_revision_line (input=0xbffaa164, end=0x91ae754 "",
    hash=0x91ae7c8, pool=0x90fd460) at subversion/libsvn_subr/mergeinfo.c:498
#2 0xb7de8ae0 in parse_top (input=0xbffaa164, end=0x91ae754 "",
    hash=0x91ae7c8, pool=0x90fd460) at subversion/libsvn_subr/mergeinfo.c:578
#3 0xb7de8b89 in svn_mergeinfo_parse (mergeinfo=0xbffaa1e4,
    input=0x91ae748 "�2\227\t�D�\t�$�\t", pool=0x90fd460)
    at subversion/libsvn_subr/mergeinfo.c:591
#4 0xb7f70256 in svn_client__parse_mergeinfo (mergeinfo=0xbffaa1e4,
    entry=0x90d2288,
    wcpath=0x90fd8e0 "svn-test-work/working_copies/merge_tests-56.other/A/C",
    pristine=0, adm_access=0x90d1ee0, ctx=0x90b6bb0, pool=0x90fd460)
    at subversion/libsvn_client/mergeinfo.c:89
#5 0xb7f70699 in svn_client__get_wc_mergeinfo (mergeinfo=0x90fd8cc,
    inherited=0xbffaa30c, pristine=0, inherit=svn_mergeinfo_inherited,
    entry=0x90d2288,
    wcpath=0x90fd8e0 "svn-test-work/working_copies/merge_tests-56.other/A/C",
    limit_path=0x0, walked_path=0x0, adm_access=0x90d1ee0, ctx=0x90b6bb0,
    pool=0x90fd460) at subversion/libsvn_client/mergeinfo.c:209
#6 0xb7f70d92 in svn_client__get_wc_or_repos_mergeinfo (
    target_mergeinfo=0x90fd8cc, entry=0x90d2288, indirect=0xbffaa30c,
    repos_only=0, inherit=svn_mergeinfo_inherited, ra_session=0x9160c78,
    target_wcpath=0x90fd8e0 "svn-test-work/working_copies/merge_tests-56.other/A/C", adm_access=0x90d1ee0, ctx=0x90b6bb0, pool=0x90fd460)
    at subversion/libsvn_client/mergeinfo.c:389
#7 0xb7f62867 in get_full_mergeinfo (recorded_mergeinfo=0x90fd8cc,
    implicit_mergeinfo=0x90fd8d0, entry=0x90d2288, indirect=0x90fd8d4,
    inherit=svn_mergeinfo_inherited, ra_session=0x9160c78,
    target_wcpath=0x90fd8e0 "svn-test-work/working_copies/merge_tests-56.other/A/C", start=3, end=2, adm_access=0x90d1ee0, ctx=0x90b6bb0, pool=0x90fd460)
    at subversion/libsvn_client/merge.c:2853
#8 0xb7f64415 in populate_remaining_ranges (
    children_with_mergeinfo=0x90fd590,
    source_root_url=0x90fd5b0 "file:///home/stsp/svn/svn-trunk/subversion/tests/cmdline/svn-test-work/repositories/merge_tests-56",
    url1=0x90d3ca0 "file:///home/stsp/svn/svn-trunk/subversion/tests/cmdline/svn-test-work/repositories/merge_tests-56/A/B", revision1=2,
    url2=0x90d3d20 "file:///home/stsp/svn/svn-trunk/subversion/tests/cmdline/svn-test-work/repositories/merge_tests-56/A/B", revision2=3, honor_mergeinfo=1,
    ra_session=0x9160c78, parent_merge_src_canon_path=0x90fd638 "/A/B",
    adm_access=0x90d1ee0, merge_b=0xbffaa5b4, pool=0x90fd460)
    at subversion/libsvn_client/merge.c:3772
#9 0xb7f6b037 in do_directory_merge (
    url1=0x90d3ca0 "file:///home/stsp/svn/svn-trunk/subversion/tests/cmdline/svn-test-work/repositories/merge_tests-56/A/B", revision1=2,
    url2=0x90d3d20 "file:///home/stsp/svn/svn-trunk/subversion/tests/cmdline/svn-test-work/repositories/merge_tests-56/A/B", revision2=3,
    target_entry=0x90d2288, adm_access=0x90d1ee0, depth=svn_depth_infinity,
    notify_b=0xbffaa584, merge_b=0xbffaa5b4, pool=0x90fd460)
    at subversion/libsvn_client/merge.c:6987
#10 0xb7f6bdb8 in do_merge (merge_sources=0x90d3af8,
    target=0x90c17a0 "svn-test-work/working_copies/merge_tests-56.other/A/C",
    target_entry=0x90d2288, adm_access=0x90d1ee0, sources_ancestral=1,
    sources_related=1, same_repos=1, ignore_ancestry=0, force=0, dry_run=1,
    record_only=0, reintegrate_merge=0, depth=svn_depth_infinity,
    merge_options=0x0, use_sleep=0xbffaa6d4, ctx=0x90b6bb0, pool=0x90b59b0)
    at subversion/libsvn_client/merge.c:7431
#11 0xb7f70034 in svn_client_merge_peg3 (
    source=0x90c1580 "file:///home/stsp/svn/svn-trunk/subversion/tests/cmdline/svn-test-work/repositories/merge_tests-56/A/B", ranges_to_merge=0x90b5b38,
    peg_revision=0xbffaa7b8,
    target_wcpath=0x90c17a0 "svn-test-work/working_copies/merge_tests-56.other/A/C", depth=svn_depth_unknown, ignore_ancestry=0, force=0, record_only=0,
    dry_run=1, merge_options=0x0, ctx=0x90b6bb0, pool=0x90b59b0)
    at subversion/libsvn_client/merge.c:8819
#12 0x0805b852 in svn_cl__merge (os=0x90b5b58, baton=0xbffaa934,
    pool=0x90b59b0) at subversion/svn/merge-cmd.c:313
#13 0x0805acd3 in main (argc=13, argv=0xbffaab64) at subversion/svn/main.c:2115
(gdb)
Received on 2009-07-17 17:08:57 CEST

This is an archived mail posted to the Subversion Dev mailing list.