{"action":"created","issue":{"url":"https://api.github.com/repos/benoitc/gunicorn/issues/381","labels_url":"https://api.github.com/repos/benoitc/gunicorn/issues/381/labels{/name}","comments_url":"https://api.github.com/repos/benoitc/gunicorn/issues/381/comments","events_url":"https://api.github.com/repos/benoitc/gunicorn/issues/381/events","html_url":"https://github.com/benoitc/gunicorn/issues/381","id":5788650,"number":381,"title":"OSError 9 in murder_workers in Gunicorn 0.12.2","user":{"login":"migurski","id":58730,"avatar_url":"https://avatars.githubusercontent.com/u/58730?v=3","gravatar_id":"","url":"https://api.github.com/users/migurski","html_url":"https://github.com/migurski","followers_url":"https://api.github.com/users/migurski/followers","following_url":"https://api.github.com/users/migurski/following{/other_user}","gists_url":"https://api.github.com/users/migurski/gists{/gist_id}","starred_url":"https://api.github.com/users/migurski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/migurski/subscriptions","organizations_url":"https://api.github.com/users/migurski/orgs","repos_url":"https://api.github.com/users/migurski/repos","events_url":"https://api.github.com/users/migurski/events{/privacy}","received_events_url":"https://api.github.com/users/migurski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2012-07-23T20:46:25Z","updated_at":"2015-03-26T23:31:25Z","closed_at":null,"body":"I see an OSError from this line periodically: https://github.com/benoitc/gunicorn/blob/fc300cc23c4c84a743c228202b64379d1621005e/gunicorn/arbiter.py#L379\n\nHere's the complete traceback:\n\n```\n2012-07-19 04:02:22 [16302] [INFO] Unhandled exception in main loop:\nTraceback (most recent call last):\n  File \"/usr/local/lib/python2.6/dist-packages/gunicorn-0.12.2-py2.6.egg/gunicorn/arbiter.py\", line 161, in run\n    self.murder_workers()\n  File \"/usr/local/lib/python2.6/dist-packages/gunicorn-0.12.2-py2.6.egg/gunicorn/arbiter.py\", line 379, in murder_workers\n    diff = time.time() - os.fstat(worker.tmp.fileno()).st_ctime\nOSError: [Errno 9] Bad file descriptor\n```\n\nI thought perhaps this might be a similar issue to #358 or #367 but it's not quite clear. Also, I see that the line has been modified in more recent versions of Gunicorn. Was it to fix this problem?"},"comment":{"url":"https://api.github.com/repos/benoitc/gunicorn/issues/comments/86753566","html_url":"https://github.com/benoitc/gunicorn/issues/381#issuecomment-86753566","issue_url":"https://api.github.com/repos/benoitc/gunicorn/issues/381","id":86753566,"user":{"login":"jfarrimo","id":1023038,"avatar_url":"https://avatars.githubusercontent.com/u/1023038?v=3","gravatar_id":"","url":"https://api.github.com/users/jfarrimo","html_url":"https://github.com/jfarrimo","followers_url":"https://api.github.com/users/jfarrimo/followers","following_url":"https://api.github.com/users/jfarrimo/following{/other_user}","gists_url":"https://api.github.com/users/jfarrimo/gists{/gist_id}","starred_url":"https://api.github.com/users/jfarrimo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfarrimo/subscriptions","organizations_url":"https://api.github.com/users/jfarrimo/orgs","repos_url":"https://api.github.com/users/jfarrimo/repos","events_url":"https://api.github.com/users/jfarrimo/events{/privacy}","received_events_url":"https://api.github.com/users/jfarrimo/received_events","type":"User","site_admin":false},"created_at":"2015-03-26T23:31:25Z","updated_at":"2015-03-26T23:31:25Z","body":"I am getting the error with gunicorn 19.3.0 (running on on ubuntu 12.04) sometimes when I issue a hup signal to it.\r\n\r\n[2015-03-26 22:21:28 +0000] [15450] [INFO] Unhandled exception in main loop:\r\nTraceback (most recent call last):\r\n  File \"/home/instaedu/.virtualenvs/instaedu/local/lib/python2.7/site-packages/gunicorn/arbiter.py\", line 180, in run\r\n    self.murder_workers()\r\n  File \"/home/instaedu/.virtualenvs/instaedu/local/lib/python2.7/site-packages/gunicorn/arbiter.py\", line 430, in murder_workers\r\n    if time.time() - worker.tmp.last_update() <= self.timeout:\r\n  File \"/home/instaedu/.virtualenvs/instaedu/local/lib/python2.7/site-packages/gunicorn/workers/workertmp.py\", line 50, in last_update\r\n    return os.fstat(self._tmp.fileno()).st_ctime\r\nOSError: [Errno 9] Bad file descriptor"}}