Bug in python?

Christoph Höger choeger at cs.tu-berlin.de
Wed Nov 25 12:50:04 UTC 2009


Hi,

while I was investigating an offlineimap bug, the following happened
quite often:

 File "/usr/lib64/python2.6/threading.py", line 497, in __bootstrap
    self.__bootstrap_inner()
  File "/usr/lib64/python2.6/threading.py", line 575, in
__bootstrap_inner
    self.__stop()
  File "/usr/lib64/python2.6/threading.py", line 586, in __stop
    self.__block.notify_all()
  File "/usr/lib64/python2.6/threading.py", line 289, in notifyAll
    self.notify(len(self.__waiters))
  File "/usr/lib64/python2.6/threading.py", line 277, in notify
    self._note("%s.notify(): no waiters", self)
  File "/usr/lib64/python2.6/threading.py", line 68, in _note
    current_thread().name, format)
  File "/usr/lib64/python2.6/threading.py", line 808, in currentThread
    return _DummyThread()
  File "/usr/lib64/python2.6/threading.py", line 788, in __init__
    self._Thread__started.set()
  File "/usr/lib64/python2.6/threading.py", line 378, in set
    self.__cond.notify_all()
  File "/usr/lib64/python2.6/threading.py", line 289, in notifyAll
    self.notify(len(self.__waiters))
  File "/usr/lib64/python2.6/threading.py", line 277, in notify
    self._note("%s.notify(): no waiters", self)
  File "/usr/lib64/python2.6/threading.py", line 68, in _note
    current_thread().name, format)
  File "/usr/lib64/python2.6/threading.py", line 808, in currentThread
    return _DummyThread()
  File "/usr/lib64/python2.6/threading.py", line 788, in __init__
    self._Thread__started.set()
  File "/usr/lib64/python2.6/threading.py", line 378, in set
    self.__cond.notify_all()
  File "/usr/lib64/python2.6/threading.py", line 289, in notifyAll
    self.notify(len(self.__waiters))
  File "/usr/lib64/python2.6/threading.py", line 277, in notify
    self._note("%s.notify(): no waiters", self)
  File "/usr/lib64/python2.6/threading.py", line 68, in _note
    current_thread().name, format)
  File "/usr/lib64/python2.6/threading.py", line 808, in currentThread
    return _DummyThread()
  File "/usr/lib64/python2.6/threading.py", line 788, in __init__
    self._Thread__started.set()
  File "/usr/lib64/python2.6/threading.py", line 378, in set
    self.__cond.notify_all()
  File "/usr/lib64/python2.6/threading.py", line 289, in notifyAll

....

Looks to me like calling _DummyThread() every time and then printing a
debug output is a bad idea, right?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20091125/40ebc4ef/attachment.sig>


More information about the fedora-devel-list mailing list