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 Thorney
Recipients Thorney, bobbyi, gdb, jnoller, mattheww
Date 2011-01-18.23:23:07
SpamBayes Score 9.808282e-11
Marked as misclassified No
Message-id <1295393003.13.0.986995634168.issue4106@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2011-01-18 23:23:23Thorneysetrecipients: + Thorney, mattheww, jnoller, bobbyi, gdb
2011-01-18 23:23:23Thorneysetmessageid: <1295393003.13.0.986995634168.issue4106@psf.upfronthosting.co.za>
2011-01-18 23:23:07Thorneylinkissue4106 messages
2011-01-18 23:23:07Thorneycreate