python / python/cpython

test_ssl: test_connect_ex_error() hangs on "ARM64 macOS 3.x" buildbot

未关闭
#150,388 5 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

OS-mac tests topic-SSL type-bug
主要语言
Python
星标
77.2k
派生
35.9k
PR 合并指标
PR 指标待抓取

描述

ARM64 macOS 3.x: https://buildbot.python.org/#/builders/725/builds/13430

0:49:10 load avg: 1.78 [4/4/1] test_ssl worker non-zero exit code (Exit code 1)
Re-running test_ssl in verbose mode
test_DER_to_PEM (test.test_ssl.BasicSocketTests.test_DER_to_PEM) ... ok
test_asn1object (test.test_ssl.BasicSocketTests.test_asn1object) ... ok
test_cert_time_to_seconds (test.test_ssl.BasicSocketTests.test_cert_time_to_seconds) ... ok
test_cert_time_to_seconds_locale (test.test_ssl.BasicSocketTests.test_cert_time_to_seconds_locale) ... skipped 'locale-specific month name needs to be different from C locale'
test_cert_time_to_seconds_timezone (test.test_ssl.BasicSocketTests.test_cert_time_to_seconds_timezone) ... ok
test_connect_ex_error (test.test_ssl.BasicSocketTests.test_connect_ex_error) ... Timeout (0:20:00)!
Thread 0x0000000206e4ec40 (most recent call first):
  File "/Users/buildbot/buildarea/3.x.pablogsal-macos-m1.macos-with-brew/build/Lib/ssl.py", line 1440 in _real_connect
  File "/Users/buildbot/buildarea/3.x.pablogsal-macos-m1.macos-with-brew/build/Lib/ssl.py", line 1461 in connect_ex
  File "/Users/buildbot/buildarea/3.x.pablogsal-macos-m1.macos-with-brew/build/Lib/test/test_ssl.py", line 973 in test_connect_ex_error
  File "/Users/buildbot/buildarea/3.x.pablogsal-macos-m1.macos-with-brew/build/Lib/unittest/case.py", line 637 in _callTestMethod
  File "/Users/buildbot/buildarea/3.x.pablogsal-macos-m1.macos-with-brew/build/Lib/unittest/case.py", line 691 in run
...

test.pythoninfo: OpenSSL 3.6.1

platform.platform: macOS-26.2-arm64-arm-64bit-Mach-O

ssl.HAS_SNI: True
ssl.OPENSSL_VERSION: OpenSSL 3.6.1 27 Jan 2026
ssl.OPENSSL_VERSION_INFO: (3, 6, 0, 1, 0)
ssl.OP_ALL: 0x80000050
ssl.OP_NO_TLSv1_1: 0x10000000
ssl.SSLContext.maximum_version: -1
ssl.SSLContext.minimum_version: 771
ssl.SSLContext.options: 2186412112
ssl.SSLContext.protocol: 16
ssl.SSLContext.verify_mode: 2
ssl.default_https_context.maximum_version: -1
ssl.default_https_context.minimum_version: 771
ssl.default_https_context.options: 2186412112
ssl.default_https_context.protocol: 16
ssl.default_https_context.verify_mode: 2
ssl.stdlib_context.maximum_version: -1
ssl.stdlib_context.minimum_version: 771
ssl.stdlib_context.options: 2186412112
ssl.stdlib_context.protocol: 16
ssl.stdlib_context.verify_mode: 0

ARM64 macOS 3.x:

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 Lib/test/test_ssl.py 中的 BasicSocketTests.test_connect_ex 开始,跟踪报告的调用,直到 Lib/ssl.py 中的 _real_connect 和 connect_ex。在 ARM64 macOS 3.x buildbot 环境中复现该测试,比较成功和失败的构建,并确认 test_connect_ex_error 不再挂起且 test_ssl 的运行能够完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
macos, python
领域
networking, security, testing-qa
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
冷清
描述清晰度
需要澄清
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。