Message313407
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() |
|
Date |
User |
Action |
Args |
2018-03-07 23:03:24 | nirs | set | recipients:
+ nirs, twouters, brett.cannon, ncoghlan, vstinner, eric.snow, serhiy.storchaka, yselivanov |
2018-03-07 23:03:24 | nirs | set | messageid: <1520463804.4.0.467229070634.issue33021@psf.upfronthosting.co.za> |
2018-03-07 23:03:24 | nirs | link | issue33021 messages |
2018-03-07 23:03:24 | nirs | create | |
|