On Wed, Jul 25, 2018 at 08:41:31PM +0200, SZEDER Gábor wrote: > On Wed, Jul 25, 2018 at 4:51 PM Max Kirillov <max@xxxxxxxxxx> wrote: >>> I just happened to stumble upon a failure because of 'fatal: the >>> remote end hung up unexpectedly' in the test 'push plain'. >> >> Did it happen once or repeated? It is rather strange, that >> one shoud not fail. Which OS it was? > > Only once, so far. It was one of my OSX build jobs on Travis CI, but > I don't know what OSX version is used. > > 'act.err' contained this (which will get line-wrapped, I'm afraid): > > ++handler_type=receive > ++shift > ++env CONTENT_TYPE=application/x-git-receive-pack-request > QUERY_STRING=/repo.git/git-receive-pack > 'PATH_TRANSLATED=/Users/travis/t/trash > dir.t5562/.git/git-receive-pack' GIT_HTTP_EXPORT_ALL=TRUE > REQUEST_METHOD=POST > /Users/travis/build/szeder/git-cooking-topics-for-travis-ci/t/t5562/invoke-with-content-length.pl > push_body git http-backend > <...128 zero bytes...>fatal: the remote end hung up unexpectedly > > I couldn't reproduce it on my Linux box. The only reason for this I could imagine is some perl utility failure to feed the body to git http-backend. I could not reproduce it either, but if such things happen often again maybe should concider C helper instead. Though I'm afraid I easily can make more mistakes in it than perl interpreter authors. I'll make the other changes, and sofar just hope it would not happen again.