From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxim Cournoyer Subject: bug#35311: Python 2 test failures: test_httplib test_urllib2_localnet Date: Wed, 17 Apr 2019 21:49:12 -0400 Message-ID: <87h8awt753.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([209.51.188.92]:40666) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hGwBh-0000VB-Ag for bug-guix@gnu.org; Wed, 17 Apr 2019 21:50:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hGwBf-0004mw-JA for bug-guix@gnu.org; Wed, 17 Apr 2019 21:50:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55894) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hGwBe-0004lP-1C for bug-guix@gnu.org; Wed, 17 Apr 2019 21:50:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hGwBd-0002pw-Qu for bug-guix@gnu.org; Wed, 17 Apr 2019 21:50:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([209.51.188.92]:40526) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hGwAz-0000Oc-5k for bug-guix@gnu.org; Wed, 17 Apr 2019 21:49:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hGwAx-0004UK-3d for bug-guix@gnu.org; Wed, 17 Apr 2019 21:49:21 -0400 Received: from mail-qk1-x72c.google.com ([2607:f8b0:4864:20::72c]:34069) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hGwAv-0004Sv-0B for bug-guix@gnu.org; Wed, 17 Apr 2019 21:49:17 -0400 Received: by mail-qk1-x72c.google.com with SMTP id n68so300234qka.1 for ; Wed, 17 Apr 2019 18:49:15 -0700 (PDT) Received: from kwak (dsl-10-129-191.b2b2c.ca. [72.10.129.191]) by smtp.gmail.com with ESMTPSA id w13sm424246qtc.26.2019.04.17.18.49.13 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 17 Apr 2019 18:49:13 -0700 (PDT) List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 35311@debbugs.gnu.org Building 'python2' on the core-updates branch, I've seen these two test failures (non-deterministic), although the first one comes up quite steadily on my system: --8<---------------cut here---------------start------------->8--- ;; This buffer is for text that is not saved, and for Lisp evaluation. ;; To create a file, visit it with C-x C-f and enter text in its buffer. test test_urllib2_localnet produced unexpected output: ********************************************************************** ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 35092) ---------------------------------------- ********************************************************************** Traceback (most recent call last): File "/tmp/guix-build-python2-2.7.16.drv-0/Python-2.7.16/Lib/SocketServer.py", linek self.process_request(request, client_address) File "/tmp/guix-build-python2-2.7.16.drv-0/Python-2.7.16/Lib/SocketServer.py", linet self.finish_request(request, client_address) File "/tmp/guix-build-python2-2.7.16.drv-0/Python-2.7.16/Lib/SocketServer.py", linet self.RequestHandlerClass(request, client_address, self) File "/tmp/guix-build-python2-2.7.16.drv-0/Python-2.7.16/Lib/SocketServer.py", line_ self.handle() File "/tmp/guix-build-python2-2.7.16.drv-0/Python-2.7.16/Lib/BaseHTTPServer.py", lie self.handle_one_request() File "/tmp/guix-build-python2-2.7.16.drv-0/Python-2.7.16/Lib/BaseHTTPServer.py", lit self.raw_requestline = self.rfile.readline(65537) File "/tmp/guix-build-python2-2.7.16.drv-0/Python-2.7.16/Lib/socket.py", line 480, e data = self._sock.recv(self._rbufsize) File "/tmp/guix-build-python2-2.7.16.drv-0/Python-2.7.16/Lib/ssl.py", line 754, in v return self.read(buflen) File "/tmp/guix-build-python2-2.7.16.drv-0/Python-2.7.16/Lib/ssl.py", line 641, in d v = self._sslobj.read(len) error: [Errno 104] Connection reset by peer # This one is much harder to get: test test_httplib produced unexpected output: ********************************************************************** ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 60648) ---------------------------------------- ********************************************************************** Traceback (most recent call last): File "/tmp/guix-build-python2-2.7.16.drv-0/Python-2.7.16/Lib/SocketServer.py", linek self.process_request(request, client_address) File "/tmp/guix-build-python2-2.7.16.drv-0/Python-2.7.16/Lib/SocketServer.py", linet self.finish_request(request, client_address) File "/tmp/guix-build-python2-2.7.16.drv-0/Python-2.7.16/Lib/SocketServer.py", linet self.RequestHandlerClass(request, client_address, self) File "/tmp/guix-build-python2-2.7.16.drv-0/Python-2.7.16/Lib/SocketServer.py", line_ self.handle() File "/tmp/guix-build-python2-2.7.16.drv-0/Python-2.7.16/Lib/BaseHTTPServer.py", lie self.handle_one_request() File "/tmp/guix-build-python2-2.7.16.drv-0/Python-2.7.16/Lib/BaseHTTPServer.py", lit self.raw_requestline = self.rfile.readline(65537) File "/tmp/guix-build-python2-2.7.16.drv-0/Python-2.7.16/Lib/socket.py", line 480, e data = self._sock.recv(self._rbufsize) File "/tmp/guix-build-python2-2.7.16.drv-0/Python-2.7.16/Lib/ssl.py", line 754, in v return self.read(buflen) File "/tmp/guix-build-python2-2.7.16.drv-0/Python-2.7.16/Lib/ssl.py", line 641, in d v = self._sslobj.read(len) error: [Errno 104] Connection reset by peer --8<---------------cut here---------------end--------------->8--- It seems to be related to OpenSSL bump to 1.1.1b, although strangely Python 3 seems unaffected. It is potentially fixed by: https://github.com/python/cpython/commit/529525fb5a8fd9b96ab4021311a598c77588b918, but hasn't been backported to Python 2 as of 2019/04/17. Maxim