[issue14308] Exception AttributeError: AttributeError("'_DummyThread' object has no attribute '_Thread__block'", ) in ignored

2012-03-14 Thread Dustin Kirkland

New submission from Dustin Kirkland :

My Apache2 logs are filled with the following error kicked out by my python 
wsgi script:

[Wed Mar 14 18:16:38 2012] [error] Exception AttributeError: 
AttributeError("'_DummyThread' object has no attribute '_Thread__block'",) in 
 ignored

I was able to silence these with a simple conditional in 
/usr/lib/python2.7/threading.pyc:

-del self._Thread__block
+if hasattr(self, '_Thread__block'):
+del self._Thread__block

Full patch attached.

--
files: thread.py.patch
keywords: patch
messages: 155818
nosy: Dustin.Kirkland
priority: normal
severity: normal
status: open
title: Exception AttributeError: AttributeError("'_DummyThread' object has no 
attribute '_Thread__block'",) in  ignored
type: crash
versions: Python 2.7
Added file: http://bugs.python.org/file24852/thread.py.patch

___
Python tracker 
<http://bugs.python.org/issue14308>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-03-15 Thread Dustin Kirkland

Dustin Kirkland  added the comment:

/usr/lib/python2.7/threading.pyc is stock from my distribution, Ubuntu 12.04 
LTS, which has python-2.7.3~rc1-1ubuntu2.

I did manually apply the patch I've attached here to 
/usr/lib/python2.7/threading.py, and it *seemed* to silence those errors.

However, on checking my logs again this morning, I have a few hundred more of 
the same error, so that was not effective.

First time contributor here...what would be the proper way to test this?

Thanks for your patience.

--

___
Python tracker 
<http://bugs.python.org/issue14308>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-03-21 Thread Dustin Kirkland

Dustin Kirkland  added the comment:

Okay, update...

I did rebuild all of Python from source (actually, I applied it to the Ubuntu 
python2.7 package, rebuilt that locally, and then upgraded to the new python2.7 
deb's.  I could see my change was applied /usr/lib/python2.7/threading.py, and 
I can safely assume that it landed in the pyc as well.

I restarted Apache2 to reload my wsgi script.  But unfortunately, I get the 
same error in /var/log/apache/error.log:

[Wed Mar 21 12:52:36 2012] [error] Exception AttributeError: 
AttributeError("'_DummyThread' object has no attribute '_Thread__block'"
,) in  ignored  
 

So please consider my patch as wrong/bad/insufficient.

Issue is still open, though.  Thanks.

--

___
Python tracker 
<http://bugs.python.org/issue14308>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com