[New-bugs-announce] [issue4188] Lib/threading.py causes infinite recursion when running as verbose

Guilherme Polo report at bugs.python.org
Thu Oct 23 22:28:23 CEST 2008


New submission from Guilherme Polo <ggpolo at gmail.com>:

Lib/threading.py gets into infinite recursion while testing (or using)
it with verbose set. This didn't happen before because Thread.__started
didn't use to be an Event, but now it is.

Typical situation:
_DummyThread calls _Thread__started.set, which calls
__started.__cond.notify_all(), which calls __cond.notify(). If there are
no waiters, it calls _Verbose._note, which calls currentThread, but if
there is no current thread _DummyThread is called, which calls
_Thread__started.set ...

----------
components: Library (Lib)
files: move_Thread__started.diff
keywords: patch
messages: 75149
nosy: gpolo
severity: normal
status: open
title: Lib/threading.py causes infinite recursion when running as verbose
versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1
Added file: http://bugs.python.org/file11869/move_Thread__started.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4188>
_______________________________________


More information about the New-bugs-announce mailing list