Skip to content

Local variable assignment is broken when combined with threads + tracing + closures #74929

Closed
@njsmith

Description

BPO 30744
Nosy @arigo, @ncoghlan, @abalkin, @benjaminp, @njsmith, @xdegaye, @markshannon, @1st1, @xgid
PRs
  • [PEP 558 - WIP] bpo-30744: Trace hooks no longer reset closure state #3640
  • bpo-35134: Migrate frameobject.h contents to cpython/frameobject.h #18052
  • Dependencies
  • bpo-17960: Clarify the required behaviour of locals()
  • Files
  • thread-closure-bug-demo.py
  • x.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 = 'https://github.com/ncoghlan'
    closed_at = None
    created_at = <Date 2017-06-24.04:05:28.903>
    labels = ['interpreter-core', '3.10']
    title = 'Local variable assignment is broken when combined with threads + tracing + closures'
    updated_at = <Date 2021-01-29.16:12:19.866>
    user = 'https://github.com/njsmith'

    bugs.python.org fields:

    activity = <Date 2021-01-29.16:12:19.866>
    actor = 'terry.reedy'
    assignee = 'ncoghlan'
    closed = False
    closed_date = None
    closer = None
    components = ['Interpreter Core']
    creation = <Date 2017-06-24.04:05:28.903>
    creator = 'njs'
    dependencies = ['17960']
    files = ['46971', '46972']
    hgrepos = []
    issue_num = 30744
    keywords = ['patch']
    message_count = 48.0
    messages = ['296751', '296756', '296757', '296758', '296770', '296806', '296808', '296810', '296841', '296882', '297145', '297150', '297254', '297259', '297480', '297503', '297504', '301769', '301786', '301856', '302420', '302475', '302505', '304099', '304297', '304307', '304315', '304317', '304319', '304323', '304325', '304329', '304345', '304371', '304377', '304381', '304388', '304398', '304399', '304414', '304415', '304416', '304419', '304730', '304745', '304753', '304754', '305586']
    nosy_count = 10.0
    nosy_names = ['arigo', 'ncoghlan', 'belopolsky', 'benjamin.peterson', 'ionelmc', 'njs', 'xdegaye', 'Mark.Shannon', 'yselivanov', 'xgdomingo']
    pr_nums = ['3640', '18052']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue30744'
    versions = ['Python 3.10']

    Linked PRs

    Metadata

    Assignees

    Labels

    3.10only security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions