This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients mark.dickinson, pitrou, ronaldoussoren
Date 2010-08-01.16:40:04
SpamBayes Score 0.050173234
Marked as misclassified No
Message-id <1280680806.67.0.551262660959.issue9448@psf.upfronthosting.co.za>
In-reply-to
Content
Can you try the following patch:

diff -r 962e1a7a40fd Modules/_io/bufferedio.c
--- a/Modules/_io/bufferedio.c	Sun Aug 01 17:30:56 2010 +0200
+++ b/Modules/_io/bufferedio.c	Sun Aug 01 18:39:39 2010 +0200
@@ -636,6 +636,8 @@ _buffered_init(buffered *self)
         return -1;
     }
 #ifdef WITH_THREAD
+    if (self->lock)
+        PyThread_free_lock(self->lock);
     self->lock = PyThread_allocate_lock();
     if (self->lock == NULL) {
         PyErr_SetString(PyExc_RuntimeError, "can't allocate read lock");
History
Date User Action Args
2010-08-01 16:40:06pitrousetrecipients: + pitrou, ronaldoussoren, mark.dickinson
2010-08-01 16:40:06pitrousetmessageid: <1280680806.67.0.551262660959.issue9448@psf.upfronthosting.co.za>
2010-08-01 16:40:04pitroulinkissue9448 messages
2010-08-01 16:40:04pitroucreate