[issue40402] multiprocessing/connection.py broken handle

2020-04-27 Thread Maxi

Maxi  added the comment:

Hi Rémi. This is a production environment and can't reproduce it in the dev 
server (probably because of the lack of volume).

I did checked that the code is the same up to Python 3.8, but can't confirm an 
actual case until we upgrade in prod.

‐‐‐ Original Message ‐‐‐
On Monday, 27 de April de 2020 6:01, Rémi Lapeyre  
wrote:

> Rémi Lapeyre remi.lape...@henki.fr added the comment:
>
> Hi Maxi, Python 3.5 now only accept security fixes. Can you reproduce this 
> issue with recent releases and post an example here?
>
> --
>
> nosy: +remi.lapeyre
> type: crash -> behavior
>
> Python tracker rep...@bugs.python.org
> https://bugs.python.org/issue40402

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40402] multiprocessing/connection.py broken handle

2020-04-27 Thread Rémi Lapeyre

Rémi Lapeyre  added the comment:

Hi Maxi, Python 3.5 now only accept security fixes. Can you reproduce this 
issue with recent releases and post an example here?

--
nosy: +remi.lapeyre
type: crash -> behavior

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40402] multiprocessing/connection.py broken handle

2020-04-26 Thread Maxi


New submission from Maxi :

## 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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com