You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
assignee=Noneclosed_at=<Date2019-05-18.12:38:22.883>created_at=<Date2019-03-19.16:38:01.480>labels= ['3.8', 'type-crash']
title='server process of shared_memory shuts down if KeyboardInterrupt'updated_at=<Date2019-05-18.12:38:22.883>user='https://github.com/pierreglaser'
When starting a SharedMemoryManager in an interactive session, any KeyboardInterrupt event will be transmitted to the (sub)process running the shared memory server, which causes the Manager to be unusable thereafter:
>>> from multiprocessing.managers import SharedMemoryManager
>>> smm = SharedMemoryManager()
>>> smm.start()
>>> start typing something wrong
KeyboardInterrupt
>>> sl = smm.ShareableList(range(10))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/pierreglaser/repos/cpython/Lib/multiprocessing/managers.py", line 1342, in ShareableList
with self._Client(self._address, authkey=self._authkey) as conn:
File "/home/pierreglaser/repos/cpython/Lib/multiprocessing/connection.py", line 502, in Client
c = SocketClient(address)
File "/home/pierreglaser/repos/cpython/Lib/multiprocessing/connection.py", line 629, in SocketClient
s.connect(address)
FileNotFoundError: [Errno 2] No such file or directory
New changeset d0d64ad by Antoine Pitrou (Pierre Glaser) in branch 'master': bpo-36368: Ignore SIGINT in SharedMemoryManager servers. (GH-12483) d0d64ad
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: