Re: error: git-remote-https died of signal 13

2014-04-24 Thread Daniel Stenberg
On Thu, 24 Apr 2014, Jeff King wrote: Thanks, that's very helpful. I wasn't able to reproduce your problem locally, but I suspect the curl patch below may fix it: ... Daniel, I think the similar fix to curl_multi_cleanup in commit a900d45 missed this code path, and we need something like the

Re: error: git-remote-https died of signal 13

2014-04-24 Thread Greg M
On Thu, Apr 24, 2014 at 12:15 AM, Jeff King wrote: > I suspect the curl patch below may fix it: > > diff --git a/lib/multi.c b/lib/multi.c > index bc93264..72e4825 100644 > --- a/lib/multi.c > +++ b/lib/multi.c > @@ -1804,10 +1804,13 @@ static void close_all_connections(struct Curl_multi > *multi

Re: error: git-remote-https died of signal 13

2014-04-23 Thread Jeff King
On Wed, Apr 23, 2014 at 07:49:09AM -0400, Greg M wrote: > > The easiest way to find it is probably to attach a debugger to the > > running git-remote-https, and get a backtrace when it dies from SIGPIPE. > > You'll probably want to install your system's debug packages for curl, > > too. > > > > T

Re: error: git-remote-https died of signal 13

2014-04-23 Thread Greg M
/s, done. >> Resolving deltas: 100% (238828/238828), done. >> Checking connectivity... done. >> error: git-remote-https died of signal 13 > > Thanks for a thorough bug report. I looked through your strace output, > and this really does look like another case of OpenSSL getting

Re: error: git-remote-https died of signal 13

2014-04-23 Thread Jeff King
objects: 80, done. > remote: Compressing objects: 100% (77/77), done. > remote: Total 296728 (delta 22), reused 9 (delta 3) > Receiving objects: 100% (296728/296728), 110.68 MiB | 190.00 KiB/s, done. > Resolving deltas: 100% (238828/238828), done. > Checking connectivity... done.

error: git-remote-https died of signal 13

2014-04-20 Thread Greg M
tal 296728 (delta 22), reused 9 (delta 3) Receiving objects: 100% (296728/296728), 110.68 MiB | 190.00 KiB/s, done. Resolving deltas: 100% (238828/238828), done. Checking connectivity... done. error: git-remote-https died of signal 13 The repository appears to be cloned fine, I can clone other re

Re: error: git-remote-https died of signal 13

2013-11-25 Thread Jeff King
On Mon, Nov 25, 2013 at 09:32:13AM -0500, Jeff King wrote: > > But I then decided that if a 3rd library has one way to generate > > SIGPIPE it may very well have another in a separate spot so I decided > > to do the wrap at the top level immediately in the entry point when > > getting called by th

Re: error: git-remote-https died of signal 13

2013-11-25 Thread Jeff King
On Mon, Nov 25, 2013 at 08:20:18AM +0100, Daniel Stenberg wrote: > >Daniel, does the call to Curl_disconnect need to be wrapped with > >sigpipe_ignore/reset, similar to 7d80ed64e435155? > > Yes. It very much looks like that. The SSL "closing" is what was the > problem I had to adress. > > But I

Re: error: git-remote-https died of signal 13

2013-11-24 Thread Daniel Stenberg
On Mon, 25 Nov 2013, Jeff King wrote: Thanks. I'm having trouble reproducing the SIGPIPE locally, but I am able to see via strace the write we make in curl_multi_cleanup. The call stack is: curl_multi_cleanup -> close_all_connections -> Curl_disconnect -> Curl_ossl_close

Re: error: git-remote-https died of signal 13

2013-11-24 Thread Jeff King
nup > warning: calling curl_multi_remove_handle > warning: calling curl_easy_cleanup on slot > warning: curl_easy_cleanup done > warning: calling curl_easy_cleanup on default > warning: curl_easy_cleanup done > warning: calling curl_multi_cleanup > error: git-remote-https died of

Re: error: git-remote-https died of signal 13

2013-11-24 Thread brian m. carlson
On Sun, Nov 24, 2013 at 10:54:39AM -0500, Jeff King wrote: > Another thought is that the curl fix seems to only kick in when built > with openssl support. I'm not sure I understand how ubuntu's packaging > of curl uses gnutls versus openssl for the shared library. That may be > related. Debian (a

Re: error: git-remote-https died of signal 13

2013-11-24 Thread Daniel Stenberg
On Sun, 24 Nov 2013, Jeff King wrote: Hmm. The fix in curl's 7d80ed64e435155 seems to involve strategically placed calls to ignore SIGPIPE. I wonder if there is another spot that needs similar treatment. It looks like curl_easy_cleanup is covered, though, and that's where I would expect proble

Re: error: git-remote-https died of signal 13

2013-11-24 Thread Stefan Beller
6), reused 19888 (delta 15066) Receiving objects: 100% (21354/21354), 176.42 MiB | 1.22 MiB/s, done. Resolving deltas: 100% (16466/16466), done. Debug: Remote helper: <- lock /tmp/ValyriaTear/.git/objects/pack/pack-b6f360ab28b5078a9aefafe1c4144e6c7782c317.keep Debug: Remote helper: Waiting... Debug: Remote helper: <- connectivity-ok Debug: Remote helper: Waiting... Debug: Remote helper: <- Checking connectivity... done. Debug: Disconnecting. warning: in http_cleanup warning: calling curl_multi_remove_handle warning: calling curl_easy_cleanup on slot warning: curl_easy_cleanup done warning: calling curl_easy_cleanup on default warning: curl_easy_cleanup done warning: calling curl_multi_cleanup error: git-remote-https died of signal 13 Thanks, Stefan -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: error: git-remote-https died of signal 13

2013-11-24 Thread Stefan Beller
On 24.11.2013 16:54, Jeff King wrote: > Hmm. The fix in curl's 7d80ed64e435155 seems to involve strategically > placed calls to ignore SIGPIPE. I wonder if there is another spot that > needs similar treatment. It looks like curl_easy_cleanup is covered, > though, and that's where I would expect pro

Re: error: git-remote-https died of signal 13

2013-11-24 Thread Jeff King
GIT_TRANSPORT_HELPER_DEBUG=1 git clone > >> https://github.com/Bertram25/ValyriaTear.git tmp > > > > Thanks. I think I see what is going on. > > > > We finish the helper conversation here: > > > >> Checking connectivity... done. > >

Re: error: git-remote-https died of signal 13

2013-11-24 Thread Stefan Beller
at is going on. > > We finish the helper conversation here: > >> Checking connectivity... done. >> Debug: Disconnecting. >> error: git-remote-https died of signal 13 >> sb@sb:/tmp$ > > which means that remote-https is trying to exit, and is cleanin

Re: error: git-remote-https died of signal 13

2013-11-24 Thread Jeff King
gt; Checking connectivity... done. > Debug: Disconnecting. > error: git-remote-https died of signal 13 > sb@sb:/tmp$ which means that remote-https is trying to exit, and is cleaning up any curl connections. The actual SIGPIPE in the strace is here: [pid 28319] write(3, "\25\3\2\0...[binar

Re: error: git-remote-https died of signal 13

2013-11-24 Thread Stefan Beller
te: Compressing objects: 100% (6307/6307), done. >> remote: Total 21346 (delta 16463), reused 19820 (delta 15000) >> Receiving objects: 100% (21346/21346), 176.39 MiB | 445.00 KiB/s, done. >> Resolving deltas: 100% (16463/16463), done. >> Checking connectivity... done

Re: error: git-remote-https died of signal 13

2013-11-23 Thread Jeff King
Total 21346 (delta 16463), reused 19820 (delta 15000) > Receiving objects: 100% (21346/21346), 176.39 MiB | 445.00 KiB/s, done. > Resolving deltas: 100% (16463/16463), done. > Checking connectivity... done. > error: git-remote-https died of signal 13 > > However the repository seems

error: git-remote-https died of signal 13

2013-11-23 Thread Stefan Beller
346 (delta 16463), reused 19820 (delta 15000) Receiving objects: 100% (21346/21346), 176.39 MiB | 445.00 KiB/s, done. Resolving deltas: 100% (16463/16463), done. Checking connectivity... done. error: git-remote-https died of signal 13 However the repository seems to be cloned fine. I can clone diffe