# git svn fetch segfaults

7 messages from 2008-01-08 to 2008-01-10. Participants: Dennis Schridde, Miklos Vajna, Junio C Hamano, Björn Steinbrink.
Thread: https://gitlist.dev/t/11541

## Dennis Schridde, 2008-01-08 22:25

Subject: git svn fetch segfaults
Message-ID: <200801082325.45756.devurandom@gmx.net>
URL: https://gitlist.dev/e/200801082325.45756.devurandom%40gmx.net

```
Hello!

The following procedure results in a segfault:

mkdir org.gna.warzone2100.git
cd org.gna.warzone2100.git
git --bare init
git --bare svn init --use-svnsync-props --stdlayout 
file:///var/svn/warzone2100/
git --bare svn fetch

A full log is attached.
If you want any more information, a dump of the SVN repository, etc, just tell 
me.

The last part which seems to be interesting is this one:

Odd number of elements in anonymous hash at /usr/bin/git-svn line 1760.
r13 = 7f00bbc9c92e5601b158c2cbc572b8e7bdcebe59 (tags/1.10a)
Segmentation fault

If I do not specify --use-svnsync-prop to "git svn init", it gets past r13 in 
tags/1.10a.

(Note that in the other mail, where I reported about the "Odd number of 
elements" problem, I used "git svn clone" instead.)

I am using these versions:
svn, version 1.4.6 (r28521)
git version 1.5.4.rc2

--Dennis

(Please CC me if you answer, since I am not subscribed.)

```

## Miklos Vajna, 2008-01-09 00:33

Subject: Re: git svn fetch segfaults
Message-ID: <20080109003307.GS29972@genesis.frugalware.org>
URL: https://gitlist.dev/e/20080109003307.GS29972%40genesis.frugalware.org
In-Reply-To: <200801082325.45756.devurandom@gmx.net>

```
On Tue, Jan 08, 2008 at 11:25:45PM +0100, Dennis Schridde <devurandom@gmx.net> wrote:
> mkdir org.gna.warzone2100.git
> cd org.gna.warzone2100.git
> git --bare init
> git --bare svn init --use-svnsync-props --stdlayout 
> file:///var/svn/warzone2100/
> git --bare svn fetch

wget http://svn.kynes.de/warzone2100.bz2

svnadmin create warzone2100 && bzcat warzone2100.bz2 | svnadmin load warzone2100

the rest is the same i get a segfault at the very same place.

> If I do not specify --use-svnsync-prop to "git svn init", it gets past r13 in 
> tags/1.10a.

same.

> I am using these versions:
> svn, version 1.4.6 (r28521)
> git version 1.5.4.rc2

$ svn --version
svn, version 1.4.5 (r25188)

$ git --version
git version 1.5.4.rc2.38.gd6da3

thanks,
- VMiklos

```

## Dennis Schridde, 2008-01-09 12:53

Subject: Re: git svn fetch segfaults
Message-ID: <200801091353.44630.devurandom@gmx.net>
URL: https://gitlist.dev/e/200801091353.44630.devurandom%40gmx.net
In-Reply-To: <20080109003307.GS29972@genesis.frugalware.org>

```
Am Mittwoch, 9. Januar 2008 01:33:07 schrieb Miklos Vajna:
> On Tue, Jan 08, 2008 at 11:25:45PM +0100, Dennis Schridde 
<devurandom@gmx.net> wrote:
> > mkdir org.gna.warzone2100.git
> > cd org.gna.warzone2100.git
> > git --bare init
> > git --bare svn init --use-svnsync-props --stdlayout
> > file:///var/svn/warzone2100/
> > git --bare svn fetch
>
> wget http://svn.kynes.de/warzone2100.bz2
>
> svnadmin create warzone2100 && bzcat warzone2100.bz2 | svnadmin load
> warzone2100
>
> the rest is the same i get a segfault at the very same place.
>
> > If I do not specify --use-svnsync-prop to "git svn init", it gets past
> > r13 in tags/1.10a.
>
> same.
>
> > I am using these versions:
> > svn, version 1.4.6 (r28521)
> > git version 1.5.4.rc2
>
> $ svn --version
> svn, version 1.4.5 (r25188)
>
> $ git --version
> git version 1.5.4.rc2.38.gd6da3
Same with git version 1.5.3.7

```

