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 nirs
Recipients brett.cannon, eric.snow, ncoghlan, nirs, serhiy.storchaka, twouters, vstinner, yselivanov
Date 2018-03-07.23:03:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1520463804.4.0.467229070634.issue33021@psf.upfronthosting.co.za>
In-reply-to
Content
If the file descriptor is on a non-responsive NFS server, calling
fstat() can block for long time, hanging all threads. Most of the fstat()
calls release the GIL around the call, but some calls seems to be
forgotten.

In python 3, the calls are handled now by _py_fstat(), releasing the GIL
internally, but some calls use _py_fstat_noraise() which does not release
the GIL. Most of the calls to _py_fstat_noraise() release the GIL around
the call, except these 2 calls, affecting users of:

- mmap.mmap()
- os.urandom()
- random.seed()

In python there are more fstat() calls to fix, affecting users of:

- imp.load_dynamic()
- imp.load_source()
- mmap.mmap()
- mmapobject.size()
- os.fdopen()
- os.urandom()
- random.seed()
History
Date User Action Args
2018-03-07 23:03:24nirssetrecipients: + nirs, twouters, brett.cannon, ncoghlan, vstinner, eric.snow, serhiy.storchaka, yselivanov
2018-03-07 23:03:24nirssetmessageid: <1520463804.4.0.467229070634.issue33021@psf.upfronthosting.co.za>
2018-03-07 23:03:24nirslinkissue33021 messages
2018-03-07 23:03:24nirscreate