GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test_ssl fails with "env changed" on ARM64 Windows buildbot: thread doesn't catch TimeoutError · Issue #108342 · python/cpython

test_ssl fails with "env changed" on ARM64 Windows buildbot: thread doesn't catch TimeoutError #108342

New issue
Copy link
New issue
Copy link
Closed
Closed
test_ssl fails with "env changed" on ARM64 Windows buildbot: thread doesn't catch TimeoutError#108342
Copy link
Labels
topic-SSLtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@vstinner
vstinner
opened on Aug 23, 2023
Issue body actions

Bug report

Checklist

  • I am confident this is a bug in CPython, not a bug in a third-party project
  • I have searched the CPython issue tracker,
    and am confident this bug has not been reported before

CPython versions tested on:

CPython main branch

Operating systems tested on:

Windows

Output from running 'python -VV' on the command line:

No response

A clear and concise description of the bug:

ARM64 Windows Non-Debug PR buildbot build failed with: test_ssl failed (env changed):

== CPython 3.13.0a0 (heads/refs/pull/108299/merge-dirty:5af459ef07, Aug 23 2023, 01:37:38) [MSC v.1936 64 bit (AMD64)]
== Windows-11-10.0.22621-SP0 little-endian
== Python build: debug
== cwd: R:\buildarea\pull_request.ambv-bb-win11.bigmem\build\build\test_python_12132�
== CPU count: 6
== encodings: locale=cp1252, FS=utf-8
0:00:00 Run tests in parallel using 4 child processes (timeout: 1 hour 15 min, worker timeout: 1 hour 20 min)
(...)
0:08:08 load avg: 0.81 [228/447/1] test_ssl failed (env changed) (32.5 sec) -- ...
(...)
test_https_client_non_tls_response_ignored (test.test_ssl.TestPreHandshakeClose.test_https_client_non_tls_response_ignored) ...

Warning -- Uncaught thread exception: TimeoutError
Exception in thread non_tls_http_RST_responder:
Traceback (most recent call last):
  File "R:\buildarea\pull_request.ambv-bb-win11.bigmem\build\Lib\threading.py", line 1059, in _bootstrap_inner
    self.run()
  File "R:\buildarea\pull_request.ambv-bb-win11.bigmem\build\Lib\test\test_ssl.py", line 4708, in run
    conn, address = self.listener.accept()
                    ^^^^^^^^^^^^^^^^^^^^^^
  File "R:\buildarea\pull_request.ambv-bb-win11.bigmem\build\Lib\socket.py", line 295, in accept
    fd, addr = self._accept()
               ^^^^^^^^^^^^^^
TimeoutError: timed out
ok

test.pythoninfo:

ssl.OPENSSL_VERSION: OpenSSL 3.0.9 30 May 2023
ssl.OPENSSL_VERSION_INFO: (3, 0, 0, 9, 0)

Linked PRs

  • gh-108342: Break ref cycle in SSLSocket._create() exc #108344
  • [3.12] gh-108342: Break ref cycle in SSLSocket._create() exc (GH-108344) #108348
  • [3.11] gh-108342: Break ref cycle in SSLSocket._create() exc (GH-108344) #108349
  • [3.10] gh-108342: Break ref cycle in SSLSocket._create() exc (GH-108344) #108350
  • [3.9] gh-108342: Break ref cycle in SSLSocket._create() exc (GH-108344) #108351
  • [3.8] gh-108342: Break ref cycle in SSLSocket._create() exc (GH-108344) #108352
  • gh-108342: Make ssl TestPreHandshakeClose more reliable #108370
  • [3.12] gh-108342: Make ssl TestPreHandshakeClose more reliable (GH-108370) #108404
  • [3.11] gh-108342: Make ssl TestPreHandshakeClose more reliable (GH-108370) #108405
  • [3.10] gh-108342: Make ssl TestPreHandshakeClose more reliable (GH-108370) #108406
  • [3.9] gh-108342: Make ssl TestPreHandshakeClose more reliable (GH-108370) #108407
  • [3.8] gh-108342: Make ssl TestPreHandshakeClose more reliable (GH-108370) #108408

Activity