## Junio C Hamano, 2008-01-09 20:14

Subject: Re: git svn fetch segfaults
Message-ID: <7v4pdmiwo4.fsf@gitster.siamese.dyndns.org>
URL: https://gitlist.dev/e/7v4pdmiwo4.fsf%40gitster.siamese.dyndns.org
In-Reply-To: <200801091353.44630.devurandom@gmx.net>

```
Dennis Schridde <devurandom@gmx.net> writes:

> Am Mittwoch, 9. Januar 2008 01:33:07 schrieb Miklos Vajna:
>> On Tue, Jan 08, 2008 at 11:25:45PM +0100, Dennis Schridde 
> <devurandom@gmx.net> wrote:
>> > mkdir org.gna.warzone2100.git
>> > cd org.gna.warzone2100.git
>> > git --bare init
>> > git --bare svn init --use-svnsync-props --stdlayout
>> > file:///var/svn/warzone2100/
>> > git --bare svn fetch
>>
>> wget http://svn.kynes.de/warzone2100.bz2
>>
>> svnadmin create warzone2100 && bzcat warzone2100.bz2 | svnadmin load
>> warzone2100
>>
>> the rest is the same i get a segfault at the very same place.
>>
>> > If I do not specify --use-svnsync-prop to "git svn init", it gets past
>> > r13 in tags/1.10a.
>>
>> same.
>>
>> > I am using these versions:
>> > svn, version 1.4.6 (r28521)
>> > git version 1.5.4.rc2
>>
>> $ svn --version
>> svn, version 1.4.5 (r25188)
>>
>> $ git --version
>> git version 1.5.4.rc2.38.gd6da3
> Same with git version 1.5.3.7

Has anybody determined which executable is the segfaulting one?

If it is svn executable spawned by Perl that runs git-svn, or
libsvn shared object linked to Perl while running git-svn, I
suspect testing with different git versions will not be very
productive.

```

## Björn Steinbrink, 2008-01-09 20:53

Subject: Re: git svn fetch segfaults
Message-ID: <20080109205354.GA1433@atjola.homenet>
URL: https://gitlist.dev/e/20080109205354.GA1433%40atjola.homenet
In-Reply-To: <7v4pdmiwo4.fsf@gitster.siamese.dyndns.org>

```
On 2008.01.09 12:14:19 -0800, Junio C Hamano wrote:
> Dennis Schridde <devurandom@gmx.net> writes:
> 
> > Am Mittwoch, 9. Januar 2008 01:33:07 schrieb Miklos Vajna:
> >> On Tue, Jan 08, 2008 at 11:25:45PM +0100, Dennis Schridde 
> > <devurandom@gmx.net> wrote:
> >> > mkdir org.gna.warzone2100.git
> >> > cd org.gna.warzone2100.git
> >> > git --bare init
> >> > git --bare svn init --use-svnsync-props --stdlayout
> >> > file:///var/svn/warzone2100/
> >> > git --bare svn fetch
> >>
> >> wget http://svn.kynes.de/warzone2100.bz2
> >>
> >> svnadmin create warzone2100 && bzcat warzone2100.bz2 | svnadmin load
> >> warzone2100
> >>
> >> the rest is the same i get a segfault at the very same place.
> >>
> >> > If I do not specify --use-svnsync-prop to "git svn init", it gets past
> >> > r13 in tags/1.10a.
> >>
> >> same.
> >>
> >> > I am using these versions:
> >> > svn, version 1.4.6 (r28521)
> >> > git version 1.5.4.rc2
> >>
> >> $ svn --version
> >> svn, version 1.4.5 (r25188)
> >>
> >> $ git --version
> >> git version 1.5.4.rc2.38.gd6da3
> > Same with git version 1.5.3.7
> 
> Has anybody determined which executable is the segfaulting one?

I just tried to, but it's still running, at r600 now.

> If it is svn executable spawned by Perl that runs git-svn, or
> libsvn shared object linked to Perl while running git-svn, I
> suspect testing with different git versions will not be very
> productive.

Oh well, anyway, just for the record:
doener@atjola:~ $ svn --version
svn, version 1.4.4 (r25188)

doener@atjola:~ $ git --version
git version 1.5.4.rc1.11.gd2f82

Björn

```

