GNU bug report logs -
#33213
python-3/fixed and python-minimal test_socket.py
Previous Next
Reported by: Nam Nguyen <namn <at> berkeley.edu>
Date: Wed, 31 Oct 2018 05:25:02 UTC
Severity: normal
Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 33213 in the body.
You can then email your comments to 33213 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#33213
; Package
guix
.
(Wed, 31 Oct 2018 05:25:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Nam Nguyen <namn <at> berkeley.edu>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Wed, 31 Oct 2018 05:25:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi,
python has a memory leak in the test for test_socket.py, and it was
fixed in commit 90aeaee861845142843a0f988fa4ff016c723cdb.
https://git.savannah.gnu.org/cgit/guix.git/commit/?id=90aeaee861845142843a0f988fa4ff016c723cdb
More information from IRC:
----8<------------------------------------------------------------
<mbakke> There is a bug in Python 3 which causes the test suite to run
out of memory on recent kernels:
https://bugs.python.org/issue34587
<mbakke> Unfortunately the only workaround I can think of is removing
"/tmp/guix-build-python-3.6.5.drv-0/Lib/test/test_socket.py" some
time during the build (but before the check phase).
----8<------------------------------------------------------------
However, python-minimal still runs test_socket, causing a memory
leak. Is it possible to change python-minimal so it uses python-3/fixed?
I was able to successfully build python-minimal by appending the fix to
python-minimal, as below. I do not know how (replacement python-3/fixed)
interacts with python-minimal.
----8<------------------------------------------------------------
(define-public python-minimal
(package/inherit python
(name "python-minimal")
(outputs '("out"))
;; Build fails due to missing ctypes without libffi.
;; OpenSSL is a mandatory dependency of Python 3.x, for urllib;
;; zlib is required by 'zipimport', used by pip.
(inputs `(("libffi" ,libffi)
("openssl" ,openssl)
("zlib" ,zlib)))
(arguments
(substitute-keyword-arguments (package-arguments python-3)
((#:phases phases)
`(modify-phases ,phases
(add-after 'unpack 'delete-broken-test
(lambda _
;; Delete test which fails on recent kernels:
;; <https://bugs.python.org/issue34587>.
(delete-file "Lib/test/test_socket.py")
#t))))))))
----8<------------------------------------------------------------
Reply sent
to
Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
:
You have taken responsibility.
(Wed, 13 Jan 2021 15:39:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Nam Nguyen <namn <at> berkeley.edu>
:
bug acknowledged by developer.
(Wed, 13 Jan 2021 15:39:01 GMT)
Full text and
rfc822 format available.
Message #10 received at 33213-done <at> debbugs.gnu.org (full text, mbox):
Hello,
Nam Nguyen <namn <at> berkeley.edu> writes:
> Hi,
>
> python has a memory leak in the test for test_socket.py, and it was
> fixed in commit 90aeaee861845142843a0f988fa4ff016c723cdb.
>
> https://git.savannah.gnu.org/cgit/guix.git/commit/?id=90aeaee861845142843a0f988fa4ff016c723cdb
>
> More information from IRC:
> ----8<------------------------------------------------------------
> <mbakke> There is a bug in Python 3 which causes the test suite to run
> out of memory on recent kernels:
> https://bugs.python.org/issue34587
> <mbakke> Unfortunately the only workaround I can think of is removing
> "/tmp/guix-build-python-3.6.5.drv-0/Lib/test/test_socket.py" some
> time during the build (but before the check phase).
This problem was supposed to be fixed upstream [0], but I tried and it
still hangs. Oh well.
At any rate, the test is disabled in Guix.
Closing,
Thanks for the report!
Maxim
[0] https://bugs.python.org/issue34587
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 11 Feb 2021 12:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 3 years and 68 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.