From unknown Sat Aug 09 09:38:10 2025 X-Loop: help-debbugs@gnu.org Subject: bug#33213: python-3/fixed and python-minimal test_socket.py Resent-From: Nam Nguyen Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 31 Oct 2018 05:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 33213 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 33213@debbugs.gnu.org Cc: mbakke@fastmail.com X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.154096349421360 (code B ref -1); Wed, 31 Oct 2018 05:25:02 +0000 Received: (at submit) by debbugs.gnu.org; 31 Oct 2018 05:24:54 +0000 Received: from localhost ([127.0.0.1]:56145 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gHizt-0005YR-Q9 for submit@debbugs.gnu.org; Wed, 31 Oct 2018 01:24:54 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40499) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gHizs-0005YF-Qx for submit@debbugs.gnu.org; Wed, 31 Oct 2018 01:24:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gHizm-000413-Ph for submit@debbugs.gnu.org; Wed, 31 Oct 2018 01:24:47 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:52094) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gHizm-00040u-MB for submit@debbugs.gnu.org; Wed, 31 Oct 2018 01:24:46 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50108) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHizl-0004F9-O4 for bug-guix@gnu.org; Wed, 31 Oct 2018 01:24:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gHizh-0003y7-Pn for bug-guix@gnu.org; Wed, 31 Oct 2018 01:24:45 -0400 Received: from mail-ed1-f51.google.com ([209.85.208.51]:45773) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gHizh-0003xV-IJ for bug-guix@gnu.org; Wed, 31 Oct 2018 01:24:41 -0400 Received: by mail-ed1-f51.google.com with SMTP id t10-v6so12510129eds.12 for ; Tue, 30 Oct 2018 22:24:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=ya94WSQ9BFlyN9U04Oax5b/QvXKd953qu8+zUjdAHEo=; b=P/N6iHDY1A6RJKwRswf5bSy5vaZZFg4wgUxFUgut4+xN0qEXF68OF8js2zTXe2ntXV xZn/FYzIWOL3rTAfhSEZEnNVvO6YlaEZ/fzw1rr5A8dM+NQdnIvYl5Erp+7MtQtHW5Kr fvyAyItOjtzJthgWBmvnULDMwphIe7qnqdSEmg1XbskNKdvSu55aTq1d/02P3CMT9vQ0 5F9EIibk6XFAB57z7xeYRrddRuuwWF7pbfmz8nM/G7BGNGRyNLxC2MEugo4MHlL90O0N E8E3xBpFApISxUqd4pWxzunqOqH3+pd3roMBiL+9eAXdE0IJ069krMvgwFiJQI7Uil0V Myzw== X-Gm-Message-State: AGRZ1gLuJAzFizUSOXnUKWQBugKjqH5p3+0Ja7bmMWiE/MROjzPtp6Pi 4HNfKHCWwgtnrr62X82sekZZGiQj96U= X-Google-Smtp-Source: AJdET5fbAM5tG5fyQwB9eQ2Zey2lHWDiwEVxAjPm8LrzVKyFCUBeUfyi2fnVTxwV6LY3haVknBm8mw== X-Received: by 2002:a17:906:63d1:: with SMTP id u17-v6mr626189ejk.223.1540963480123; Tue, 30 Oct 2018 22:24:40 -0700 (PDT) Received: from antelope ([24.5.139.14]) by smtp.gmail.com with ESMTPSA id a16-v6sm1957508ejj.52.2018.10.30.22.24.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Oct 2018 22:24:39 -0700 (PDT) Date: Tue, 30 Oct 2018 22:24:21 -0700 From: Nam Nguyen Message-ID: <20181031052336.GA9940@antelope> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.7 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.7 (----) 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<------------------------------------------------------------ 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 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: ;; . (delete-file "Lib/test/test_socket.py") #t)))))))) ----8<------------------------------------------------------------ From unknown Sat Aug 09 09:38:10 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Nam Nguyen Subject: bug#33213: closed (Re: bug#33213: python-3/fixed and python-minimal test_socket.py) Message-ID: References: <871reoonif.fsf@gmail.com> <20181031052336.GA9940@antelope> X-Gnu-PR-Message: they-closed 33213 X-Gnu-PR-Package: guix Reply-To: 33213@debbugs.gnu.org Date: Wed, 13 Jan 2021 15:39:01 +0000 Content-Type: multipart/mixed; boundary="----------=_1610552341-2715-1" This is a multi-part message in MIME format... ------------=_1610552341-2715-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #33213: python-3/fixed and python-minimal test_socket.py which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 33213@debbugs.gnu.org. --=20 33213: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D33213 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1610552341-2715-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 33213-done) by debbugs.gnu.org; 13 Jan 2021 15:38:41 +0000 Received: from localhost ([127.0.0.1]:36327 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kziEL-0000hF-KA for submit@debbugs.gnu.org; Wed, 13 Jan 2021 10:38:41 -0500 Received: from mail-qt1-f170.google.com ([209.85.160.170]:34542) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kziEJ-0000h0-VD for 33213-done@debbugs.gnu.org; Wed, 13 Jan 2021 10:38:40 -0500 Received: by mail-qt1-f170.google.com with SMTP id c1so1348620qtc.1 for <33213-done@debbugs.gnu.org>; Wed, 13 Jan 2021 07:38:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=yMoSTnMIG1gZSGvXJ44YF4/wTg0lz89Huyv7+kKFDXw=; b=ZgNezb7B5t9dIr1G/rwgnbnAajSwaJus0xRLKHz86s7no3Xjk2lMwTKOIrcAM1ojRl ndOACjh3xzBOfFQ987UxhRMlP/HN0kk63HV0vIwBWWHmB/DxPrnZu2D8s0BssA9p97Nl 3XxbnXPtZeav6as2nczot4SZrA13x7/nBljZYte2oUiR6DocjE0MufVnkrJVCLuKwy4z pirNlAasQmTkR5H4HhJPJLHf7unZIgcc9jLuo+hppb/ibWbbFVWLAh+fpNpPeuRtQN37 qyY87wLp9mEZQTzgjbG2Zp1IkjLq6XCFK3gOoGvGikwiY6Nr9srTxoLchEkwLzMqlghS 84aA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=yMoSTnMIG1gZSGvXJ44YF4/wTg0lz89Huyv7+kKFDXw=; b=XhkxOAIR5JIlrdaLqKGAtS2J4H+zQonSHJ7Q1VCCN+yd+fKSClCl8ph0+0UCGJebVW i37I6QFurqOCASfJ/lAEjrj5tYsOYZf1We9wreq5elwFlX5bOR6Azx6vC9fj0sZIXp/J OdyZ9jr+HebTZZiCDyylw1U6wEMxNaPekSpenbql5s0xpARrJDxZvOkzgCpRjglyZ8X+ S0rUuIGDPzbkrY5GM9Gy1ARjT5K7f46EZXu8YTUitVL+GVSkjlPnL7DemFLy+d4u95LJ HkyppKyDdIkKTOE1yPlNMmywTvZrERjPmjDHUuqKY6LYQz9LXvyJd3J9EEPG4UM2RQpi 0U9A== X-Gm-Message-State: AOAM530fi99Mh6BFlg32nqAzkmi5R2rI+tBG5XqmPdNLvra3DgHEzIIz V0f268mw8xovhVHva4qnDZE= X-Google-Smtp-Source: ABdhPJzoqqvJQkJl+1Y+ZkB8/0mRvWz/4c+tZSWuMHyjUhcGaIP1//MDdg8k4QoXUHKSWCIU5+ecwA== X-Received: by 2002:ac8:718d:: with SMTP id w13mr2843129qto.335.1610552314303; Wed, 13 Jan 2021 07:38:34 -0800 (PST) Received: from hurd (dsl-157-252.b2b2c.ca. [66.158.157.252]) by smtp.gmail.com with ESMTPSA id y16sm1178458qki.132.2021.01.13.07.38.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 07:38:33 -0800 (PST) From: Maxim Cournoyer To: Nam Nguyen Subject: Re: bug#33213: python-3/fixed and python-minimal test_socket.py References: <20181031052336.GA9940@antelope> Date: Wed, 13 Jan 2021 10:38:32 -0500 In-Reply-To: <20181031052336.GA9940@antelope> (Nam Nguyen's message of "Tue, 30 Oct 2018 22:24:21 -0700") Message-ID: <871reoonif.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 33213-done Cc: mbakke@fastmail.com, 33213-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello, Nam Nguyen 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<------------------------------------------------------------ > 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 > 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 ------------=_1610552341-2715-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 31 Oct 2018 05:24:54 +0000 Received: from localhost ([127.0.0.1]:56145 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gHizt-0005YR-Q9 for submit@debbugs.gnu.org; Wed, 31 Oct 2018 01:24:54 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40499) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gHizs-0005YF-Qx for submit@debbugs.gnu.org; Wed, 31 Oct 2018 01:24:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gHizm-000413-Ph for submit@debbugs.gnu.org; Wed, 31 Oct 2018 01:24:47 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:52094) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gHizm-00040u-MB for submit@debbugs.gnu.org; Wed, 31 Oct 2018 01:24:46 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50108) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHizl-0004F9-O4 for bug-guix@gnu.org; Wed, 31 Oct 2018 01:24:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gHizh-0003y7-Pn for bug-guix@gnu.org; Wed, 31 Oct 2018 01:24:45 -0400 Received: from mail-ed1-f51.google.com ([209.85.208.51]:45773) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gHizh-0003xV-IJ for bug-guix@gnu.org; Wed, 31 Oct 2018 01:24:41 -0400 Received: by mail-ed1-f51.google.com with SMTP id t10-v6so12510129eds.12 for ; Tue, 30 Oct 2018 22:24:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=ya94WSQ9BFlyN9U04Oax5b/QvXKd953qu8+zUjdAHEo=; b=P/N6iHDY1A6RJKwRswf5bSy5vaZZFg4wgUxFUgut4+xN0qEXF68OF8js2zTXe2ntXV xZn/FYzIWOL3rTAfhSEZEnNVvO6YlaEZ/fzw1rr5A8dM+NQdnIvYl5Erp+7MtQtHW5Kr fvyAyItOjtzJthgWBmvnULDMwphIe7qnqdSEmg1XbskNKdvSu55aTq1d/02P3CMT9vQ0 5F9EIibk6XFAB57z7xeYRrddRuuwWF7pbfmz8nM/G7BGNGRyNLxC2MEugo4MHlL90O0N E8E3xBpFApISxUqd4pWxzunqOqH3+pd3roMBiL+9eAXdE0IJ069krMvgwFiJQI7Uil0V Myzw== X-Gm-Message-State: AGRZ1gLuJAzFizUSOXnUKWQBugKjqH5p3+0Ja7bmMWiE/MROjzPtp6Pi 4HNfKHCWwgtnrr62X82sekZZGiQj96U= X-Google-Smtp-Source: AJdET5fbAM5tG5fyQwB9eQ2Zey2lHWDiwEVxAjPm8LrzVKyFCUBeUfyi2fnVTxwV6LY3haVknBm8mw== X-Received: by 2002:a17:906:63d1:: with SMTP id u17-v6mr626189ejk.223.1540963480123; Tue, 30 Oct 2018 22:24:40 -0700 (PDT) Received: from antelope ([24.5.139.14]) by smtp.gmail.com with ESMTPSA id a16-v6sm1957508ejj.52.2018.10.30.22.24.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Oct 2018 22:24:39 -0700 (PDT) Date: Tue, 30 Oct 2018 22:24:21 -0700 From: Nam Nguyen To: bug-guix@gnu.org Subject: python-3/fixed and python-minimal test_socket.py Message-ID: <20181031052336.GA9940@antelope> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.7 (---) X-Debbugs-Envelope-To: submit Cc: mbakke@fastmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.7 (----) 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<------------------------------------------------------------ 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 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: ;; . (delete-file "Lib/test/test_socket.py") #t)))))))) ----8<------------------------------------------------------------ ------------=_1610552341-2715-1--