{"action":"created","issue":{"url":"https://api.github.com/repos/tomMoral/loky/issues/82","repository_url":"https://api.github.com/repos/tomMoral/loky","labels_url":"https://api.github.com/repos/tomMoral/loky/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/tomMoral/loky/issues/82/comments","events_url":"https://api.github.com/repos/tomMoral/loky/issues/82/events","html_url":"https://github.com/tomMoral/loky/issues/82","id":247050336,"number":82,"title":"Random failure on test_wait_result","user":{"login":"ogrisel","id":89061,"avatar_url":"https://avatars0.githubusercontent.com/u/89061?v=4","gravatar_id":"","url":"https://api.github.com/users/ogrisel","html_url":"https://github.com/ogrisel","followers_url":"https://api.github.com/users/ogrisel/followers","following_url":"https://api.github.com/users/ogrisel/following{/other_user}","gists_url":"https://api.github.com/users/ogrisel/gists{/gist_id}","starred_url":"https://api.github.com/users/ogrisel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ogrisel/subscriptions","organizations_url":"https://api.github.com/users/ogrisel/orgs","repos_url":"https://api.github.com/users/ogrisel/repos","events_url":"https://api.github.com/users/ogrisel/events{/privacy}","received_events_url":"https://api.github.com/users/ogrisel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-08-01T12:20:18Z","updated_at":"2017-08-01T20:58:16Z","closed_at":null,"body":"Observed when running `tox -e py27` on linux:\r\n\r\n```\r\n=================================================================================== FAILURES ===================================================================================\r\n________________________________________________________________________ TestCondition.test_wait_result ________________________________________________________________________\r\n\r\nself = <tests.test_synchronize.TestCondition instance at 0x7f754456ea70>\r\n\r\n    @pytest.mark.skipif(sys.platform == \"win32\" and\r\n                        sys.version_info[:2] < (3, 3),\r\n                        reason=\"Condition.wait always returned None before 3.3\"\r\n                        \" and we do not overload win32 Condition\")\r\n    def test_wait_result(self):\r\n        if sys.platform != 'win32':\r\n            pid = os.getpid()\r\n        else:\r\n            pid = None\r\n    \r\n        c = loky_context.Condition()\r\n        with c:\r\n            assert not c.wait(0)\r\n            assert not c.wait(0.1)\r\n    \r\n            p = loky_context.Process(target=self._test_wait_result,\r\n                                     args=(c, pid))\r\n            p.start()\r\n    \r\n            assert c.wait(10)\r\n            if pid is not None:\r\n                with pytest.raises(KeyboardInterrupt):\r\n                    c.wait(10)\r\n>           p.join()\r\n\r\nc          = <Condition(<RLock(None, 0)>, 0)>\r\np          = <LokyProcess(LokyProcess-423, stopped)>\r\npid        = 20335\r\nself       = <tests.test_synchronize.TestCondition instance at 0x7f754456ea70>\r\n\r\ntests/test_synchronize.py:348: \r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \r\nloky/backend/synchronize.py:249: in __exit__\r\n    return self._lock.__exit__(*args)\r\nloky/backend/synchronize.py:108: in __exit__\r\n    return self._semlock.release()\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \r\n\r\nself = <loky.backend.semlock.SemLock object at 0x7f75490656d0>\r\n\r\n    def release(self):\r\n        if self.kind == RECURSIVE_MUTEX:\r\n            assert self._is_mine(), (\r\n>               \"attempt to release recursive lock not owned by thread\")\r\nE           AssertionError: attempt to release recursive lock not owned by thread\r\n\r\nself       = <loky.backend.semlock.SemLock object at 0x7f75490656d0>\r\n\r\nloky/backend/semlock.py:193: AssertionError\r\n----------------------------------------------------------------------------- Captured stderr call -----------------------------------------------------------------------------\r\n[DEBUG:MainProcess:MainThread] created semlock with handle 140141780742144 and name \"/loky-20335-L08GeF\"\r\n[DEBUG:MainProcess:MainThread] created semlock with handle 140141780738048 and name \"/loky-20335-CO5Aui\"\r\n[DEBUG:MainProcess:MainThread] created semlock with handle 140141780733952 and name \"/loky-20335-bGApZz\"\r\n[DEBUG:MainProcess:MainThread] created semlock with handle 140141780729856 and name \"/loky-20335-0LIgU2\"\r\n[DEBUG:MainProcess:MainThread] launch python with cmd:\r\n['/home/ogrisel/code/loky/.tox/py27/bin/python2.7', '-m', 'loky.backend.popen_loky_posix', '--name-process', 'LokyProcess-423', '--pipe', '19', '--semaphore', '12']\r\n[DEBUG:LokyProcess-423:MainThread] recreated blocker with handle 140141780742144 and name \"/loky-20335-L08GeF\"\r\n[DEBUG:LokyProcess-423:MainThread] recreated blocker with handle 140141780738048 and name \"/loky-20335-CO5Aui\"\r\n[DEBUG:LokyProcess-423:MainThread] recreated blocker with handle 140141780733952 and name \"/loky-20335-bGApZz\"\r\n[DEBUG:LokyProcess-423:MainThread] recreated blocker with handle 140141780729856 and name \"/loky-20335-0LIgU2\"\r\n[INFO:LokyProcess-423:MainThread] child process calling self.run()\r\n[INFO:LokyProcess-423:MainThread] process shutting down\r\n[DEBUG:LokyProcess-423:MainThread] running all \"atexit\" finalizers with priority >= 0\r\n[DEBUG:LokyProcess-423:MainThread] running the remaining \"atexit\" finalizers\r\n[INFO:LokyProcess-423:MainThread] process exiting with exitcode 0\r\n[INFO:LokyProcess-423:Dummy-1] process shutting down\r\n[DEBUG:LokyProcess-423:Dummy-1] running all \"atexit\" finalizers with priority >= 0\r\n[DEBUG:LokyProcess-423:Dummy-1] running the remaining \"atexit\" finalizers\r\n========================================================= 1 failed, 132 passed, 5 skipped, 1 xpassed in 67.89 seconds ==========================================================\r\nERROR: InvocationError: '/home/ogrisel/code/loky/.tox/py27/bin/py.test -lv --maxfail=2 --timeout=10'\r\n```"},"comment":{"url":"https://api.github.com/repos/tomMoral/loky/issues/comments/319494921","html_url":"https://github.com/tomMoral/loky/issues/82#issuecomment-319494921","issue_url":"https://api.github.com/repos/tomMoral/loky/issues/82","id":319494921,"user":{"login":"ogrisel","id":89061,"avatar_url":"https://avatars0.githubusercontent.com/u/89061?v=4","gravatar_id":"","url":"https://api.github.com/users/ogrisel","html_url":"https://github.com/ogrisel","followers_url":"https://api.github.com/users/ogrisel/followers","following_url":"https://api.github.com/users/ogrisel/following{/other_user}","gists_url":"https://api.github.com/users/ogrisel/gists{/gist_id}","starred_url":"https://api.github.com/users/ogrisel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ogrisel/subscriptions","organizations_url":"https://api.github.com/users/ogrisel/orgs","repos_url":"https://api.github.com/users/ogrisel/repos","events_url":"https://api.github.com/users/ogrisel/events{/privacy}","received_events_url":"https://api.github.com/users/ogrisel/received_events","type":"User","site_admin":false},"created_at":"2017-08-01T20:58:16Z","updated_at":"2017-08-01T20:58:16Z","body":"I mean report the ids and names of both threads: the one that owns the SemLock instead and the one trying to release it."}}
{"actor":{"display_login":"ogrisel"}}