You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee='https://github.com/vsajip'closed_at=<Date2005-03-13.09:59:26.000>created_at=<Date2005-03-07.03:28:50.000>labels= ['library']
title='fix for a deadlock in the logging module'updated_at=<Date2005-03-13.09:59:26.000>user='https://bugs.python.org/sprause'
there is a deadlock in the logging package, that can be
triggered with a custom class importer:
(1) create a custom class importer and put it in
sys.meta_path (this importer must log a message via the
logging package)
(2) raise an exception somewhere and log it
(3) when the formatter tries to format the exception,
it imports the traceback module (in the formatException
method)
(4) this import will be redirected to the above
installed class importer
(5) the class importer tries to log a message
(6) trying to acquire the lock for the new log message
in Handler.acquire results in a deadlock
the fix is to move the traceback import from the method
to the module, so it gets imported when no lock is
held. the attached patch does this
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: