[issue41344] SharedMemory crash when size is 0
Terry J. Reedy
report at bugs.python.org
Sat Jul 25 00:28:17 EDT 2020
Terry J. Reedy <tjreedy at udel.edu> added the comment:
Python 3.10.0a0 Jul 23 2020, win32 (without patch)
>>> from multiprocessing import shared_memory
>>> shm_a = shared_memory.SharedMemory(create=True, size=0)
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
shm_a = shared_memory.SharedMemory(create=True, size=0)
File "f:\dev\3x\lib\multiprocessing\shared_memory.py", line 129, in __init__
h_map = _winapi.CreateFileMapping(
OSError: [WinError 87] The parameter is incorrect: 'wnsm_4ab39616'
After the patch, I get the value error.
----------
nosy: +terry.reedy
versions: +Python 3.10
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41344>
_______________________________________
More information about the Python-bugs-list
mailing list