python / python/cpython

ctypes callback with structure crashes in Python 3.8 on Windows x86

Open
#85,193 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

3.10 3.8 (EOL) 3.9 (EOL) OS-windows topic-ctypes type-crash
Dominant language
Python
Stars
77.2k
Forks
36k
PR merge metrics
PR metrics pending

Description

BPO 41021
Nosy @pfmoore, @vsajip, @amauryfa, @abalkin, @tjguk, @meadori, @zware, @eryksun, @zooba, @itsgk92
Files
  • callback.zip: source zip
  • 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-06-18.09:26:16.751>
    labels = ['3.8', 'type-crash', '3.10', 'ctypes', 'OS-windows', '3.9']
    title = 'ctypes callback with structure crashes in Python 3.8 on Windows x86'
    updated_at = <Date 2022-02-07.17:22:23.797>
    user = 'https://github.com/itsgk92'
    

    bugs.python.org fields:

    activity = <Date 2022-02-07.17:22:23.797>
    actor = 'steve.dower'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Windows', 'ctypes']
    creation = <Date 2020-06-18.09:26:16.751>
    creator = 'itsgk92'
    dependencies = []
    files = ['49253']
    hgrepos = []
    issue_num = 41021
    keywords = []
    message_count = 8.0
    messages = ['371796', '371844', '371851', '371920', '402695', '403035', '412729', '412771']
    nosy_count = 11.0
    nosy_names = ['paul.moore', 'vinay.sajip', 'amaury.forgeotdarc', 'belopolsky', 'tim.golden', 'meador.inge', 'zach.ware', 'eryksun', 'steve.dower', 'itsgk92', 'xs_iceman']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = 'test needed'
    status = 'open'
    superseder = None
    type = 'crash'
    url = 'https://bugs.python.org/issue41021'
    versions = ['Python 3.8', 'Python 3.9', 'Python 3.10']
    

    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 reproducing the crash from callback.zip on Windows x86 with the affected Python 3.8–3.10 ctypes configurations. Trace the ctypes callback handling and add the regression coverage indicated by the issue’s “test needed” stage; done means the reproducer no longer crashes and the test passes.

    Written by the indexing model from the issue text.

    Assessment

    Tech stack
    python
    Domain
    operating-systems, testing-qa
    Issue type
    Bug
    Difficulty
    4/5
    Estimated time
    3-5 days
    Activity status
    Stale
    Clarity
    Needs clarification
    Newbie friendliness
    35/100

    Get new issues in your inbox

    A short digest of beginner-friendly GitHub issues.