_DummyThread' object has no attribute '_Thread__block

Bug #1077153 reported by Mark Gius
28
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Python
Fix Released
Unknown
python2.7 (Ubuntu)
Fix Released
Undecided
Unassigned
Precise
Won't Fix
Medium
Unassigned

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

Revision history for this message
Mark Gius (markgius) wrote :

The affects python2.7 2.7.3-0ubuntu3.1, as well as the current python release in debian testing (2.7.3~rc2-2.1)

Revision history for this message
Matthias Klose (doko) wrote :

fixed in quantal and raring, should be updated for precise

Changed in python2.7 (Ubuntu):
status: New → Fix Released
Changed in python2.7 (Ubuntu Precise):
status: New → Triaged
Changed in python:
status: Unknown → Fix Released
Revision history for this message
Milo Casagrande (milo) wrote :

Hi,

has this been fixed and released also for precise?
I took a look at the quantal and raring packages, but couldn't find the patch of the upstream bug in there either.

We are deploying a Linaro Python based web-app, and we are seeing that error quite often.

summary: - Backport request: http://bugs.python.org/issue14308
+ _DummyThread' object has no attribute '_Thread__block
Changed in python2.7 (Ubuntu Precise):
importance: Undecided → Medium
milestone: none → ubuntu-12.04.3
description: updated
Revision history for this message
Steve Langasek (vorlon) wrote :

The Precise Pangolin has reached end of life, so this bug will not be fixed for that release

Changed in python2.7 (Ubuntu Precise):
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.