[issue32725] Instance of _multiprocessing.PipeConnection-subtype crash on deletion

Irit Katriel report at bugs.python.org
Wed Sep 2 18:50:10 EDT 2020


Irit Katriel <iritkatriel at yahoo.com> added the comment:

I was able to reproduce the crash in python 2.7, but in Python 3.10 (after I changed to import PipeConnection from multiprocessing.connection instead of _multiprocessing), it doesn't crash but raises an exception that makes sense when the handle is 0:

Running Release|Win32 interpreter...
Exception ignored in: <function _ConnectionBase.__del__ at 0x0228CC40>
Traceback (most recent call last):
  File "C:\Users\User\src\cpython\lib\multiprocessing\connection.py", line 137, in __del__
    self._close()
  File "C:\Users\User\src\cpython\lib\multiprocessing\connection.py", line 282, in _close
    _CloseHandle(self._handle)
OSError: [WinError 6] The handle is invalid

----------
nosy: +iritkatriel

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32725>
_______________________________________


More information about the Python-bugs-list mailing list