[New-bugs-announce] [issue40402] multiprocessing/connection.py broken handle

Maxi report at bugs.python.org
Sun Apr 26 22:31:49 EDT 2020


New submission from Maxi <maxicooper at protonmail.com>:

## Sorry if this is not properly created, my first time here ##

I'm experiencing random Exceptions originating in multiprocessing/connection.py:368 where the handle seems to be broken:

Apr 25 19:39:44 app python[26282]:   File "/usr/lib/python3.5/multiprocessing/managers.py", line 716, in _callmethod
Apr 25 19:39:44 app python[26282]:     conn.send((self._id, methodname, args, kwds))
Apr 25 19:39:44 app python[26282]:   File "/usr/lib/python3.5/multiprocessing/connection.py", line 206, in send
Apr 25 19:39:44 app python[26282]:     self._send_bytes(ForkingPickler.dumps(obj))
Apr 25 19:39:44 app python[26282]:   File "/usr/lib/python3.5/multiprocessing/connection.py", line 404, in _send_bytes
Apr 25 19:39:44 app python[26282]:     self._send(header + buf)
Apr 25 19:39:44 app python[26282]:   File "/usr/lib/python3.5/multiprocessing/connection.py", line 368, in _send
Apr 25 19:39:44 app python[26282]:     n = write(self._handle, buf)
Apr 25 19:39:44 app python[26282]: TypeError: an integer is required (got type NoneType)

Not sure if there is something wrong at OS level, but I think a self._check_closed() before that line would help.

----------
messages: 367355
nosy: maxicooper
priority: normal
severity: normal
status: open
title: multiprocessing/connection.py broken handle
type: crash
versions: Python 3.5

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


More information about the New-bugs-announce mailing list