You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Stephan Feder <sf...@stephan-feder.de> on 2002/10/02 22:50:58 UTC
Possible bug: SIGSEV while resurrecting directory
Could someone please verify that the following recipe provokes a SIGSEV.
Regards,
Stephan
#############################
#! /bin/bash
set -e -u -x
DIR="/tmp/svn-sigsev.${$}"
REPO="${DIR}/repo"
URL="file://${REPO}"
ENTRY="${URL}/dir"
WC="${DIR}/wc"
# create dir in /tmp
mkdir "${DIR}"
# create repo
svnadmin create "${REPO}"
# add directory
svn mkdir -m "" "${ENTRY}"
# remove directory
svn rm -m "" "${ENTRY}"
# create working directory
mkdir "${WC}"
# change to working directory
cd "${WC}"
# check out repo; HEAD is #2 which is empty
svn co "${URL}" .
# try to resurrect directory by reverting changes from #1 to #2
# should segfault!!!
svn merge -r2:1 .
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Possible bug: SIGSEV while resurrecting directory
Posted by Stephan Feder <sf...@stephan-feder.de>.
Philip Martin wrote:
...
> Looks like using 'svn merge -r2:1 URL' works, see issue 880 for why
> I think merge should only accept URLs.
Yes, this works. I thought I had tried all variations.
Regards,
Stephan
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Possible bug: SIGSEV while resurrecting directory
Posted by Philip Martin <ph...@codematters.co.uk>.
Ben Collins-Sussman <su...@collab.net> writes:
> Stephan Feder <sf...@stephan-feder.de> writes:
>
> > Could someone please verify that the following recipe provokes a SIGSEV.
> >
>
> Yup, sure does!
>
> gdb'ing into it, it segfaults in libsvn_client/copy.c:967. src_path
> is "dir", but entry is NULL. Then it attempts to deref the entry.
>
> Philip, this looks like something you'd understand right away. :-)
It's a consequence of the partial fix for issue 838, where I used copy
to add-with-history during a merge.
Looks like using 'svn merge -r2:1 URL' works, see issue 880 for why
I think merge should only accept URLs.
--
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Possible bug: SIGSEV while resurrecting directory
Posted by Ben Collins-Sussman <su...@collab.net>.
Stephan Feder <sf...@stephan-feder.de> writes:
> Could someone please verify that the following recipe provokes a SIGSEV.
>
Yup, sure does!
gdb'ing into it, it segfaults in libsvn_client/copy.c:967. src_path
is "dir", but entry is NULL. Then it attempts to deref the entry.
Philip, this looks like something you'd understand right away. :-)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org