[issue32220] multiprocessing: passing file descriptor using reduction breaks duplex pipes on darwin

2017-12-06 Thread Ronald Oussoren
Ronald Oussoren added the comment: I don't know if the issue has been fixed on macOS, and I'd be surprised if Ned would know this without testing. Anyways, I think it is worthwhile to perform the testing that Antoine mentioned on a recent version of macOS (I'd start on 10.13, than work backwa

[issue32220] multiprocessing: passing file descriptor using reduction breaks duplex pipes on darwin

2017-12-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le 06/12/2017 à 05:08, Nate a écrit : > > This is a hard case to test for, as timing matters. The duplex pipe doesn't > get confused/corrupted unless one process is sending/receiving a message over > the pipe at the same moment that another process is executi

[issue32220] multiprocessing: passing file descriptor using reduction breaks duplex pipes on darwin

2017-12-05 Thread Nate
Nate added the comment: According to https://developer.apple.com/library/content/qa/qa1541/_index.html some bugs were fixed in 10.5. Not sure if the original attempt to patch the problem was happening on < 10.5, or if this was still a problem in 10.5+. I can't for the life of me find it again

[issue32220] multiprocessing: passing file descriptor using reduction breaks duplex pipes on darwin

2017-12-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: See https://bugs.python.org/issue6560 for the original issue delineating the problems we had with fd passing on macOS. I don't know whether Apple finally fixed the underlying issue. If that was the case, I assume we might be seeing "unexpected successes" in

[issue32220] multiprocessing: passing file descriptor using reduction breaks duplex pipes on darwin

2017-12-05 Thread Antoine Pitrou
Change by Antoine Pitrou : -- nosy: +davin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue32220] multiprocessing: passing file descriptor using reduction breaks duplex pipes on darwin

2017-12-05 Thread Nate
New submission from Nate : In multiprocessing/reduction.py, there is a hack workaround in the sendfds() and recvfds() methods for darwin, as determined by the "ACKNOWLEDGE" constant. There is a reference to issue #14669 in the code related to why this was added in the first place. This bug exi