This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Aaron.Staley
Recipients Aaron.Staley
Date 2011-10-05.02:11:48
SpamBayes Score 0.0043976936
Marked as misclassified No
Message-id <1317780709.51.0.218213650028.issue13106@psf.upfronthosting.co.za>
In-reply-to
Content
The multiprocess/pool.py distributed with the Python 2.7.2 Windows Installer is different from the one distributed with the 64 bit windows installer or source tarball - and is buggy.

Specifically, see Pool._terminate_pool:


    def _terminate_pool(cls, taskqueue, inqueue, outqueue, pool,
                        worker_handler, task_handler, result_handler, cache):
        # this is guaranteed to only be called once
        debug('finalizing pool')

        worker_handler._state = TERMINATE
        task_handler._state = TERMINATE
        taskqueue.put(None)                 # THIS LINE MISSING!


Without that line, termination may deadlock during Pool._help_stuff_finish.  The consequence to the user is the interpreter not shutting down.
History
Date User Action Args
2011-10-05 02:11:49Aaron.Staleysetrecipients: + Aaron.Staley
2011-10-05 02:11:49Aaron.Staleysetmessageid: <1317780709.51.0.218213650028.issue13106@psf.upfronthosting.co.za>
2011-10-05 02:11:48Aaron.Staleylinkissue13106 messages
2011-10-05 02:11:48Aaron.Staleycreate