python / python/cpython

multiprocessing.Condition.notify_all() blocks indefinitely if a process waiting on it has died

Offen
#75,158 4 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

3.7 (EOL) OS-windows topic-multiprocessing type-bug
Vorherrschende Sprache
Python
Sterne
77.2k
Forks
36k
Ø Merge
1 T. 9 Std.
Gemergte PRs (30 T.)
558

Beschreibung

BPO 30975
Nosy @pfmoore, @pitrou, @tjguk, @zware, @zooba, @applio, @mickp
Files
  • WaitersSleepers.py: A script to demonstrate to the issue.
  • WaitersSleepers.py
  • 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 2017-07-20.11:29:48.884>
    labels = ['type-bug', '3.7', 'OS-windows']
    title = 'multiprocessing.Condition.notify_all() blocks indefinitely if a process waiting on it has died'
    updated_at = <Date 2017-07-20.14:20:00.088>
    user = 'https://github.com/mickp'
    

    bugs.python.org fields:

    activity = <Date 2017-07-20.14:20:00.088>
    actor = 'pitrou'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Windows']
    creation = <Date 2017-07-20.11:29:48.884>
    creator = 'mickp'
    dependencies = []
    files = ['47025', '47027']
    hgrepos = []
    issue_num = 30975
    keywords = []
    message_count = 4.0
    messages = ['298713', '298719', '298720', '298722']
    nosy_count = 8.0
    nosy_names = ['paul.moore', 'pitrou', 'tim.golden', 'sbt', 'zach.ware', 'steve.dower', 'davin', 'mickp']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = 'needs patch'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue30975'
    versions = ['Python 2.7', 'Python 3.5', 'Python 3.6', 'Python 3.7']
    

    Beitragsleitfaden

    Beitragsleitfaden öffnen

    Erste Schritte

    1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
    2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
    3. Forke das Repository und arbeite in einem Branch.
    4. Öffne einen Pull Request, der die Issue-Nummer nennt.

    Rechercherichtung

    Führen Sie zunächst den angehängten Reproducer WaitersSleepers.py aus und vergleichen Sie die beiden hochgeladenen Versionen, die WaitersSleepers.py-Dateien 47025 und 47027. Verfolgen Sie das Verhalten von Windows multiprocessing.Condition, wenn ein wartender Prozess beendet wird, und überprüfen Sie anschließend, dass notify_all() in diesem Szenario zurückkehrt, anstatt auf unbestimmte Zeit zu blockieren.

    Vom Indexierungsmodell aus dem Issue-Text verfasst.

    Bewertung

    Tech-Stack
    python
    Bereich
    operating-systems
    Issue-Typ
    Bug
    Schwierigkeit
    4/5
    Geschätzter Aufwand
    3-5 Tage
    Aktivitätsstatus
    Veraltet
    Klarheit
    Größtenteils klar
    Anfängerfreundlichkeit
    35/100

    Neue Issues direkt in Ihr Postfach

    Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.