[Python-Dev] Segfault

Neal Norwitz nnorwitz at gmail.com
Thu Aug 23 06:32:11 CEST 2007


On 8/22/07, Hrvoje Nikšić <hrvoje.niksic at avl.com> wrote:
> On Tue, 2007-08-21 at 09:14 -0700, Neal Norwitz wrote:
> > The patch is insufficient to prevent all types of crashes that occur
> > when accessing a file from 2 threads (closing in one and doing
> > whatever in another).
>
> You are right.  I wouldn't go so far to say the file object
> thread-unsafe, but it certainly has lurking bugs with calling close
> while other threads are running.  BTW your mail doesn't seem to contain
> the actual patch.

Sorry about that.  I thought something was up when gmail didn't
automatically upload it while I was writing the message.  It looks
like it took this time.  (The attached patch isn't complete, but
catches most cases.)

n
-------------- next part --------------
A non-text attachment was scrubbed...
Name: file.patch
Type: text/x-patch
Size: 7810 bytes
Desc: not available
Url : http://mail.python.org/pipermail/python-dev/attachments/20070822/88afac31/attachment-0001.bin 


More information about the Python-Dev mailing list