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

Core dump while merging on 0.14.2

From: Eric Hanchrow <offby1_at_blarg.net>
Date: 2002-08-24 19:38:21 CEST

This script reproduces the core dump on my machine:

    #!/bin/sh -v

    # Set this to something sensible on your machine

    rm -rf $REPOS $WD

    svnadmin create $REPOS
    cd $(dirname $WD)
    svn co file://$REPOS $WD
    cd $WD
    echo Hey you > bob
    svn add bob
    svn commit -m ''
    svn cp bob bob-new
    echo A new line >> bob
    echo Another new line >> bob-new
    diff bob bob-new
    svn diff bob bob-new
    echo -e 'run merge bob bob-new bob-new \n bt ' > /tmp/gdb.$$
    gdb svn -x /tmp/gdb.$$

Here's the backtrace that I see:

    [New Thread 1024 (LWP 17183)]

    Program received signal SIGSEGV, Segmentation fault.
    [Switching to Thread 1024 (LWP 17183)]
    0x4027bc52 in memcmp () from /lib/libc.so.6
    #0 0x4027bc52 in memcmp () from /lib/libc.so.6
    #1 0x400135cc in _dl_debug_mask () from /lib/ld-linux.so.2
    #2 0x0805b1a9 in do_single_file_merge (notify_func=0x804c390 <notify>,
        notify_baton=0x80efeb0, auth_baton=0x80efd88, path1=0x80efe28 "bob",
        revision1=0xbffffbf0, path2=0x80efe60 "bob-new", revision2=0xbffffbfc,
        target_wcpath=0x80efea0 "bob-new", pool=0x80ef9e8)
        at subversion/libsvn_client/diff.c:808
    #3 0x0805c21c in svn_client_merge (notify_func=0x804c390 <notify>,
        notify_baton=0x80efeb0, auth_baton=0x80efd88, path1=0x80efe28 "bob",
        revision1=0xbffffbf0, path2=0x80efe60 "bob-new", revision2=0xbffffbfc,
        target_wcpath=0x80efea0 "bob-new", recurse=1, force=0, pool=0x80ef9e8)
        at subversion/libsvn_client/diff.c:1301
    #4 0x0804fbb8 in svn_cl__merge (os=0x80efb48, opt_state=0xbffffbf0,
        pool=0x80ef9e8) at subversion/clients/cmdline/merge-cmd.c:137
    #5 0x0804f85d in main (argc=5, argv=0xbffffcd4)
        at subversion/clients/cmdline/main.c:1227

If it matters, here's the output from ldd $(type -p svn):

        libdb-4.0.so => /usr/local/BerkeleyDB.4.0/lib/libdb-4.0.so (0x40025000)
        libgdbm.so.1 => /usr/lib/libgdbm.so.1 (0x400aa000)
        libdb.so.2 => /lib/libdb.so.2 (0x400b1000)
        libexpat.so.1 => /usr/lib/libexpat.so.1 (0x400be000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x400df000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x4010c000)
        libdl.so.2 => /lib/libdl.so.2 (0x40120000)
        libxml2.so.2 => /usr/lib/libxml2.so.2 (0x40123000)
        libz.so.1 => /usr/lib/libz.so.1 (0x401c2000)
        libm.so.6 => /lib/libm.so.6 (0x401d1000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x401f3000)
        libc.so.6 => /lib/libc.so.6 (0x40207000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

(I'd have opened a bug in Issuezilla if I could have figured out how
to register :( )

PGP Fingerprint: 3E7B A3F3 96CA 8958 ACC5  C8BD 6337 0041 C01C 5276
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Aug 24 22:17:24 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.