Skip to content

PyContextVar_Get(): crash due to race condition in updating tstate->id #83957

@boytsovea

Description

@boytsovea
mannequin
BPO 39776
Nosy @vstinner, @ned-deily, @skrah, @ambv, @1st1
PRs
  • bpo-39776: Lock ++interp->tstate_next_unique_id. (GH-18746) #18746
  • [3.8] bpo-39776: Lock ++interp->tstate_next_unique_id. (GH-18746)  #18752
  • [3.7] bpo-39776: Lock ++interp->tstate_next_unique_id (GH-18746) #18753
  • Files
  • decimal_crash.zip: files to reproduce the bug
  • threaded_crash.zip
  • pydecimal_cases.zip: _pydecimal cases
  • 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 = 'https://github.com/skrah'
    closed_at = <Date 2020-03-03.16:21:32.281>
    created_at = <Date 2020-02-27.15:25:13.411>
    labels = ['interpreter-core', '3.8', '3.9', 'release-blocker', '3.7', 'type-crash']
    title = 'PyContextVar_Get(): crash due to race condition in updating tstate->id'
    updated_at = <Date 2020-03-05.00:42:46.093>
    user = 'https://bugs.python.org/boytsovea'

    bugs.python.org fields:

    activity = <Date 2020-03-05.00:42:46.093>
    actor = 'yselivanov'
    assignee = 'skrah'
    closed = True
    closed_date = <Date 2020-03-03.16:21:32.281>
    closer = 'skrah'
    components = ['Interpreter Core']
    creation = <Date 2020-02-27.15:25:13.411>
    creator = 'boytsovea'
    dependencies = []
    files = ['48923', '48930', '48945']
    hgrepos = []
    issue_num = 39776
    keywords = ['patch', '3.7regression']
    message_count = 25.0
    messages = ['362807', '362812', '362820', '362825', '362834', '362865', '362869', '362875', '362876', '362877', '362878', '362880', '362882', '362885', '363192', '363208', '363239', '363240', '363248', '363266', '363267', '363270', '363274', '363338', '363406']
    nosy_count = 6.0
    nosy_names = ['vstinner', 'ned.deily', 'skrah', 'lukasz.langa', 'yselivanov', 'boytsovea']
    pr_nums = ['18746', '18752', '18753']
    priority = 'release blocker'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'crash'
    url = 'https://bugs.python.org/issue39776'
    versions = ['Python 3.7', 'Python 3.8', 'Python 3.9']

    Metadata

    Metadata

    Assignees

    Labels

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions