[issue13517] readdir() in os.listdir not threadsafe on OSX 10.6.8

Thouis (Ray) Jones report at bugs.python.org
Fri Dec 2 12:53:27 CET 2011


Thouis (Ray) Jones <thouis at gmail.com> added the comment:

Further testing indicates the problem is in the filesystem itself (either the server or client, but not in python).

Serializing the loops calling readdir / readdir_r fixes the problem on my system, but using either function in a large number of parallel threads causes some directory entries to be missed (usually 2 entries in a row, oddly enough).  I was also able to cause 'find' to fail in the same way by placing the filesystem under sufficient stress, which I hadn't managed to do before (leading me to trust the filesystem more than I should have).

I apologize for the noise.  I've closed this bug report.

----------
status: open -> closed

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


More information about the Python-bugs-list mailing list