Public bug reported:

Python3.12 (and 3.13?) probably need to include the patches given through 
https://github.com/python/cpython/pull/127361:
- python3.12: https://github.com/python/cpython/pull/127905
- python3.13: https://github.com/python/cpython/pull/127812

The upstream changes address reports from CI using arch linux:
https://github.com/python/cpython/issues/127257

For Ubuntu, breezy autopkgtests show the following which is very
similar:

696s testtools.testresult.real._StringException: log: {{{
696s 183.657  Exception InvalidRange(Invalid range access in 
https://127.0.0.1:45337/a at 8: Can't read 10 bytes across range (1, 9)): 
Invalid range access in https://127.0.0.1:45337/a at 8: Can't read 10 bytes 
across range (1, 9) during http._readv
696s 183.657  Retry "a" with single range request
696s 183.657  2 bytes left on the HTTP socket
696s 183.659  Exception InvalidRange(Invalid range access in 
https://127.0.0.1:45337/a at 8: Can't read 10 bytes across range (8, 2)): 
Invalid range access in https://127.0.0.1:45337/a at 8: Can't read 10 bytes 
across range (8, 2) during http._readv
696s 183.659  Retry "a" without ranges
696s 183.700  2 bytes left on the HTTP socket
696s 183.742  Exception ShortReadvError(readv() read 2 bytes rather than 10 
bytes at 8 for "a"): readv() read 2 bytes rather than 10 bytes at 8 for "a" 
during http._readv
696s 183.784  Exception ShortReadvError(readv() read 0 bytes rather than 2 
bytes at 12 for "a"): readv() read 0 bytes rather than 2 bytes at 12 for "a" 
during http._readv
696s 183.826  Exception ShortReadvError(readv() read 0 bytes rather than 2 
bytes at 12 for "a"): readv() read 0 bytes rather than 2 bytes at 12 for "a" 
during http._readv
696s }}}
696s 
696s Traceback (most recent call last):
696s   File "/usr/lib/python3/dist-packages/breezy/tests/test_server.py", line 
563, in stop_server
696s     self.server.stop_client_connections()
696s   File "/usr/lib/python3/dist-packages/breezy/tests/test_server.py", line 
370, in stop_client_connections
696s     self.shutdown_client(c)
696s   File "/usr/lib/python3/dist-packages/breezy/tests/test_server.py", line 
485, in shutdown_client
696s     connection_thread.join()
696s   File "/usr/lib/python3/dist-packages/breezy/tests/test_server.py", line 
250, in join
696s     super().join(timeout)
696s   File "/usr/lib/python3/dist-packages/breezy/cethread.py", line 153, in 
join
696s     raise exc_value
696s   File "/usr/lib/python3/dist-packages/breezy/cethread.py", line 132, in 
run
696s     super().run()
696s   File "/usr/lib/python3.12/threading.py", line 1012, in run
696s     self._target(*self._args, **self._kwargs)
696s   File "/usr/lib/python3/dist-packages/breezy/tests/test_server.py", line 
439, in process_request_thread
696s     socketserver.ThreadingTCPServer.process_request_thread(
696s   File "/usr/lib/python3.12/socketserver.py", line 694, in 
process_request_thread
696s     self.handle_error(request, client_address)
696s   File "/usr/lib/python3.12/socketserver.py", line 692, in 
process_request_thread
696s     self.finish_request(request, client_address)
696s   File "/usr/lib/python3.12/socketserver.py", line 362, in finish_request
696s     self.RequestHandlerClass(request, client_address, self)
696s   File "/usr/lib/python3.12/http/server.py", line 672, in __init__
696s     super().__init__(*args, **kwargs)
696s   File "/usr/lib/python3.12/socketserver.py", line 761, in __init__
696s     self.handle()
696s   File "/usr/lib/python3.12/http/server.py", line 438, in handle
696s     self.handle_one_request()
696s   File "/usr/lib/python3/dist-packages/breezy/tests/http_server.py", line 
78, in handle_one_request
696s     self._handle_one_request()
696s   File "/usr/lib/python3/dist-packages/breezy/tests/http_server.py", line 
127, in _handle_one_request
696s     http_server.SimpleHTTPRequestHandler.handle_one_request(self)
696s   File "/usr/lib/python3.12/http/server.py", line 404, in 
handle_one_request
696s     self.raw_requestline = self.rfile.readline(65537)
696s                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
696s   File "/usr/lib/python3.12/socket.py", line 720, in readinto
696s     return self._sock.recv_into(b)
696s            ^^^^^^^^^^^^^^^^^^^^^^^
696s   File "/usr/lib/python3.12/ssl.py", line 1251, in recv_into
696s     return self.read(nbytes, buffer)
696s            ^^^^^^^^^^^^^^^^^^^^^^^^^
696s   File "/usr/lib/python3.12/ssl.py", line 1103, in read
696s     return self._sslobj.read(len, buffer)
696s            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
696s ssl.SSLError: [SYS] unknown error (_ssl.c:2571)

** Affects: python3.12 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2092298

Title:
  python3.12/3.13: incompatibility with openssl 3.4

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3.12/+bug/2092298/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to