[issue14308] '_DummyThread' object has no attribute '_Thread__block'

cooyeah report at bugs.python.org
Thu Apr 19 06:35:55 CEST 2012


cooyeah <cooyeah at gmail.com> added the comment:

I saw the similar problem on Ubuntu 12.04 with django development server with mediageneartor. As Dustin suggested, I don't think this is related to the "del _Thread__block" statement.

I hacked the __getattribute__ of DummyThread class

    def __getattribute__(self, name):
        if name == '_Thread__block':
            import traceback
            traceback.print_stack()
            raise AttributeError
        return Thread.__getattribute__(self, name)

And I got the following stacktrace:

  File "/tmp/ve/local/lib/python2.7/site-packages/mediagenerator/filters/coffeescript.py", line 54, in _compile
    shell=shell, universal_newlines=True)
  File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1143, in _execute_child
    self.pid = os.fork()
  File "/usr/lib/python2.7/threading.py", line 907, in _after_fork
    thread._Thread__stop()
  File "/usr/lib/python2.7/threading.py", line 608, in __stop
    self.__block.acquire()
  File "/usr/lib/python2.7/threading.py", line 827, in __getattribute__
    traceback.print_stack()

----------
nosy: +cooyeah

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


More information about the Python-bugs-list mailing list