Skip to content

abort when passing certain structs by value using ctypes #66469

@weeble

Description

@weeble
mannequin
BPO 22273
Nosy @vsajip, @amauryfa, @abalkin, @vstinner, @meadori, @eryksun, @Kentzo
PRs
  • bpo-22273: Update ctypes to correctly handle arrays in small structur… #15839
  • [3.7] bpo-22273: Update ctypes to correctly handle arrays in small structur… (GH-15839) #16369
  • [3.8] bpo-22273: Update ctypes to correctly handle arrays in small structur… (GH-15839) #16370
  • bpo-22273: Disabled tests while investigating buildbot failures on ARM7L/PPC64. #16377
  • bpo-22273: Changed conditions for ctypes array-in-struct handling. #16381
  • bpo-22273: Re-enabled ctypes test on ARM machines. #16388
  • bpo-22273: Removed temporary test skipping on PPC platforms. #16399
  • [3.7] bpo-22273: Changed conditions for ctypes array-in-struct handling. (GH-16381) #16400
  • [3.8] bpo-22273: Changed conditions for ctypes array-in-struct handling. (GH-16381) #16401
  • bpo-38321: Fix PyCStructUnionType_update_stgdict() warning #16492
  • Files
  • fix-22273-01.diff: Test for structure with array seems to work on Windows, abort on LInux
  • fix-22273-02.diff: First cut patch to address issue.
  • fix-22273-03.diff: Patch updated to address Eryk's comments.
  • 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 = <Date 2019-09-26.06:55:39.781>
    created_at = <Date 2014-08-25.17:33:22.934>
    labels = ['ctypes', '3.7', '3.8', 'type-crash']
    title = 'abort when passing certain structs by value using ctypes'
    updated_at = <Date 2019-10-01.11:52:03.574>
    user = 'https://bugs.python.org/weeble'

    bugs.python.org fields:

    activity = <Date 2019-10-01.11:52:03.574>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-09-26.06:55:39.781>
    closer = 'vinay.sajip'
    components = ['ctypes']
    creation = <Date 2014-08-25.17:33:22.934>
    creator = 'weeble'
    dependencies = []
    files = ['46652', '46660', '46663']
    hgrepos = []
    issue_num = 22273
    keywords = ['patch']
    message_count = 38.0
    messages = ['225881', '226045', '235598', '287881', '288142', '288143', '288163', '288221', '288237', '288239', '288241', '288244', '288298', '288341', '288385', '288426', '288437', '288448', '288452', '288461', '288471', '288482', '288491', '288493', '309113', '309126', '353135', '353138', '353139', '353150', '353176', '353200', '353225', '353227', '353228', '353238', '353589', '353679']
    nosy_count = 9.0
    nosy_names = ['vinay.sajip', 'amaury.forgeotdarc', 'belopolsky', 'vstinner', 'weeble', 'meador.inge', 'eryksun', 'Ilya.Kulakov', 'alexei.romanov']
    pr_nums = ['15839', '16369', '16370', '16377', '16381', '16388', '16399', '16400', '16401', '16492']
    priority = 'high'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'crash'
    url = 'https://bugs.python.org/issue22273'
    versions = ['Python 3.7', 'Python 3.8']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)end of life3.8 (EOL)end of lifetopic-ctypestype-crashA hard crash of the interpreter, possibly with a core dump
      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