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:55 UTC
Message-ID
<20070417095509.GA24800@muzzle>
In-Reply-To
<20070417093743.GA9222@muzzle>

This disables some pool allocations, forcing it to use the global one.

Other than that, my eyes are barely open and my brain is having trouble functioning at this time of morning.

diff --git a/git-svn.perl b/git-svn.perl
index ac44f60..cff81f7 100755
--- a/git-svn.perl
+++ b/git-svn.perl
@@ -2883,7 +2883,7 @@ BEGIN {
 			wantarray ? \@ret : \$ret[0]; }\n";
 	}
 	$e .= "\n1;";
-	eval $e or die $@;
+	# eval $e or die $@;
 }
 
 sub new {
@@ -2925,10 +2925,10 @@ sub DESTROY {
 
 sub get_log {
 	my ($self, @args) = @_;
-	my $pool = SVN::Pool->new;
+	# my $pool = SVN::Pool->new;
 	splice(@args, 3, 1) if ($SVN::Core::VERSION le '1.2.0');
-	my $ret = $self->SUPER::get_log(@args, $pool);
-	$pool->clear;
+	my $ret = $self->SUPER::get_log(@args);
+	# $pool->clear;
 	$ret;
 }
 
-- 
Eric Wong
Previous: Eric WongNext: Eric Wong
Message 6 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.