[issue21149] logging._removeHandlerRef is not threadsafe during interpreter shutdown

Yilei Yang report at bugs.python.org
Fri Nov 10 19:17:25 EST 2017


Yilei Yang <yileiyang9 at gmail.com> added the comment:

Here is a minimal example:

main.py:
    from pkg_a import lib_a
pkg_a/__init__.py
pkg_a/lib_a.py
    import logging
    import sys
    import pkg_a  # This is important
    handler = logging.StreamHandler(sys.stderr)

It does not happen in Python 3 though (3.5.3 at least).

----------
nosy: +yileiyang

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue21149>
_______________________________________


More information about the Python-bugs-list mailing list