Closed
Description
Bug report
The other day I decided to give the MacOS Sonoma beta a go on my M1 MBP. test_mmap
is now consistently failing with a PermissionError
on main
and 3.12
branches.
A clear and concise description of the bug
I happened to have an old MacBook Air laying about which is still running MacOS Monterey. I verified that all tests pass there.
Here's the output from the failing test:
test_access_parameter (test.test_mmap.MmapTests.test_access_parameter) ... ERROR
======================================================================
ERROR: test_access_parameter (test.test_mmap.MmapTests.test_access_parameter)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/skip/src/python/cpython/Lib/test/test_mmap.py", line 258, in test_access_parameter
m = mmap.mmap(f.fileno(), mapsize, prot=prot)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 1] Operation not permitted
Your environment
- CPython versions tested on:
main
and3.12
branches - Operating system and architecture: MacBook Pro M1 Pro, MacOS Sonoma 14.0 beta 5
Linked PRs
- gh-107888: Fix test_mmap.test_access_parameter() on macOS 14 #109928
- [3.12] gh-107888: Fix test_mmap.test_access_parameter() on macOS 14 (GH-109928) #109929
- [3.11] gh-107888: Fix test_mmap.test_access_parameter() on macOS 14 (GH-109928) #109930
- gh-107888: Fix test_mmap PROT_EXEC comment #110125
- [3.11] gh-107888: Fix test_mmap PROT_EXEC comment (GH-110125) #110130
- [3.8] gh-107888: Fix test_mmap.test_access_parameter() on macOS 14 (GH-109928) #114183
- [3.9] gh-107888: Fix test_mmap.test_access_parameter() on macOS 14 (GH-109928) #114184
- [3.10] gh-107888: Fix test_mmap.test_access_parameter() on macOS 14 (GH-109928) #114185