[issue12456] Hangs in concurrent.futures

2011-07-03 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue12456] Hangs in concurrent.futures

2011-07-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset ce52310f61a0 by Antoine Pitrou in branch 'default': Followup to 51c1f2cedb96 (and issue #12456): http://hg.python.org/cpython/rev/ce52310f61a0 -- ___ Python tracker _

[issue12456] Hangs in concurrent.futures

2011-07-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, qsize() can raise NotImplementedError on OS X, which explains quite a bit: Exception in thread Thread-2: Traceback (most recent call last): File "/Users/buildbot/buildarea/custom.parc-snowleopard-1/build/Lib/threading.py", line 737, in _bootstrap_inner

[issue12456] Hangs in concurrent.futures

2011-07-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Looks like I broke the OS X buildbots: http://www.python.org/dev/buildbot/all/builders/AMD64%20Snow%20Leopard%202%203.x/builds/609/steps/test/logs/stdio -- status: closed -> open ___ Python tracker

[issue12456] Hangs in concurrent.futures

2011-07-02 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue12456] Hangs in concurrent.futures

2011-07-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 51c1f2cedb96 by Antoine Pitrou in branch 'default': Issue #12456: fix a possible hang on shutdown of a concurrent.futures.ProcessPoolExecutor. http://hg.python.org/cpython/rev/51c1f2cedb96 -- nosy: +python-dev

[issue12456] Hangs in concurrent.futures

2011-07-01 Thread Ross Lagerwall
Ross Lagerwall added the comment: Yes, the patch does appear to fix the issue. Thanks -- ___ Python tracker ___ ___ Python-bugs-list

[issue12456] Hangs in concurrent.futures

2011-07-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: This patch should fix the issue. Can you confirm? -- keywords: +patch stage: -> patch review Added file: http://bugs.python.org/file22539/cfshutdown.patch ___ Python tracker

[issue12456] Hangs in concurrent.futures

2011-06-30 Thread Ross Lagerwall
Ross Lagerwall added the comment: Further analysis seems to indicate that it is a race between the shutdown code and the processes finishing. This code hangs: """ executor = concurrent.futures.ProcessPoolExecutor(2) executor.map(is_prime, [1, 2]) executor.shutdown() """ while this doesn't: ""

[issue12456] Hangs in concurrent.futures

2011-06-30 Thread Ross Lagerwall
New submission from Ross Lagerwall : 6d6099f7fe89 introduced a regression. It causes the following code to hang fairly reliably for me: """ import concurrent.futures import math def is_prime(n): print(sqt(81)) < Note the type error! def main(): with concurrent.futures.ProcessPoolE