[issue39198] Lock may not be released in Logger.isEnabledFor

2020-01-02 Thread Derek Brown


Change by Derek Brown :


--
keywords: +patch
pull_requests: +17236
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/17689

___
Python tracker 
<https://bugs.python.org/issue39198>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39198] Lock may not be released in Logger.isEnabledFor

2020-01-02 Thread Derek Brown


New submission from Derek Brown :

If an exception were to be thrown in a particular block of code (say, by 
asyncio timeouts or stopit) within the `isEnabledFor` function of `logging`, 
the `logging` global lock may not be released appropriately, resulting in 
deadlock.

--
components: Library (Lib)
messages: 359219
nosy: derektbrown
priority: normal
severity: normal
status: open
title: Lock may not be released in Logger.isEnabledFor
type: crash
versions: Python 3.6, Python 3.7

___
Python tracker 
<https://bugs.python.org/issue39198>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39198] Lock may not be released in Logger.isEnabledFor

2020-01-02 Thread Derek Brown


Derek Brown  added the comment:

PR is here: https://github.com/python/cpython/pull/17689

--

___
Python tracker 
<https://bugs.python.org/issue39198>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com