Bug#986527: Patches for flaky build and cython unavailability

Ahzo ahzo at tutanota.com
Wed Aug 4 23:41:12 BST 2021


Aug 3, 2021, 11:12 by thansen at debian.org:

> Thanks a lot for the patches Ahzo. Especially fixing the file handle leak should help a lot.
>

Actually that patch was rather a workaround than a fix.

The real cause of the "Too many open files" issue is a behavior change of the multiprocessing.Process class in python3.
It now opens a pipe internally, which it did not do in python2.

The solution is to call the close() method of multiprocessing.Process to close the internal pipe.
Attached u2-close-the-internal-pipe-of-multiprocessing.Process.patch does just that.
However, this method was only added in python 3.7, so attempting to use it fails in earlier versions of python3 (and also in python2).

Regards,
Ahzo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: u2-close-the-internal-pipe-of-multiprocessing.Process.patch
Type: text/x-patch
Size: 2418 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20210805/f37b51ef/attachment.bin>


More information about the debian-science-maintainers mailing list