[issue28883] Python 3.5.2 crashers (from PyPy)

Armin Rigo report at bugs.python.org
Tue Dec 6 06:50:22 EST 2016


Armin Rigo added the comment:

os.scandir() returns an iterable object that should not be used
  from multiple threads.  Doing so can e.g. cause one thread to
  close the dirp while another thread is still using it.  This is
  likely to crash.  Similarly, the test for (!iterator->dirp) at
  the start of ScandirIterator_iternext() is only done once even
  if the following loop runs two or three times because of "." or
  ".." entries.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28883>
_______________________________________


More information about the Python-bugs-list mailing list