-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
Increase Code Coverage for multiprocessing.shared_memory #82199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Increase Code coverage for multiprocessing.shared_memory.SharedMemory Class |
Can anyone please review my pull request. No Reviewer has been assigned yet to it. And I don't have permissions to request a review. |
PR15552 introduced a regression in FreeBSD buildbots: https://buildbot.python.org/all/#/builders/168/builds/1417 Could you take a look? |
Initial review of the test failure suggests a likely flaw in the mechanism used by the resource tracker. I will continue investigating more tomorrow. |
This is the failure for reference: ====================================================================== Traceback (most recent call last):
File "/usr/home/buildbot/python/3.x.koobs-freebsd-current/build/Lib/test/_test_multiprocessing.py", line 3737, in test_shared_memory_basics
shm1 = shared_memory.SharedMemory(create=True, size=1)
File "/usr/home/buildbot/python/3.x.koobs-freebsd-current/build/Lib/multiprocessing/shared_memory.py", line 89, in __init__
self._fd = _posixshmem.shm_open(
OSError: [Errno 22] Invalid argument: 'test01_fn' |
Correction, is PR 15662 the one that introduced the recession (the one in this issue) not the previous one I linked. Apologies for that. |
Hi I have opened another PR: #15821 FreeBSD requires a leading slash in shared memory names. That's why it was throwing the below error: ====================================================================== Traceback (most recent call last):
File "/usr/home/buildbot/python/3.x.koobs-freebsd-current/build/Lib/test/_test_multiprocessing.py", line 3737, in test_shared_memory_basics
shm1 = shared_memory.SharedMemory(create=True, size=1)
File "/usr/home/buildbot/python/3.x.koobs-freebsd-current/build/Lib/multiprocessing/shared_memory.py", line 89, in __init__
self._fd = _posixshmem.shm_open(
OSError: [Errno 22] Invalid argument: 'test01_fn' test01_fn doesn't contain a leading slash that's why it is an invalid argument. |
Also, I haven't made a NEWS entry since it's just a short bug fix |
Closing this, as all the necessary PRs have been merged. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: