Skip to content

Conversation

@serhiy-storchaka
Copy link
Member

@serhiy-storchakaserhiy-storchaka commented Dec 3, 2025

The CGI server on Windows could consume the amount of memory specified in the Content-Length header of the request even if the client does not send such much data. Now it reads the POST request body by chunks, therefore the memory consumption is proportional to the amount of sent data.

…ial of service in http.server The CGI server on Windows could consume the amount of memory specified in the Content-Length header of the request even if the client does not send such much data. Now it reads the POST request body by chunks, therefore the memory consumption is proportional to the amount of sent data.
@serhiy-storchaka
Copy link
MemberAuthor

I managed to keep the test while getting rid from an explicit select(). Tested on Linux without fork(), will see how it works on Windows.

@serhiy-storchaka
Copy link
MemberAuthor

!buildbot AMD64 Windows11 Non-Debug

@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @serhiy-storchaka for commit 3d1b733 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F142216%2Fmerge

The command will test the builders whose names match following regular expression: AMD64 Windows11 Non-Debug

The builders matched are:

  • AMD64 Windows11 Non-Debug PR

@encukou
Copy link
Member

Looks good. Let's test it on all the platforms though.

@encukouencukou added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Dec 4, 2025
@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @encukou for commit 3d1b733 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F142216%2Fmerge

If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again.

@bedevere-botbedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Dec 4, 2025
@serhiy-storchakaserhiy-storchaka merged commit 0e4f4f1 into python:3.14Dec 5, 2025
148 of 151 checks passed
@miss-islington-app
Copy link

Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11, 3.12, 3.13.
🐍🍒⛏🤖

@serhiy-storchakaserhiy-storchaka deleted the http-server branch December 5, 2025 14:20
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Dec 5, 2025
…ial of service in http.server (pythonGH-142216) The CGI server on Windows could consume the amount of memory specified in the Content-Length header of the request even if the client does not send such much data. Now it reads the POST request body by chunks, therefore the memory consumption is proportional to the amount of sent data. (cherry picked from commit 0e4f4f1) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Dec 5, 2025
…ial of service in http.server (pythonGH-142216) The CGI server on Windows could consume the amount of memory specified in the Content-Length header of the request even if the client does not send such much data. Now it reads the POST request body by chunks, therefore the memory consumption is proportional to the amount of sent data. (cherry picked from commit 0e4f4f1) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@bedevere-app
Copy link

GH-142296 is a backport of this pull request to the 3.13 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.13 bugs and security fixes label Dec 5, 2025
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Dec 5, 2025
…ial of service in http.server (pythonGH-142216) The CGI server on Windows could consume the amount of memory specified in the Content-Length header of the request even if the client does not send such much data. Now it reads the POST request body by chunks, therefore the memory consumption is proportional to the amount of sent data. (cherry picked from commit 0e4f4f1) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@bedevere-app
Copy link

GH-142297 is a backport of this pull request to the 3.12 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.12 only security fixes label Dec 5, 2025
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Dec 5, 2025
…ial of service in http.server (pythonGH-142216) The CGI server on Windows could consume the amount of memory specified in the Content-Length header of the request even if the client does not send such much data. Now it reads the POST request body by chunks, therefore the memory consumption is proportional to the amount of sent data. (cherry picked from commit 0e4f4f1) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@bedevere-app
Copy link

GH-142298 is a backport of this pull request to the 3.11 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.11 only security fixes label Dec 5, 2025
@bedevere-app
Copy link

GH-142299 is a backport of this pull request to the 3.10 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.10 only security fixes label Dec 5, 2025
Yhg1s pushed a commit that referenced this pull request Dec 5, 2025
… service in http.server (GH-142216) (#142296) [3.14] gh-119452: Fix a potential virtual memory allocation denial of service in http.server (GH-142216) The CGI server on Windows could consume the amount of memory specified in the Content-Length header of the request even if the client does not send such much data. Now it reads the POST request body by chunks, therefore the memory consumption is proportional to the amount of sent data. (cherry picked from commit 0e4f4f1) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Yhg1s pushed a commit that referenced this pull request Dec 15, 2025
… service in http.server (GH-142216) (#142297) [3.14] gh-119452: Fix a potential virtual memory allocation denial of service in http.server (GH-142216) The CGI server on Windows could consume the amount of memory specified in the Content-Length header of the request even if the client does not send such much data. Now it reads the POST request body by chunks, therefore the memory consumption is proportional to the amount of sent data. (cherry picked from commit 0e4f4f1) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot wasm32-wasi Non-Debug 3.12 (tier-2) has failed when building commit d849cf5.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/#/builders/1372/builds/1022) and take a look at the build logs.
  4. Check if the failure is related to this commit (d849cf5) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/#/builders/1372/builds/1022

Failed tests:

  • test_code_module
  • test_xmlrpc_net
  • test_sqlite3
  • test.test_inspect.test_inspect
  • test_mailcap
  • test_cprofile
  • test_textwrap
  • test_zipapp
  • test_http_cookiejar
  • test_runpy
  • test_resource
  • test_subclassinit
  • test_struct
  • test__opcode
  • test_idle
  • test_math
  • test.test_asyncio.test_threads
  • test_sysconfig
  • test_webbrowser
  • test_pwd
  • test_robotparser
  • test_pkg
  • test_file
  • test_wsgiref
  • test_patma
  • test_dynamicclassattribute
  • test_contextlib_async
  • test_zipfile64
  • test_tty
  • test_pyclbr
  • test_script_helper
  • test_pkgutil
  • test_stable_abi_ctypes
  • test_unpack_ex
  • test_crashers
  • test_exception_variations
  • test_htmlparser
  • test_xml_dom_minicompat
  • test_queue
  • test_sort
  • test_nntplib
  • test_unittest
  • test_imaplib
  • test_posixpath
  • test.test_multiprocessing_fork.test_misc
  • test_dict
  • test_fractions
  • test_socketserver
  • test_slice
  • test_tix
  • test_exceptions
  • test_traceback
  • test_msilib
  • test_codecencodings_jp
  • test_importlib
  • test_compiler_codegen
  • test_xdrlib
  • test_frozen
  • test_funcattrs
  • test_turtle
  • test_stat
  • test_fileinput
  • test_smtplib
  • test_getopt
  • test_print
  • test_dbm
  • test_platform
  • test_telnetlib
  • test_dbm_dumb
  • test.test_concurrent_futures.test_thread_pool
  • test_winapi
  • test_plistlib
  • test_winreg
  • test_ossaudiodev
  • test.test_asyncio.test_runners
  • test_descrtut
  • test_codecmaps_hk
  • test.test_future_stmt.test_future_multiple_imports
  • test_zipfile
  • test_dynamic
  • test_timeit
  • test.test_multiprocessing_spawn.test_misc
  • test_syslog
  • test_warnings
  • test.test_asyncio.test_buffered_proto
  • test_codecencodings_iso2022
  • test.test_asyncio.test_base_events
  • test_pprint
  • test_abstract_numbers
  • test_string
  • test_unpack
  • test_pep646_syntax
  • test_contextlib
  • test_unicode
  • test_winconsoleio
  • test_with
  • test_yield_from
  • test_kqueue
  • test__xxsubinterpreters
  • test__locale
  • test_exception_hierarchy
  • test_datetime
  • test.test_multiprocessing_forkserver.test_manager
  • test_aifc
  • test_cext
  • test_pipes
  • test_marshal
  • test_uu
  • test_ssl
  • test_quopri
  • test_dbm_gnu
  • test.test_pydoc.test_pydoc
  • test_dictcomps
  • test_time

Failed subtests:

  • test_append_to_concatenated_zip_file - test.test_zipfile.test_core.StoredTestsWithSourceFile.test_append_to_concatenated_zip_file
  • test_write_filtered_python_package - test.test_zipfile.test_core.PyZipFileTests.test_write_filtered_python_package

Summary of the results of the build (if available):

==

Click to see traceback logs
Traceback (most recent call last): File "/Lib/test/libregrtest/single.py", line 181, in _runtest_env_changed_exc _load_run_test(result, runtests) File "/Lib/test/libregrtest/single.py", line 128, in _load_run_test test_mod = importlib.import_module(module_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/importlib/__init__.py", line 90, in import_modulereturn _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 935, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 999, in exec_module File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "/Lib/test/test_sqlite3/__init__.py", line 4, in <module> import_helper.import_module('_sqlite3') File "/Lib/test/support/import_helper.py", line 82, in import_moduleraise unittest.SkipTest(str(msg)) unittest.case.SkipTest: No module named '_sqlite3' Traceback (most recent call last): File "/Lib/test/libregrtest/single.py", line 181, in _runtest_env_changed_exc _load_run_test(result, runtests) File "/Lib/test/libregrtest/single.py", line 128, in _load_run_test test_mod = importlib.import_module(module_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/importlib/__init__.py", line 90, in import_modulereturn _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 935, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 999, in exec_module File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "/Lib/test/test_kqueue.py", line 13, in <module>raise unittest.SkipTest("test works only on BSD") unittest.case.SkipTest: test works only on BSD Traceback (most recent call last): File "/Lib/test/libregrtest/single.py", line 181, in _runtest_env_changed_exc _load_run_test(result, runtests) File "/Lib/test/libregrtest/single.py", line 128, in _load_run_test test_mod = importlib.import_module(module_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/importlib/__init__.py", line 90, in import_modulereturn _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 935, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 999, in exec_module File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "/Lib/test/test_ssl.py", line 38, in <module> ssl = import_helper.import_module("ssl") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/test/support/import_helper.py", line 82, in import_moduleraise unittest.SkipTest(str(msg)) unittest.case.SkipTest: No module named '_ssl' Traceback (most recent call last): File "/Lib/test/support/import_helper.py", line 78, in import_modulereturn importlib.import_module(name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/importlib/__init__.py", line 90, in import_modulereturn _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlockedModuleNotFoundError: No module named 'resource' Traceback (most recent call last): File "/Lib/test/support/import_helper.py", line 78, in import_modulereturn importlib.import_module(name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/importlib/__init__.py", line 90, in import_modulereturn _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlockedModuleNotFoundError: No module named 'pwd' Traceback (most recent call last): File "/Lib/test/libregrtest/single.py", line 181, in _runtest_env_changed_exc _load_run_test(result, runtests) File "/Lib/test/libregrtest/single.py", line 128, in _load_run_test test_mod = importlib.import_module(module_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/importlib/__init__.py", line 90, in import_modulereturn _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1310, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 935, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 999, in exec_module File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "/Lib/test/test_asyncio/__init__.py", line 6, in <module> support.requires_working_socket(module=True) File "/Lib/test/support/__init__.py", line 586, in requires_working_socketraise unittest.SkipTest(msg) unittest.case.SkipTest: requires socket support Traceback (most recent call last): File "/Lib/test/libregrtest/single.py", line 181, in _runtest_env_changed_exc _load_run_test(result, runtests) File "/Lib/test/libregrtest/single.py", line 128, in _load_run_test test_mod = importlib.import_module(module_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/importlib/__init__.py", line 90, in import_modulereturn _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 935, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 999, in exec_module File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "/Lib/test/test_msilib.py", line 9, in <module> msilib = import_module('msilib') ^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/test/support/import_helper.py", line 82, in import_moduleraise unittest.SkipTest(str(msg)) unittest.case.SkipTest: No module named '_msi' Traceback (most recent call last): File "/Lib/test/libregrtest/single.py", line 181, in _runtest_env_changed_exc _load_run_test(result, runtests) File "/Lib/test/libregrtest/single.py", line 128, in _load_run_test test_mod = importlib.import_module(module_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/importlib/__init__.py", line 90, in import_modulereturn _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 935, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 999, in exec_module File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "/Lib/test/test_multiprocessing_fork/test_misc.py", line 2, in <module>from test._test_multiprocessing import install_tests_in_module_dict File "/Lib/test/_test_multiprocessing.py", line 44, in <module> _multiprocessing = import_helper.import_module('_multiprocessing') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/test/support/import_helper.py", line 82, in import_moduleraise unittest.SkipTest(str(msg)) unittest.case.SkipTest: No module named '_multiprocessing' Traceback (most recent call last): File "/Lib/test/libregrtest/single.py", line 181, in _runtest_env_changed_exc _load_run_test(result, runtests) File "/Lib/test/libregrtest/single.py", line 128, in _load_run_test test_mod = importlib.import_module(module_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/importlib/__init__.py", line 90, in import_modulereturn _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 935, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 999, in exec_module File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "/Lib/test/test_winreg.py", line 12, in <module> import_helper.import_module('winreg', required_on=['win']) File "/Lib/test/support/import_helper.py", line 82, in import_moduleraise unittest.SkipTest(str(msg)) unittest.case.SkipTest: No module named 'winreg' Traceback (most recent call last): File "/Lib/test/support/import_helper.py", line 78, in import_modulereturn importlib.import_module(name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/importlib/__init__.py", line 90, in import_modulereturn _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlockedModuleNotFoundError: No module named 'termios' Traceback (most recent call last): File "/Lib/test/libregrtest/single.py", line 307, in run_single_test _runtest(result, runtests) File "/Lib/test/libregrtest/single.py", line 281, in _runtest _runtest_env_changed_exc(result, runtests, File "/Lib/test/libregrtest/single.py", line 189, in _runtest_env_changed_excprint(f"{test_name} skipped -- {exc}", flush=True) OSError: [Errno 51] No space left on device Traceback (most recent call last): File "/Lib/test/support/import_helper.py", line 78, in import_modulereturn importlib.import_module(name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/importlib/__init__.py", line 90, in import_modulereturn _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 935, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 999, in exec_module File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "/Lib/msilib/__init__.py", line 3, in <module>from _msi import*ModuleNotFoundError: No module named '_msi' Traceback (most recent call last): File "/Lib/test/libregrtest/single.py", line 181, in _runtest_env_changed_exc _load_run_test(result, runtests) File "/Lib/test/libregrtest/single.py", line 128, in _load_run_test test_mod = importlib.import_module(module_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/importlib/__init__.py", line 90, in import_modulereturn _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 935, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 999, in exec_module File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "/Lib/test/test_winapi.py", line 9, in <module> _winapi = import_helper.import_module('_winapi', required_on=['win']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/test/support/import_helper.py", line 82, in import_moduleraise unittest.SkipTest(str(msg)) unittest.case.SkipTest: No module named '_winapi' Traceback (most recent call last): File "/Lib/test/libregrtest/single.py", line 307, in run_single_test _runtest(result, runtests) File "/Lib/test/libregrtest/single.py", line 281, in _runtest _runtest_env_changed_exc(result, runtests, File "/Lib/test/libregrtest/single.py", line 184, in _runtest_env_changed_excprint(f"{test_name} skipped -- {exc}", flush=True) OSError: [Errno 51] No space left on device Traceback (most recent call last): File "/Lib/test/support/import_helper.py", line 78, in import_modulereturn importlib.import_module(name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/importlib/__init__.py", line 90, in import_modulereturn _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlockedModuleNotFoundError: No module named '_sqlite3' Traceback (most recent call last): File "/Lib/test/libregrtest/single.py", line 181, in _runtest_env_changed_exc _load_run_test(result, runtests) File "/Lib/test/libregrtest/single.py", line 128, in _load_run_test test_mod = importlib.import_module(module_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/importlib/__init__.py", line 90, in import_modulereturn _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 935, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 999, in exec_module File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "/Lib/test/test_resource.py", line 9, in <module> resource = import_helper.import_module('resource') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/test/support/import_helper.py", line 82, in import_moduleraise unittest.SkipTest(str(msg)) unittest.case.SkipTest: No module named 'resource' Traceback (most recent call last): File "/Lib/test/libregrtest/single.py", line 181, in _runtest_env_changed_exc _load_run_test(result, runtests) File "/Lib/test/libregrtest/single.py", line 128, in _load_run_test test_mod = importlib.import_module(module_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/importlib/__init__.py", line 90, in import_modulereturn _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 935, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 999, in exec_module File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "/Lib/test/test_smtplib.py", line 29, in <module> support.requires_working_socket(module=True) File "/Lib/test/support/__init__.py", line 586, in requires_working_socketraise unittest.SkipTest(msg) unittest.case.SkipTest: requires socket support Traceback (most recent call last): File "/Lib/test/support/import_helper.py", line 78, in import_modulereturn importlib.import_module(name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/importlib/__init__.py", line 90, in import_modulereturn _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 935, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 999, in exec_module File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "/Lib/tkinter/__init__.py", line 38, in <module>import _tkinter # If this fails your Python may not be configured for Tk^^^^^^^^^^^^^^^ModuleNotFoundError: No module named '_tkinter' Traceback (most recent call last): File "/Lib/test/test_zipfile/test_core.py", line 1480, in test_write_filtered_python_packagewith TemporaryFile() as t, zipfile.PyZipFile(t, "w") as zipfp: ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/zipfile/__init__.py", line 1413, in __exit__self.close() File "/Lib/zipfile/__init__.py", line 1983, in closeself.fp.seek(self.start_dir) OSError: [Errno 51] No space left on device Traceback (most recent call last): File "/Lib/test/support/import_helper.py", line 78, in import_modulereturn importlib.import_module(name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/importlib/__init__.py", line 90, in import_modulereturn _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 935, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 999, in exec_module File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "/Lib/ssl.py", line 100, in <module>import _ssl # if we can't import it, let the error propagate^^^^^^^^^^^ModuleNotFoundError: No module named '_ssl' Traceback (most recent call last): File "/Lib/test/libregrtest/single.py", line 181, in _runtest_env_changed_exc _load_run_test(result, runtests) File "/Lib/test/libregrtest/single.py", line 128, in _load_run_test test_mod = importlib.import_module(module_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/importlib/__init__.py", line 90, in import_modulereturn _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 935, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 999, in exec_module File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "/Lib/test/test_multiprocessing_spawn/test_misc.py", line 2, in <module>from test._test_multiprocessing import install_tests_in_module_dict File "/Lib/test/_test_multiprocessing.py", line 44, in <module> _multiprocessing = import_helper.import_module('_multiprocessing') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/test/support/import_helper.py", line 82, in import_moduleraise unittest.SkipTest(str(msg)) unittest.case.SkipTest: No module named '_multiprocessing' Traceback (most recent call last): File "/Lib/test/libregrtest/single.py", line 181, in _runtest_env_changed_exc _load_run_test(result, runtests) File "/Lib/test/libregrtest/single.py", line 128, in _load_run_test test_mod = importlib.import_module(module_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/importlib/__init__.py", line 90, in import_modulereturn _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 935, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 999, in exec_module File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "/Lib/test/test_multiprocessing_forkserver/test_manager.py", line 2, in <module>from test._test_multiprocessing import install_tests_in_module_dict File "/Lib/test/_test_multiprocessing.py", line 44, in <module> _multiprocessing = import_helper.import_module('_multiprocessing') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/test/support/import_helper.py", line 82, in import_moduleraise unittest.SkipTest(str(msg)) unittest.case.SkipTest: No module named '_multiprocessing' Traceback (most recent call last): File "/Lib/test/libregrtest/single.py", line 181, in _runtest_env_changed_exc _load_run_test(result, runtests) File "/Lib/test/libregrtest/single.py", line 128, in _load_run_test test_mod = importlib.import_module(module_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/importlib/__init__.py", line 90, in import_modulereturn _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 935, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 999, in exec_module File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "/Lib/test/test_pipes.py", line 16, in <module>raise unittest.SkipTest('pipes module requires a shell') unittest.case.SkipTest: pipes module requires a shell Traceback (most recent call last): File "/Lib/test/test_zipfile/test_core.py", line 1480, in test_write_filtered_python_packagewith TemporaryFile() as t, zipfile.PyZipFile(t, "w") as zipfp: ^^^^^^^^^^^^^^^OSError: [Errno 51] No space left on device Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/Lib/test/libregrtest/worker.py", line 104, in <module> main() File "/Lib/test/libregrtest/worker.py", line 100, in main worker_process(worker_json) File "/Lib/test/libregrtest/worker.py", line 77, in worker_process result = run_single_test(test_name, runtests) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/test/libregrtest/single.py", line 311, in run_single_testprint(f"test {test_name} crashed -- {msg}", OSError: [Errno 51] No space left on device Traceback (most recent call last): File "/Lib/test/support/import_helper.py", line 78, in import_modulereturn importlib.import_module(name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/importlib/__init__.py", line 90, in import_modulereturn _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlockedModuleNotFoundError: No module named '_multiprocessing' Traceback (most recent call last): File "/Lib/test/support/import_helper.py", line 78, in import_modulereturn importlib.import_module(name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/importlib/__init__.py", line 90, in import_modulereturn _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlockedModuleNotFoundError: No module named 'winreg' Traceback (most recent call last): File "/Lib/test/libregrtest/single.py", line 181, in _runtest_env_changed_exc _load_run_test(result, runtests) File "/Lib/test/libregrtest/single.py", line 128, in _load_run_test test_mod = importlib.import_module(module_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/importlib/__init__.py", line 90, in import_modulereturn _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 935, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 999, in exec_module File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "/Lib/test/test_getopt.py", line 8, in <module>from test.support.i18n_helper import TestTranslationsBase, update_translation_snapshots File "/Lib/test/support/i18n_helper.py", line 7, in <module>from test.test_tools import skip_if_missing File "/Lib/test/test_tools/__init__.py", line 17, in <module>raise unittest.SkipTest("test module requires subprocess") unittest.case.SkipTest: test module requires subprocess Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/Lib/test/libregrtest/worker.py", line 104, in <module> main() File "/Lib/test/libregrtest/worker.py", line 100, in main worker_process(worker_json) File "/Lib/test/libregrtest/worker.py", line 81, in worker_process result.write_json_into(sys.stdout) File "/Lib/test/libregrtest/result.py", line 188, in write_json_into json.dump(self, file, cls=_EncodeTestResult) File "/Lib/json/__init__.py", line 180, in dump fp.write(chunk) OSError: [Errno 51] No space left on device Traceback (most recent call last): File "/Lib/test/test_zipfile/test_core.py", line 559, in test_append_to_concatenated_zip_file f.write(data) OSError: [Errno 51] No space left on device Traceback (most recent call last): File "/Lib/test/libregrtest/single.py", line 181, in _runtest_env_changed_exc _load_run_test(result, runtests) File "/Lib/test/libregrtest/single.py", line 128, in _load_run_test test_mod = importlib.import_module(module_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/importlib/__init__.py", line 90, in import_modulereturn _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 935, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 999, in exec_module File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "/Lib/test/test_xmlrpc_net.py", line 8, in <module> support.requires("network") File "/Lib/test/support/__init__.py", line 299, in requiresraise ResourceDenied("No socket support") Traceback (most recent call last): File "/Lib/test/support/import_helper.py", line 78, in import_modulereturn importlib.import_module(name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/importlib/__init__.py", line 90, in import_modulereturn _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlockedModuleNotFoundError: No module named '_winapi' Traceback (most recent call last): File "/Lib/test/libregrtest/single.py", line 181, in _runtest_env_changed_exc _load_run_test(result, runtests) File "/Lib/test/libregrtest/single.py", line 128, in _load_run_test test_mod = importlib.import_module(module_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/importlib/__init__.py", line 90, in import_modulereturn _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 935, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 999, in exec_module File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "/Lib/test/test_idle.py", line 9, in <module> tk = import_module('tkinter') # Also imports _tkinter.^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/test/support/import_helper.py", line 82, in import_moduleraise unittest.SkipTest(str(msg)) unittest.case.SkipTest: No module named '_tkinter' Traceback (most recent call last): File "/Lib/test/test_zipfile/test_core.py", line 1485, in test_write_filtered_python_package zipfp.writepy(packagedir) File "/Lib/zipfile/__init__.py", line 2144, in writepyself.writepy(path, basename, File "/Lib/zipfile/__init__.py", line 2155, in writepyself.write(fname, arcname) File "/Lib/zipfile/__init__.py", line 1885, in writewithopen(filename, "rb") as src, self.open(zinfo, 'w') as dest: ^^^^^^^^^^^^^^^^^^^^^ File "/Lib/zipfile/__init__.py", line 1275, in closeself._fileobj.seek(self._zinfo.header_offset) OSError: [Errno 51] No space left on device Traceback (most recent call last): File "/Lib/test/support/import_helper.py", line 78, in import_modulereturn importlib.import_module(name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/importlib/__init__.py", line 90, in import_modulereturn _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlockedModuleNotFoundError: No module named '_xxsubinterpreters' Traceback (most recent call last): File "/Lib/test/libregrtest/single.py", line 181, in _runtest_env_changed_exc _load_run_test(result, runtests) File "/Lib/test/libregrtest/single.py", line 128, in _load_run_test test_mod = importlib.import_module(module_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/importlib/__init__.py", line 90, in import_modulereturn _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 935, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 999, in exec_module File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "/Lib/test/test_tix.py", line 12, in <module> _tkinter = import_helper.import_module('_tkinter') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/test/support/import_helper.py", line 82, in import_moduleraise unittest.SkipTest(str(msg)) unittest.case.SkipTest: No module named '_tkinter' Traceback (most recent call last): File "/Lib/test/libregrtest/single.py", line 181, in _runtest_env_changed_exc _load_run_test(result, runtests) File "/Lib/test/libregrtest/single.py", line 128, in _load_run_test test_mod = importlib.import_module(module_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/importlib/__init__.py", line 90, in import_modulereturn _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 935, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 999, in exec_module File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "/Lib/test/test_webbrowser.py", line 12, in <module>raise unittest.SkipTest("test webserver requires subprocess") unittest.case.SkipTest: test webserver requires subprocess Traceback (most recent call last): File "/Lib/test/libregrtest/single.py", line 181, in _runtest_env_changed_exc _load_run_test(result, runtests) File "/Lib/test/libregrtest/single.py", line 128, in _load_run_test test_mod = importlib.import_module(module_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/importlib/__init__.py", line 90, in import_modulereturn _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 935, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 999, in exec_module File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "/Lib/test/test_winconsoleio.py", line 12, in <module>raise unittest.SkipTest("test only relevant on win32") unittest.case.SkipTest: test only relevant on win32 Traceback (most recent call last): File "/Lib/test/libregrtest/single.py", line 181, in _runtest_env_changed_exc _load_run_test(result, runtests) File "/Lib/test/libregrtest/single.py", line 128, in _load_run_test test_mod = importlib.import_module(module_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/importlib/__init__.py", line 90, in import_modulereturn _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 935, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 999, in exec_module File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "/Lib/test/test_tty.py", line 5, in <module> termios = import_module('termios') ^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/test/support/import_helper.py", line 82, in import_moduleraise unittest.SkipTest(str(msg)) unittest.case.SkipTest: No module named 'termios' Traceback (most recent call last): File "/Lib/test/libregrtest/single.py", line 181, in _runtest_env_changed_exc _load_run_test(result, runtests) File "/Lib/test/libregrtest/single.py", line 128, in _load_run_test test_mod = importlib.import_module(module_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/importlib/__init__.py", line 90, in import_modulereturn _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1310, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 935, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 999, in exec_module File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "/Lib/test/test_concurrent_futures/__init__.py", line 7, in <module> import_helper.import_module('_multiprocessing') File "/Lib/test/support/import_helper.py", line 82, in import_moduleraise unittest.SkipTest(str(msg)) unittest.case.SkipTest: No module named '_multiprocessing' Traceback (most recent call last): File "/Lib/test/support/import_helper.py", line 78, in import_modulereturn importlib.import_module(name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/importlib/__init__.py", line 90, in import_modulereturn _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 935, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 999, in exec_module File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "/Lib/turtle.py", line 101, in <module>import tkinter asTK File "/Lib/tkinter/__init__.py", line 38, in <module>import _tkinter # If this fails your Python may not be configured for Tk^^^^^^^^^^^^^^^ModuleNotFoundError: No module named '_tkinter' Traceback (most recent call last): File "/Lib/test/support/import_helper.py", line 78, in import_modulereturn importlib.import_module(name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/importlib/__init__.py", line 90, in import_modulereturn _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlockedModuleNotFoundError: No module named '_tkinter' Traceback (most recent call last): File "/Lib/test/libregrtest/single.py", line 181, in _runtest_env_changed_exc _load_run_test(result, runtests) File "/Lib/test/libregrtest/single.py", line 128, in _load_run_test test_mod = importlib.import_module(module_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/importlib/__init__.py", line 90, in import_modulereturn _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 935, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 999, in exec_module File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "/Lib/test/test_pwd.py", line 5, in <module> pwd = import_helper.import_module('pwd') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/test/support/import_helper.py", line 82, in import_moduleraise unittest.SkipTest(str(msg)) unittest.case.SkipTest: No module named 'pwd' Traceback (most recent call last): File "/Lib/test/libregrtest/single.py", line 181, in _runtest_env_changed_exc _load_run_test(result, runtests) File "/Lib/test/libregrtest/single.py", line 128, in _load_run_test test_mod = importlib.import_module(module_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/importlib/__init__.py", line 90, in import_modulereturn _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 935, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 999, in exec_module File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "/Lib/test/test__xxsubinterpreters.py", line 15, in <module> interpreters = import_helper.import_module('_xxsubinterpreters') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/test/support/import_helper.py", line 82, in import_moduleraise unittest.SkipTest(str(msg)) unittest.case.SkipTest: No module named '_xxsubinterpreters' Traceback (most recent call last): File "/Lib/test/libregrtest/single.py", line 181, in _runtest_env_changed_exc _load_run_test(result, runtests) File "/Lib/test/libregrtest/single.py", line 128, in _load_run_test test_mod = importlib.import_module(module_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/importlib/__init__.py", line 90, in import_modulereturn _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 935, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 999, in exec_module File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "/Lib/test/test_zipfile64.py", line 9, in <module> support.requires( File "/Lib/test/support/__init__.py", line 297, in requiresraise ResourceDenied(msg) Traceback (most recent call last): File "/Lib/test/libregrtest/single.py", line 181, in _runtest_env_changed_exc _load_run_test(result, runtests) File "/Lib/test/libregrtest/single.py", line 128, in _load_run_test test_mod = importlib.import_module(module_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/importlib/__init__.py", line 90, in import_modulereturn _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 935, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 999, in exec_module File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "/Lib/test/test_queue.py", line 14, in <module> threading_helper.requires_working_threading(module=True) File "/Lib/test/support/threading_helper.py", line 248, in requires_working_threadingraise unittest.SkipTest(msg) unittest.case.SkipTest: requires threading support Traceback (most recent call last): File "/Lib/test/libregrtest/single.py", line 181, in _runtest_env_changed_exc _load_run_test(result, runtests) File "/Lib/test/libregrtest/single.py", line 128, in _load_run_test test_mod = importlib.import_module(module_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/importlib/__init__.py", line 90, in import_modulereturn _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 935, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 999, in exec_module File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "/Lib/test/test_turtle.py", line 8, in <module> turtle = import_helper.import_module('turtle') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/test/support/import_helper.py", line 82, in import_moduleraise unittest.SkipTest(str(msg)) unittest.case.SkipTest: No module named '_tkinter' Traceback (most recent call last): File "/Lib/test/libregrtest/single.py", line 181, in _runtest_env_changed_exc _load_run_test(result, runtests) File "/Lib/test/libregrtest/single.py", line 128, in _load_run_test test_mod = importlib.import_module(module_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Lib/importlib/__init__.py", line 90, in import_modulereturn _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 935, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 999, in exec_module File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "/Lib/test/test_socketserver.py", line 22, in <module> test.support.requires("network") File "/Lib/test/support/__init__.py", line 299, in requiresraise ResourceDenied("No socket support") 

@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot s390x RHEL9 Refleaks 3.12 (tier-3) has failed when building commit d849cf5.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/#/builders/1569/builds/633) and take a look at the build logs.
  4. Check if the failure is related to this commit (d849cf5) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/#/builders/1569/builds/633

Failed tests:

  • test_ssl

Failed subtests:

  • test_wrong_cert_tls13 - test.test_ssl.ThreadedTests.test_wrong_cert_tls13

Summary of the results of the build (if available):

==

Click to see traceback logs
Traceback (most recent call last): File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/test/test_ssl.py", line 2273, in wrap_conn self.sslconn =self.server.context.wrap_socket( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/ssl.py", line 455, in wrap_socket returnself.sslsocket_class._create( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/ssl.py", line 1041, in _create self.do_handshake() File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/ssl.py", line 1319, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:1010) k Traceback (most recent call last): File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/test/test_ssl.py", line 2273, in wrap_conn self.sslconn =self.server.context.wrap_socket( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/ssl.py", line 455, in wrap_socket returnself.sslsocket_class._create( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/ssl.py", line 1041, in _create self.do_handshake() File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/ssl.py", line 1319, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL: SSLV3_ALERT_BAD_CERTIFICATE] ssl/tls alert bad certificate (_ssl.c:1010) connection timeout TimeoutError('timed out') connection timeout TimeoutError('timed out') k Traceback (most recent call last): File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/test/test_ssl.py", line 255, in wrapperreturn func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/test/test_ssl.py", line 3155, in test_wrong_cert_tls13 s.write(b'data') File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/ssl.py", line 1122, in writereturnself._sslobj.write(data) ^^^^^^^^^^^^^^^^^^^^^^^^ConnectionResetError: [Errno 104] Connection reset by peer Traceback (most recent call last): File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/test/test_ssl.py", line 2273, in wrap_conn self.sslconn =self.server.context.wrap_socket( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/ssl.py", line 455, in wrap_socket returnself.sslsocket_class._create( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/ssl.py", line 1041, in _create self.do_handshake() File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/ssl.py", line 1319, in do_handshake self._sslobj.do_handshake() ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1010) k Traceback (most recent call last): File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/test/test_ssl.py", line 2273, in wrap_conn self.sslconn =self.server.context.wrap_socket( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/ssl.py", line 455, in wrap_socket returnself.sslsocket_class._create( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/ssl.py", line 1041, in _create self.do_handshake() File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/ssl.py", line 1319, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL: SSLV3_ALERT_BAD_CERTIFICATE] ssl/tls alert bad certificate (_ssl.c:1010) connection timeout TimeoutError('timed out') k Traceback (most recent call last): File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/test/test_ssl.py", line 2273, in wrap_conn self.sslconn =self.server.context.wrap_socket( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/ssl.py", line 455, in wrap_socket returnself.sslsocket_class._create( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/ssl.py", line 1041, in _create self.do_handshake() File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/ssl.py", line 1319, in do_handshake self._sslobj.do_handshake() ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1010) connection timeout TimeoutError('timed out') k Traceback (most recent call last): File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/test/test_ssl.py", line 2273, in wrap_conn self.sslconn =self.server.context.wrap_socket( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/ssl.py", line 455, in wrap_socket returnself.sslsocket_class._create( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/ssl.py", line 1041, in _create self.do_handshake() File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/ssl.py", line 1319, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL: SSLV3_ALERT_BAD_CERTIFICATE] ssl/tls alert bad certificate (_ssl.c:1010) k Traceback (most recent call last): File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/test/test_ssl.py", line 2273, in wrap_conn self.sslconn =self.server.context.wrap_socket( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/ssl.py", line 455, in wrap_socket returnself.sslsocket_class._create( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/ssl.py", line 1041, in _create self.do_handshake() File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/ssl.py", line 1319, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL: NO_SHARED_CIPHER] no shared cipher (_ssl.c:1010) k Traceback (most recent call last): File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/test/test_ssl.py", line 2357, in run msg =self.read() ^^^^^^^^^^^ File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/test/test_ssl.py", line 2334, in read returnself.sslconn.read() ^^^^^^^^^^^^^^^^^^^ File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/ssl.py", line 1105, in read returnself._sslobj.read(len) ^^^^^^^^^^^^^^^^^^^^^^ ssl.SSLError: [SSL: PEER_DID_NOT_RETURN_A_CERTIFICATE] peer did not return a certificate (_ssl.c:2580) k Traceback (most recent call last): File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/test/test_ssl.py", line 2273, in wrap_conn self.sslconn =self.server.context.wrap_socket( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/ssl.py", line 455, in wrap_socket returnself.sslsocket_class._create( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/ssl.py", line 1041, in _create self.do_handshake() File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/ssl.py", line 1319, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:1010) server: new connection from ('127.0.0.1', 41082) server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256) Connection reset by peer: ('127.0.0.1', 41082) k Traceback (most recent call last): File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/test/test_ssl.py", line 2273, in wrap_conn self.sslconn =self.server.context.wrap_socket( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/ssl.py", line 455, in wrap_socket returnself.sslsocket_class._create( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/ssl.py", line 1041, in _create self.do_handshake() File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/ssl.py", line 1319, in do_handshake self._sslobj.do_handshake() ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1010) connection timeout TimeoutError('timed out') ERROR Traceback (most recent call last): File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/test/test_ssl.py", line 2273, in wrap_conn self.sslconn =self.server.context.wrap_socket( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/ssl.py", line 455, in wrap_socket returnself.sslsocket_class._create( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/ssl.py", line 1041, in _create self.do_handshake() File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/ssl.py", line 1319, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:1010) server: new connection from ('127.0.0.1', 59800) server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256) Connection reset by peer: ('127.0.0.1', 59800) k Traceback (most recent call last): File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/test/test_ssl.py", line 2273, in wrap_conn self.sslconn =self.server.context.wrap_socket( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/ssl.py", line 455, in wrap_socket returnself.sslsocket_class._create( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/ssl.py", line 1041, in _create self.do_handshake() File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/ssl.py", line 1319, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL: NO_SUITABLE_KEY_SHARE] no suitable key share (_ssl.c:1010) k Traceback (most recent call last): File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/test/test_ssl.py", line 2273, in wrap_conn self.sslconn =self.server.context.wrap_socket( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/ssl.py", line 455, in wrap_socket returnself.sslsocket_class._create( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/ssl.py", line 1041, in _create self.do_handshake() File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/ssl.py", line 1319, in do_handshake self._sslobj.do_handshake() ssl.SSLEOFError: [SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1010) k Traceback (most recent call last): File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/test/test_ssl.py", line 2273, in wrap_conn self.sslconn =self.server.context.wrap_socket( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/ssl.py", line 455, in wrap_socket returnself.sslsocket_class._create( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/ssl.py", line 1041, in _create self.do_handshake() File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/ssl.py", line 1319, in do_handshake self._sslobj.do_handshake() ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1010) Traceback (most recent call last): File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/test/test_ssl.py", line 2273, in wrap_conn self.sslconn =self.server.context.wrap_socket( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/ssl.py", line 455, in wrap_socket returnself.sslsocket_class._create( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/ssl.py", line 1041, in _create self.do_handshake() File "/home/buildbot/buildarea/3.12.cstratak-rhel9-s390x.refleak/build/Lib/ssl.py", line 1319, in do_handshake self._sslobj.do_handshake() ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1010) ERROR 

pablogsal pushed a commit that referenced this pull request Jan 25, 2026
… service in http.server (GH-142216) (#142299) [3.14] gh-119452: Fix a potential virtual memory allocation denial of service in http.server (GH-142216) The CGI server on Windows could consume the amount of memory specified in the Content-Length header of the request even if the client does not send such much data. Now it reads the POST request body by chunks, therefore the memory consumption is proportional to the amount of sent data. (cherry picked from commit 0e4f4f1) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
pablogsal pushed a commit that referenced this pull request Jan 25, 2026
… service in http.server (GH-142216) (#142298) [3.14] gh-119452: Fix a potential virtual memory allocation denial of service in http.server (GH-142216) The CGI server on Windows could consume the amount of memory specified in the Content-Length header of the request even if the client does not send such much data. Now it reads the POST request body by chunks, therefore the memory consumption is proportional to the amount of sent data. (cherry picked from commit 0e4f4f1) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@serhiy-storchaka@bedevere-bot@encukou