[New-bugs-announce] [issue31530] [2.7] Python 2.7 readahead feature of file objects is not thread safe

STINNER Victor report at bugs.python.org
Wed Sep 20 09:27:12 EDT 2017


New submission from STINNER Victor:

Reading from the same file object in different threads does crash Python 2.7. The readahead feature of Objects/fileobject.c is not thread safe.

Try attached script to reproduce the crash.

----------
components: Interpreter Core
files: readahead.py
messages: 302610
nosy: haypo
priority: normal
severity: normal
status: open
title: [2.7] Python 2.7 readahead feature of file objects is not thread safe
versions: Python 2.7
Added file: https://bugs.python.org/file47156/readahead.py

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31530>
_______________________________________


More information about the New-bugs-announce mailing list