_tkinter PythonCmd fails to acquire GIL

Open
#84,256 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
desktop

Research direction

Start by reproducing the failure with simple_tk_demo.py, then compare the behavior with qt_tk_demo.py. Review tstate_acquire.diff and the existing pull requests #19178 and #22453; done means the minimal examples no longer trigger the reported GIL-acquisition crash.

Written by the indexing model from the issue text.

Description

3.10 3.8 (EOL) 3.9 (EOL) topic-tkinter type-crash
BPO 40075
Nosy @pfmoore, @tjguk, @zware, @serhiy-storchaka, @zooba, @speleo3, @E-Paine
PRs
  • python/cpython#19178
  • python/cpython#22453
  • Files
  • qt_tk_demo.py: Minimal example
  • simple_tk_demo.py: Minimal example with only stdlib
  • tstate_acquire.diff
  • 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 2020-03-26.12:16:09.801>
    labels = ['3.8', '3.10', 'expert-tkinter', '3.9', 'type-crash']
    title = '_tkinter PythonCmd fails to acquire GIL'
    updated_at = <Date 2020-09-29.17:45:58.334>
    user = 'https://github.com/speleo3'
    

    bugs.python.org fields:

    activity = <Date 2020-09-29.17:45:58.334>
    actor = 'speleo3'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Tkinter']
    creation = <Date 2020-03-26.12:16:09.801>
    creator = 'speleo3'
    dependencies = []
    files = ['49002', '49349', '49350']
    hgrepos = []
    issue_num = 40075
    keywords = ['patch']
    message_count = 8.0
    messages = ['365064', '374567', '374587', '374602', '374608', '377672', '377675', '377676']
    nosy_count = 7.0
    nosy_names = ['paul.moore', 'tim.golden', 'zach.ware', 'serhiy.storchaka', 'steve.dower', 'speleo3', 'epaine']
    pr_nums = ['19178', '22453']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'crash'
    url = 'https://bugs.python.org/issue40075'
    versions = ['Python 3.8', 'Python 3.9', 'Python 3.10']
    

    Dominant language
    Python
    Stars
    77.2k
    Forks
    36k
    Avg merge
    1d 9h
    Merged PRs (30d)
    558

    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.

    More from python/cpython

    All issues in python/cpython

    Similar issues

    More Python issues

    Get new issues in your inbox

    A short digest of beginner-friendly GitHub issues.