gitifyhg icon indicating copy to clipboard operation
gitifyhg copied to clipboard

close failed in file object destructor

Open PaulPrice opened this issue 11 years ago • 3 comments

A strange error is appended to the usual clone output. No further information is available using DEBUG_GITIFYHG. Might it be related to reopening stdout unbuffered?

pprice@tiger3:~/hsc $ git clone gitifyhg::ssh://mitaka//ana/hgrepo/hscPipe
Cloning into 'hscPipe'...
progress revision 99 'master' (100/522)
progress revision 199 'master' (200/522)
progress revision 299 'master' (300/522)
progress revision 399 'master' (400/522)
progress revision 499 'master' (500/522)
close failed in file object destructor:
Error in sys.excepthook:

Original exception was:

PaulPrice avatar Apr 18 '13 21:04 PaulPrice

It's only on one system, so far as I can tell. I've tried installing a SIGPIPE handler, exception handlers and a sys.excepthook, and none catch the problem. Stumped.

PaulPrice avatar Apr 18 '13 23:04 PaulPrice

P.S. It's just a nuisance: the repo is successfully cloned.

PaulPrice avatar Apr 18 '13 23:04 PaulPrice

I thought I had fixed this error a long time ago. I believe it has something to do with gitifyhg trying to send data into the git pipe after git has closed the pipe. It must be some kind of race condition, but as you say, it seems to be benign.

dusty-phillips avatar Apr 30 '13 21:04 dusty-phillips