test.test_socket.RDSTest.testPeek hangs indefinitely in docker container
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 77.2k
- 派生
- 35.9k
- PR 合并指标
- PR 指标待抓取
描述
Bug report
Bug description:
Execution of test_socket.RDSTest.testPeek hangs indefinitely in docker container for Python 3.12.10.
Reproduced on ArchLinux, Docker version 28.2.2, official images Ubuntu 18:04 and Ubuntu 24:04.
Steps:
- Install necessary packages for compilation.
- Download https://www.python.org/ftp/python/3.12.10/Python-3.12.10.tgz
- Do 'configure', 'make'. then execute
./python -m test test_socket -m test.test_socket.RDSTest.testPeek -v
The test is stuck. There is no error output, just 'testPeek (test.test_socket.RDSTest.testPeek) ...'.
Strace shows that the process waits for an answer from socket.
If you interrupt and rerun the same test - it completes without issues.
Seems to be the same issue as in https://github.com/python/cpython/issues/79428.
CPython versions tested on:
3.13.5
Operating systems tested on:
Linux
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
在报告的 Docker/Linux 环境中,使用 ./python -m test test_socket -m test.test_socket.RDSTest.testPeek -v 重现挂起问题。从 test.test_socket.RDSTest.testPeek 开始,并将其行为与 issue #79428 进行比较;完成的标准是测试在首次运行时能够可靠地完成,而不会无限期等待。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- networking, testing-qa
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100