git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Segmentation fault in git-svn

From
EWEric Wong <normalperson@yhbt.net>
Date
Apr 17, 2007, 09:37 UTC
Message-ID
<20070417093743.GA9222@muzzle>
In-Reply-To
<4623F613.5010108@midwinter.com>
Steven Grimm <koreth@midwinter.com> wrote:
> I expect this is really a libsvn bug, but git-svn triggers it, so I'm 
> hoping someone else has run into and solved it, or at least that someone 
> can reproduce it.

I've also been working with another user off-list the past few days on tracking down on a segmentation fault in git-svn.

> If I try to clone the "memcached" public repository with the command line
> 
>  git-svn clone --branches=branches --trunk=trunk 
> http://code.sixapart.com/svn/memcached

I just ran this several (6?) times got a segmentation fault once with Junio's master @ f948792990f82a35bf0c98510e7511ef8acb9cd3.

Trying it again with the same file that segfaulted earlier, it was successful, spooky...

I also tried some other patches (see replies) which I've been testing to fix the other user's problem.

Show 5 quoted lines
> it cranks along fine until revision 299, then dies with SIGSEGV. If I 
> run it again, it appears to pick up where it left off, then dies again 
> at revision 399, then again at revision 499. (There are fewer than 600 
> revisions in that repo so it's anyone's guess if it'd die at 599 given 
> the chance.)
I have definitely not seen this pattern before.
However, the following clone has been problematic at times
git svn clone svn://svn.debian.org/svn/pkg-glibc/glibc-package \
  -T trunk -b branches -t tags
Show 5 quoted lines
> This happens on both a Linux box (amd64, FC4, svn version 1.4.3) and my 
> Mac (Intel OS 10.4, svn version 1.2.3 from Fink), so at the very least 
> it's not platform-specific. It also happens periodically on the private 
> svn repository at my company, though not as predictably. On my Mac, I'm 
> using the very latest git code from "master".

I'm running x86, Debian Etch, SVN 1.4.2 from Debian Etch or 1.4.3 from Debian experimental + do_switch patch[1]

Thanks for the stack trace. This is segfaulting at a different place (expected, being an http:// repo while the other is svn://)

[1] - http://svn.haxx.se/dev/archive-2007-01/0936.shtml
-- 
Eric Wong
Previous: Steven GrimmNext: Eric Wong
Message 2 of 12 in “Segmentation fault in git-svn”
  1. Steven GrimmApr 16, 2007
  2. Eric WongApr 17, 2007
  3. git-svn: cache SVN::Ra functions in a more Perl GC-friendly wayEric Wong, Apr 17, 2007
  4. Steven GrimmApr 24, 2007
  5. Eric WongApr 25, 2007
  6. Eric WongApr 17, 2007
  7. Eric WongApr 18, 2007
  8. [RFH] Re: Segmentation fault in git-svnEric Wong, Apr 19, 2007
  9. Peter BaumannMay 3, 2007
  10. Eric WongMay 13, 2007
  11. Steven GrimmMay 13, 2007
  12. Peter BaumannMay 14, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.