From issues-reply at bitbucket.org Mon Sep 3 18:10:17 2012 From: issues-reply at bitbucket.org (=?utf-8?q?Walter_D=C3=B6rwald?=) Date: Mon, 03 Sep 2012 16:10:17 -0000 Subject: [execnet-dev] [hpk42/execnet] Threading exception on Python 3.2 (issue #9) Message-ID: <55c1a77f957ea0a7277af3454b73972d@bitbucket.org> --- you can reply above this line --- New issue 9: Threading exception on Python 3.2 https://bitbucket.org/hpk42/execnet/issue/9/threading-exception-on-python-32 Walter D?rwald: I am using the following test script: {{{ #!python import datetime import execnet i = 0 while True: print(datetime.datetime.now(), i) group = execnet.Group() gw = group.makegateway("ssh=user at host") ch = gw.remote_exec("import time ; time.sleep(2.0)") group.terminate(timeout=1.0) i += 1 }}} After about 250 runs of the loop body I get the following output: {{{ 2012-09-03 18:04:10.822562 253 2012-09-03 18:04:11.205508 254 Traceback (most recent call last): File "/var/home/walter/.local/lib/python3.2/site-packages/execnet-1.1-py3.2.egg/execnet/threadpool.py", line 130, in dispatch thread, _ = self._ready.popitem() KeyError: 'popitem(): dictionary is empty' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "gurk.py", line 10, in group.terminate(timeout=1.0) File "/var/home/walter/.local/lib/python3.2/site-packages/execnet-1.1-py3.2.egg/execnet/multi.py", line 168, in terminate for gw in self._gateways_to_join]) File "/var/home/walter/.local/lib/python3.2/site-packages/execnet-1.1-py3.2.egg/execnet/multi.py", line 251, in safe_terminate reply = workerpool.dispatch(termkill, termfunc, killfunc) File "/var/home/walter/.local/lib/python3.2/site-packages/execnet-1.1-py3.2.egg/execnet/threadpool.py", line 135, in dispatch thread = self._newthread() File "/var/home/walter/.local/lib/python3.2/site-packages/execnet-1.1-py3.2.egg/execnet/threadpool.py", line 141, in _newthread thread.start() File "/var/home/walter/.local/lib/python3.2/threading.py", line 683, in start _start_new_thread(self._bootstrap, ()) _thread.error: can't start new thread }}} -- This is an issue notification from bitbucket.org. You are receiving this either because you are the owner of the issue, or you are following the issue.