python / python/cpython

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

Aperta
#136,110 2 commenti 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

tests topic-socket type-bug
Lingua principale
Python
Stelle
77.2k
Fork
35.9k
Metriche di merge delle PR
Metriche PR in attesa

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Riproduci il blocco con ./python -m test test_socket -m test.test_socket.RDSTest.testPeek -v nella configurazione Docker/Linux indicata. Inizia da test.test_socket.RDSTest.testPeek e confronta il comportamento con l’issue #79428; il lavoro è completato quando il test termina in modo affidabile alla sua prima esecuzione senza attendere indefinitamente.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
python
Ambito
networking, testing-qa
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.