Skip to content

asyncio.Lock deadlock after cancellation #71772

@sss

Description

@sss
mannequin
BPO 27585
Nosy @vstinner, @bitdancer, @1st1, @msornay
PRs
  • bpo-27585: Cancelled lock waiter wakes up the next one #1031
  • bpo-27585: Add a NEWS entry for #1031 #2036
  • [3.6] bpo-27585: Fix waiter cancellation in asyncio.Lock #2037
  • [3.5] bpo-27585: Fix waiter cancellation in asyncio.Lock #2038
  • Files
  • lock.py
  • lock2.py: reproducer
  • deadlock.py
  • deadlock2.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 = <Date 2017-06-09.21:09:58.599>
    created_at = <Date 2016-07-21.17:06:41.344>
    labels = ['3.7', 'expert-asyncio']
    title = 'asyncio.Lock deadlock after cancellation'
    updated_at = <Date 2017-06-09.21:09:58.597>
    user = 'https://bugs.python.org/sss'

    bugs.python.org fields:

    activity = <Date 2017-06-09.21:09:58.597>
    actor = 'yselivanov'
    assignee = 'none'
    closed = True
    closed_date = <Date 2017-06-09.21:09:58.599>
    closer = 'yselivanov'
    components = ['asyncio']
    creation = <Date 2016-07-21.17:06:41.344>
    creator = 'sss'
    dependencies = []
    files = ['43820', '44007', '45489', '46876']
    hgrepos = []
    issue_num = 27585
    keywords = []
    message_count = 15.0
    messages = ['270944', '270947', '271962', '271986', '271987', '271990', '271999', '272042', '280873', '280874', '280938', '293922', '293925', '293929', '295568']
    nosy_count = 6.0
    nosy_names = ['vstinner', 'r.david.murray', 'yselivanov', 'msornay', 'sss', 'Alexey Popravka']
    pr_nums = ['1031', '2036', '2037', '2038']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue27585'
    versions = ['Python 3.5', 'Python 3.6', 'Python 3.7']

    Metadata

    Metadata

    Assignees

    No one assigned

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions