Bad file descriptor in hook.pyo
Created originally on Bitbucket by Gwaptiva (Jaap Sperling)
Installed TortoiseHg 2.5.1, running hg serve from the command line, the web server crashes once or twice daily. It started about a week ago when we were running an older version (2.3 something), it seems after a bunch of Windows updates. So upgraded to version 2.5.1 but behaviour continues. Before that the server happily run for weeks or months on end.
OS is Windows 2008 R2,
Error from log
#!python
192.168.1.97 - - [16/Nov/2012 21:49:40]
Exception happened during processing request '/scalpel?cmd=listkeys':
Traceback (most recent call last):
File "mercurial\hgweb\server.pyo", line 77, in do_POST
File "mercurial\hgweb\server.pyo", line 70, in do_write
File "mercurial\hgweb\server.pyo", line 137, in do_hgweb
File "mercurial\hgweb\hgwebdir_mod.pyo", line 147, in __call__
File "mercurial\hgweb\hgwebdir_mod.pyo", line 205, in run_wsgi
File "mercurial\hgweb\hgweb_mod.pyo", line 128, in run_wsgi
File "mercurial\hgweb\protocol.pyo", line 76, in call
File "mercurial\wireproto.pyo", line 351, in dispatch
File "mercurial\wireproto.pyo", line 472, in listkeys
File "mercurial\localrepo.pyo", line 2571, in listkeys
File "mercurial\localrepo.pyo", line 385, in hook
File "mercurial\hook.pyo", line 154, in hook
OSError: [Errno 9] Bad file descriptor
Info from Windows
Problem signature:
Problem Event Name: BEX64
Application Name: hg.exe
Application Version: 2.5.1.0
Application Timestamp: 4f3f0f36
Fault Module Name: MSVCR90.dll
Fault Module Version: 9.0.30729.1
Fault Module Timestamp: 488ef624
Exception Offset: 0000000000054fc0
Exception Code: c0000417
Exception Data: 0000000000000000
OS Version: 6.1.7601.2.1.0.272.7
Locale ID: 1031
Additional Information 1: 0fda
Additional Information 2: 0fdabc4da048e07035edf55e1899d577
Additional Information 3: fe33
Additional Information 4: fe33bd1312daad0644202475b0b30c79