python / python/cpython

test.test_socket.RDSTest.testPeek hangs indefinitely in docker container

オープン
#136,110 コメント 2 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

tests topic-socket type-bug
主要言語
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:

  1. Install necessary packages for compilation.
  2. Download https://www.python.org/ftp/python/3.12.10/Python-3.12.10.tgz
  3. 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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. 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

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。