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

[PATCH] git-svn: Fix termination issues for remote svn connections

From
Uli Heller <uli.heller@daemons-point.com>
Date
Sep 3, 2013, 07:35 UTC
Message-ID
<6970c0cab40c60195c8f042a3b930a0a.squirrel@83.236.132.106>

When using git-svn in combination with serf-1.2.1 core dumps are created on termination. This is caused by a bug in serf, a fix for the bug exists (see https://code.google.com/p/serf/source/detail?r=2146). Nevertheless, I think it makes sense to fix the issue within the git perl module Ra.pm, too. The change frees the private copy of the remote access object on termination which prevents the error from happening.

Note: Since subversion-1.8.0 and later do require serf-1.2.1 or later,
the core dumps typically do show up when upgrading to a recent version
of subversion.
Credits: Jonathan Lambrechts for proposing a fix to Ra.pm.
Evgeny Kotkov and Ivan Zhakov for fixing the issue in serf and
pointing me to that fix.
---
 perl/Git/SVN/Ra.pm | 5 +++++
 1 file changed, 5 insertions(+)
diff --git a/perl/Git/SVN/Ra.pm b/perl/Git/SVN/Ra.pm
index 75ecc42..78dd346 100644
--- a/perl/Git/SVN/Ra.pm
+++ b/perl/Git/SVN/Ra.pm
@@ -32,6 +32,11 @@ BEGIN {
 	}
 }

+END {
+	$RA = undef;
+	$ra_invalid = 1;
+}
+
 sub _auth_providers () {
 	my @rv = (
 	  SVN::Client::get_simple_provider(),
-- 
1.8.4
Next: Junio C Hamano
Message 1 of 12 in “git-svn: Fix termination issues for remote svn connections”
  1. git-svn: Fix termination issues for remote svn connectionsUli Heller, Sep 3, 2013
  2. Junio C HamanoSep 5, 2013
  3. Eric WongSep 5, 2013
  4. Junio C HamanoSep 5, 2013
  5. Kyle J. McKaySep 6, 2013
  6. Uli HellerSep 6, 2013
  7. Kyle J. McKaySep 6, 2013
  8. Uli HellerSep 6, 2013
  9. Junio C HamanoSep 6, 2013
  10. git-svn: Fix termination issues for remote svn connectionsUli Heller, Sep 9, 2013
  11. Junio C HamanoSep 9, 2013
  12. Kyle J. McKaySep 6, 2013

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.