threads / discuss / 11541

git svn fetch segfaults

Subject: git svn fetch segfaults

## tl;dr

7 messages between Jan 8, 2008 and Jan 10, 2008.

replies: 6people: 4as markdown or json

Dennis Schridde· Jan 8, 2008, 22:25 UTC · lore
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· Jan 9, 2008, 00:33 UTC · re: Dennis Schridde · lore

Re: git svn fetch segfaults

On Tue, Jan 08, 2008 at 11:25:45PM +0100, Dennis Schridde <devurandom@gmx.net> wrote:
Show 6 quoted lines
> 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· Jan 9, 2008, 12:53 UTC · re: Miklos Vajna · lore

Re: git svn fetch segfaults

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:
Show 28 quoted lines
> > 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· Jan 9, 2008, 20:14 UTC · re: Dennis Schridde · lore

Re: git svn fetch segfaults

Dennis Schridde <devurandom@gmx.net> writes:
Show 32 quoted lines
> 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· Jan 9, 2008, 20:53 UTC · re: Junio C Hamano · lore

Re: git svn fetch segfaults

On 2008.01.09 12:14:19 -0800, Junio C Hamano wrote:
Show 36 quoted lines
> 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· Jan 9, 2008, 22:15 UTC · re: Björn Steinbrink · lore

Re: git svn fetch segfaults

On 2008.01.09 21:53:54 +0100, Björn Steinbrink wrote:
Show 39 quoted lines
> 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· Jan 10, 2008, 01:45 UTC · re: Junio C Hamano · lore

Re: git svn fetch segfaults

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

Show 17 quoted lines
> > > 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

← back to recent threads