python / python/cpython

Race conditions in Tkinter with non-threaded Tcl

Aperta
#77,438 34 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

3.7 (EOL) 3.8 (EOL) topic-tkinter type-crash
Lingua principale
Python
Stelle
77.2k
Fork
36k
Merge medio
1g 9h
PR unite (30g)
558

Descrizione

BPO 33257
Nosy @terryjreedy, @roseman, @serhiy-storchaka, @native-api
PRs
  • python/cpython#6444
  • python/cpython#6972
  • python/cpython#6990
  • Files
  • TkinterCrash2-2.py: Py2 version, crashing
  • TkinterCrash3-2-2.py: Py3 version, working
  • TkinterHanders.py
  • TkinterHanders3.py
  • 0001-Build-non-threaded-debug-Tcl.zip: For testing only! Build master (win64) with nonthreaded debug Tcl
  • 0001-build-2.7-with-threaded-Tcl.patch: For testing only! Build 2.7 (win64) with threaded Tcl
  • test_threads_tk.py: reproduce hang when creating multiple Tk's
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2018-04-10.16:41:09.432>
    labels = ['3.8', '3.7', 'expert-tkinter', 'type-crash']
    title = 'Race conditions in Tkinter with non-threaded Tcl'
    updated_at = <Date 2018-10-27.23:10:44.251>
    user = 'https://github.com/native-api'
    

    bugs.python.org fields:

    activity = <Date 2018-10-27.23:10:44.251>
    actor = 'terry.reedy'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Tkinter']
    creation = <Date 2018-04-10.16:41:09.432>
    creator = 'Ivan.Pozdeev'
    dependencies = []
    files = ['47529', '47530', '47536', '47561', '47565', '47566', '47620']
    hgrepos = []
    issue_num = 33257
    keywords = ['patch']
    message_count = 29.0
    messages = ['315172', '315271', '315283', '315285', '315286', '315304', '315878', '315899', '316087', '316089', '316092', '316093', '316095', '316096', '316097', '316098', '316099', '316100', '316103', '316105', '316106', '316241', '316265', '316418', '316451', '316689', '316921', '317875', '328662']
    nosy_count = 5.0
    nosy_names = ['terry.reedy', 'markroseman', 'PythonInTheGrass', 'serhiy.storchaka', 'Ivan.Pozdeev']
    pr_nums = ['6444', '6972', '6990']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'crash'
    url = 'https://bugs.python.org/issue33257'
    versions = ['Python 2.7', 'Python 3.6', 'Python 3.7', 'Python 3.8']
    

    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

    Inizia con i riproduttori forniti TkinterCrash2-2.py, TkinterCrash3-2-2.py e test_threads_tk.py, quindi leggi TkinterHanders.py e TkinterHanders3.py. Esamina le pull request esistenti 6444, 6972 e 6990 prima di apportare modifiche. L’issue è in revisione della patch, quindi il completamento richiede di risolvere le race condition segnalate e validare i casi di riproduzione.

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

    Valutazione

    Stack tecnologico
    python
    Ambito
    desktop
    Tipo di issue
    Bug
    Difficoltà
    5/5
    Tempo stimato
    Più di una settimana
    Stato di attività
    Ferma
    Chiarezza
    Da chiarire
    Idoneità per principianti
    20/100

    Ricevi le nuove issue nella tua casella

    Un breve riepilogo di issue GitHub adatte ai principianti.