python / python/cpython

"RuntimeError: dictionary changed size during iteration" using trace.py module

Open
#77,228 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

stdlib type-bug
Dominant language
Python
Stars
77.2k
Forks
36k
PR merge metrics
PR metrics pending

Description

BPO 33047
Nosy @rhettinger, @terryjreedy, @pfmoore, @abalkin, @pitrou, @tjguk, @pmp-p, @zware, @zooba, @Delgan
Files
  • minitrace.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 2018-03-11.17:19:59.113>
    labels = ['type-bug', 'library']
    title = '"RuntimeError: dictionary changed size during iteration" using trace.py module'
    updated_at = <Date 2018-03-17.18:28:51.406>
    user = 'https://github.com/Delgan'
    

    bugs.python.org fields:

    activity = <Date 2018-03-17.18:28:51.406>
    actor = 'terry.reedy'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2018-03-11.17:19:59.113>
    creator = 'Delgan'
    dependencies = []
    files = ['47493']
    hgrepos = []
    issue_num = 33047
    keywords = []
    message_count = 6.0
    messages = ['313604', '313789', '313978', '313986', '314003', '314010']
    nosy_count = 10.0
    nosy_names = ['rhettinger', 'terry.reedy', 'paul.moore', 'belopolsky', 'pitrou', 'tim.golden', 'pmpp', 'zach.ware', 'steve.dower', 'Delgan']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = None
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue33047'
    versions = ['Python 3.6']
    

    Contributor guide

    Open the contributing guide

    First steps

    1. Read the whole issue, then the project's contributing guide.
    2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
    3. Fork the repository and make your change on a branch.
    4. Open a pull request that references the issue number.

    Research direction

    Start by reviewing the uploaded minitrace.py reproduction and the trace.py library implementation to identify where the dictionary is modified during iteration. Reproduce the reported RuntimeError, then verify that using trace.py no longer raises it under the same scenario.

    Written by the indexing model from the issue text.

    Assessment

    Tech stack
    python
    Domain
    tooling
    Issue type
    Bug
    Difficulty
    3/5
    Estimated time
    1-2 days
    Activity status
    Stale
    Clarity
    Mostly clear
    Newbie friendliness
    35/100

    Get new issues in your inbox

    A short digest of beginner-friendly GitHub issues.