Created attachment 400287 [details] demo program from upstream Description of problem: If logging.config.fileConfig() is called after logging handlers already exist, a KeyError is thrown in the atexit call to logging.shutdown(). Error in atexit._run_exitfuncs: Traceback (most recent call last): File "/usr/lib64/python2.4/atexit.py", line 24, in _run_exitfuncs func(*targs, **kargs) File "/usr/lib64/python2.4/logging/__init__.py", line 1333, in shutdown h.close() File "/usr/lib64/python2.4/logging/__init__.py", line 674, in close del _handlers[self] KeyError: <logging.StreamHandler instance at 0x2b5406327878> Attached is a demo program and a patch from upstream Python bz 1534765 to fix the issue. Version-Release number of selected component (if applicable): python-2.4.3-27.el5 How reproducible: every time Steps to Reproduce: 1. python demo.py Actual results: KeyError: <logging.StreamHandler instance at 0x2b5406327878> Expected results: no errors Additional info: http://bugs.python.org/issue1534765
Created attachment 400289 [details] patch for logging/config.py
The same bug appears with consoleHandler in my case.
This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unfortunately unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate and relevant, in the next release of Red Hat Enterprise Linux.
it didn't make it for 5.4 as stated, but it's not there either for 5.5. Could it be fixed for 5.6? reported also by a CentOS user. Thanks
http://bugs.centos.org/view.php?id=4678 (I could not add it to the external tracker entry)
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux release for currently deployed products. This request is not yet committed for inclusion in a release.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2013-0045.html