## Björn Steinbrink, 2008-01-09 22:15

Subject: Re: git svn fetch segfaults
Message-ID: <20080109221508.GB2218@atjola.homenet>
URL: https://gitlist.dev/e/20080109221508.GB2218%40atjola.homenet
In-Reply-To: <20080109205354.GA1433@atjola.homenet>

```
On 2008.01.09 21:53:54 +0100, Björn Steinbrink wrote:
> On 2008.01.09 12:14:19 -0800, Junio C Hamano wrote:
> > Dennis Schridde <devurandom@gmx.net> writes:
> > 
> > > Am Mittwoch, 9. Januar 2008 01:33:07 schrieb Miklos Vajna:
> > >> On Tue, Jan 08, 2008 at 11:25:45PM +0100, Dennis Schridde 
> > > <devurandom@gmx.net> wrote:
> > >> > mkdir org.gna.warzone2100.git
> > >> > cd org.gna.warzone2100.git
> > >> > git --bare init
> > >> > git --bare svn init --use-svnsync-props --stdlayout
> > >> > file:///var/svn/warzone2100/
> > >> > git --bare svn fetch
> > >>
> > >> wget http://svn.kynes.de/warzone2100.bz2
> > >>
> > >> svnadmin create warzone2100 && bzcat warzone2100.bz2 | svnadmin load
> > >> warzone2100
> > >>
> > >> the rest is the same i get a segfault at the very same place.
> > >>
> > >> > If I do not specify --use-svnsync-prop to "git svn init", it gets past
> > >> > r13 in tags/1.10a.
> > >>
> > >> same.
> > >>
> > >> > I am using these versions:
> > >> > svn, version 1.4.6 (r28521)
> > >> > git version 1.5.4.rc2
> > >>
> > >> $ svn --version
> > >> svn, version 1.4.5 (r25188)
> > >>
> > >> $ git --version
> > >> git version 1.5.4.rc2.38.gd6da3
> > > Same with git version 1.5.3.7
> > 
> > Has anybody determined which executable is the segfaulting one?
> 
> I just tried to, but it's still running, at r600 now.

It finished by now, no segfault with --use-svnsync-props.

Björn

```

## Dennis Schridde, 2008-01-10 01:45

Subject: Re: git svn fetch segfaults
Message-ID: <200801100245.05647.devurandom@gmx.net>
URL: https://gitlist.dev/e/200801100245.05647.devurandom%40gmx.net
In-Reply-To: <7v4pdmiwo4.fsf@gitster.siamese.dyndns.org>

```
Replying to this, as I haven't recieved the newer mail. (Not subscribed.)
Handcopied the text, hope I didn't forgot anything.

> > > Has anybody determined which executable is the segfaulting one?
> >
> > I just tried to, but it's still running, at r600 now.
> >
> > > If it is svn executable spawned by Perl that runs git-svn, or
> > > libsvn shared object linked to Perl while running git-svn, I
> > > suspect testing with different git versions will not be very
> > > productive.
> >
> > Oh well, anyway, just for the record:
> > doener@atjola:~ $ svn --version
> > svn, version 1.4.4 (r25188)
> >
> > doener@atjola:~ $ git --version
> > git version 1.5.4.rc1.11.gd2f82
>
> It finished by now, no segfault with --use-svnsync-props.
For me it always segfaulted at r13 in tags/1.10a.
I crosses r13 before that already (trunk), but doesn't crash there.

I am now recompiling svn,git,perl to create a coredump, will the rerun it and 
hopefully get some backtraces from the dump.

Btw, I am running perl 5.8.8, in case that matters somehow.

--Dennis

```
