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

git svn exits with error error closing pipe: Bad file descriptor

From
Kacper Kornet <draenog@pld-linux.org>
Date
Jul 18, 2013, 12:52 UTC
Message-ID
<20130718125207.GA14823@camk.edu.pl>

After upgrade to subversion 1.8.0 on some repositories git svn clone shows two warnings:

error closing pipe: Bad file descriptor at /home/users/kornet/giti/libexec/git-core/git-svn line 0.

at exit. They appear because process git cat-file --batch exits before command_close_bidi_pipe is called by destructor during perl exit. The solution is to call the destructor explicitly, e.q.:

index ff1ce3d..6811738 100755
--- a/git-svn.perl
+++ b/git-svn.perl
@@ -2068,6 +2068,10 @@ sub gc_directory {
        }
 }
 
+END {
+    undef $_repository;
+}
+
 __END__
 
 Data structures:

However I'm not sure whether it is not a symptom of some other error.
What's confuses me more is that the warnings don't appear for all
repositories. For example they appear for  http://svn.pld-linux.org/svn/cdpl/
while cloning http://svn.pld-linux.org/svn/atob ends normally.
On the other hand it is consistent between two different machines with
different Linux distributions and perl versions.
-- 
  Kacper Kornet
Message 1 of 1 in “git svn exits with error error closing pipe: Bad file descriptor”
  1. Kacper KornetJul 18, 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.