[Bug 1119195] Re: _DummyThread' object has no attribute '_Thread__block
Milo Casagrande
milo.casagrande at gmail.com
Fri Feb 8 12:29:42 UTC 2013
** Description changed:
- Deploying a Python based web-app, in the output logs we are seeing a lot
- of messages like this:
+ [Impact]
- Exception AttributeError: AttributeError("'_DummyThread' object has no
- attribute '_Thread__block'",) in <module 'threading' from
- '/usr/lib/python2.7/threading.pyc'> ignored
+ Based on the test script available at the upstream issue link, the
+ exception is thrown in programs that use threads and os.fork() (like
+ could be the case with subprocess).
- There is already an upstream bug for this, that was fixed:
+ As reported upstream, the exception when a "dummy" thread is in the
+ threading module's active list after a fork().
- http://bugs.python.org/issue14308
+ [Test Case]
- Is there any way we can get that fix in also for Ubuntu 12.04?
- I was looking at the quantal and raring packages too, but that fix is not there either.
+ Run the following program, available in the upstream issue:
- Thanks.
+ http://bugs.python.org/file25511/bad-thread.py
+
+ to reproduce the problem.
+
+ [Regression Potential]
+
+ None seen at the moment.
+ Upstream patch contains also a test case to address this issue:
+
+ http://hg.python.org/cpython/rev/ab9d6c4907e7
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python2.7 in Ubuntu.
https://bugs.launchpad.net/bugs/1119195
Title:
_DummyThread' object has no attribute '_Thread__block
Status in Python:
Unknown
Status in “python2.7” package in Ubuntu:
Fix Released
Status in “python2.7” source package in Precise:
Triaged
Bug description:
[Impact]
Based on the test script available at the upstream issue link, the
exception is thrown in programs that use threads and os.fork() (like
could be the case with subprocess).
As reported upstream, the exception when a "dummy" thread is in the
threading module's active list after a fork().
[Test Case]
Run the following program, available in the upstream issue:
http://bugs.python.org/file25511/bad-thread.py
to reproduce the problem.
[Regression Potential]
None seen at the moment.
Upstream patch contains also a test case to address this issue:
http://hg.python.org/cpython/rev/ab9d6c4907e7
To manage notifications about this bug go to:
https://bugs.launchpad.net/python/+bug/1119195/+subscriptions
More information about the foundations-bugs
mailing list