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 pablogsal
Recipients ericvw, pablogsal, pitrou, tzickel, vstinner
Date 2018-12-09.17:41:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1544377297.69.0.788709270274.issue35378@psf.upfronthosting.co.za>
In-reply-to
Content
I am playing with weakreferences inside the iterator objects, but this may not be enough. For example, take the code of ApplyResult.get:

def get(self, timeout=None):
    if self._pool() is None:
        raise RuntimeError("The pool is dead!") <--- new code
    self.wait(timeout)

It can be that the pool is alive when we check for it (self._pool() is None) but while the code is waiting with no timeout, the pool dies, effectively leaving the program deadlocked with no error.
History
Date User Action Args
2018-12-09 17:41:37pablogsalsetrecipients: + pablogsal, pitrou, vstinner, ericvw, tzickel
2018-12-09 17:41:37pablogsalsetmessageid: <1544377297.69.0.788709270274.issue35378@psf.upfronthosting.co.za>
2018-12-09 17:41:37pablogsallinkissue35378 messages
2018-12-09 17:41:37pablogsalcreate