Next
  1. vstinner
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on Aug 23, 2023
  2. vstinner commented on Aug 23, 2023

    @vstinner
    vstinner
    on Aug 23, 2023
    MemberAuthor
    More actions

    Not sure if it's the same, but on Linux, I can reproduce an "env changed" failure:

    $ ./python -m test test_ssl -u all --fail-env-changed -v -R 3:3 -m test_preauth_data_to_tls_server
    (...)
    Warning -- threading_cleanup() failed to cleanup 0 threads (count: 0, dangling: 2)
    Warning -- Dangling thread: <SingleConnectionTestServerThread(preauth_data_to_tls_server, stopped 139945293178560)>
    Warning -- Dangling thread: <_MainThread(MainThread, started 139945539692352)>
    (...)
    Tests result: ENV CHANGED
    
  3. vstinner
    added a commit that references this issue on Aug 23, 2023

    pythongh-108342: Break ref cycle in SSLSocket._create() exc

    7d384a2
  4. gpshead
    added a commit that references this issue on Aug 23, 2023

    gh-108342: Break ref cycle in SSLSocket._create() exc (#108344)

    64f9935
  5. miss-islington
    added 5 commits that reference this issue on Aug 23, 2023

    pythongh-108342: Break ref cycle in SSLSocket._create() exc (pythonGH…

    20414fa

    pythongh-108342: Break ref cycle in SSLSocket._create() exc (pythonGH…

    8e55056

    pythongh-108342: Break ref cycle in SSLSocket._create() exc (pythonGH…

    8c57e81

    pythongh-108342: Break ref cycle in SSLSocket._create() exc (pythonGH…

    6804cae

    pythongh-108342: Break ref cycle in SSLSocket._create() exc (pythonGH…

    e64fc4d
  6. ambv
    added 5 commits that reference this issue on Aug 23, 2023

    [3.12] gh-108342: Break ref cycle in SSLSocket._create() exc (GH-108344…

    61dbf46

    [3.11] gh-108342: Break ref cycle in SSLSocket._create() exc (GH-108344…

    93714b7

    [3.10] gh-108342: Break ref cycle in SSLSocket._create() exc (GH-108344…

    893c3b7

    [3.9] gh-108342: Break ref cycle in SSLSocket._create() exc (GH-108344)…

    b8058b3

    [3.8] gh-108342: Break ref cycle in SSLSocket._create() exc (GH-108344)…

    6f2b64f
  7. AlexWaygood
    added
    topic-SSL
    on Aug 23, 2023
  8. 1 remaining item

  9. vstinner
    added 2 commits that reference this issue on Aug 23, 2023

    pythongh-108342: Make ssl TestPreHandshakeClose more reliable

    51e1e09

    gh-108342: Make ssl TestPreHandshakeClose more reliable (#108370)

    592bacb
  10. ambv
    added 10 commits that reference this issue on Aug 24, 2023

    [3.12] pythongh-108342: Make ssl TestPreHandshakeClose more reliable (p…

    26ef89c

    [3.11] pythongh-108342: Make ssl TestPreHandshakeClose more reliable (p…

    6757ff2

    [3.10] pythongh-108342: Make ssl TestPreHandshakeClose more reliable (p…

    a3169d0

    [3.9] pythongh-108342: Make ssl TestPreHandshakeClose more reliable (p…

    d2920f8

    [3.8] pythongh-108342: Make ssl TestPreHandshakeClose more reliable (p…

    bfb2af9

    [3.12] gh-108342: Make ssl TestPreHandshakeClose more reliable (GH-10…

    459f24a

    [3.11] gh-108342: Make ssl TestPreHandshakeClose more reliable (GH-10…

    d90f2f3

    [3.10] gh-108342: Make ssl TestPreHandshakeClose more reliable (GH-10…

    e96bddf

    [3.9] gh-108342: Make ssl TestPreHandshakeClose more reliable (GH-108370

    d2cd0a3

    [3.8] gh-108342: Make ssl TestPreHandshakeClose more reliable (GH-108370

    efb46e5
  11. vstinner
    closed this as completedon Aug 24, 2023
  12. carlosroman
    added 2 commits that reference this issue on Oct 11, 2023

    [3.9] pythongh-108342: Break ref cycle in SSLSocket._create() exc (py…

    cc9c298

    [3.9] pythongh-108342: Make ssl TestPreHandshakeClose more reliable (p…

    e1380b6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic-SSLtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.