[issue4106] multiprocessing occasionally spits out exception during shutdown

Brian Thorne report at bugs.python.org
Wed Jan 19 00:23:23 CET 2011


Brian Thorne <hardbyte at gmail.com> added the comment:

With the example script attached I see the exception every time. On Ubuntu 10.10 with Python 2.6

Since the offending line in multiprocesing/queues.py (233) is a debug statement, just commenting it out seems to stop this exception.

Looking at the util file shows the logging functions to be all of the form:

    if _logger:
        _logger.log(...

Could it be possible that after the check the _logger global (or the debug function) is destroyed by the exit handler? Can we convince them to stick around until such a time that they cannot be called?

Adding a small delay before joining also seems to work, but is ugly. Why should another Process *have* to have a minimum amount of work to not throw an exception?

----------
nosy: +Thorney
versions: +Python 2.6 -Python 2.7
Added file: http://bugs.python.org/file20445/test_mult.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4106>
_______________________________________


More information about the Python-bugs-list mailing list