Skip to content

Undefined behavior calling C functions with ctypes.Union arguments #70815

@tilsche

Description

@tilsche
mannequin
BPO 26628
Nosy @vsajip, @mwichmann, @amauryfa, @abalkin, @meadori, @eryksun
Dependencies
  • bpo-16575: ctypes: unions as arguments
  • Files
  • unioncrash.py: minimal example
  • libfoo.c: example library taking union argument
  • pyfoo.py: example call to the library that crashes
  • 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-12-06.06:59:42.334>
    created_at = <Date 2016-03-23.20:52:16.106>
    labels = ['ctypes', 'type-crash']
    title = 'Undefined behavior calling C functions with ctypes.Union arguments'
    updated_at = <Date 2020-04-07.12:59:46.561>
    user = 'https://bugs.python.org/tilsche'

    bugs.python.org fields:

    activity = <Date 2020-04-07.12:59:46.561>
    actor = 'mwichmann'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-12-06.06:59:42.334>
    closer = 'vinay.sajip'
    components = ['ctypes']
    creation = <Date 2016-03-23.20:52:16.106>
    creator = 'tilsche'
    dependencies = ['16575']
    files = ['42263', '42372', '42373']
    hgrepos = []
    issue_num = 26628
    keywords = []
    message_count = 7.0
    messages = ['262307', '262310', '262342', '262397', '262899', '357903', '365904']
    nosy_count = 7.0
    nosy_names = ['vinay.sajip', 'mwichmann', 'amaury.forgeotdarc', 'belopolsky', 'meador.inge', 'eryksun', 'tilsche']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'crash'
    url = 'https://bugs.python.org/issue26628'
    versions = ['Python 2.7', 'Python 3.5', 'Python 3.6']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      topic-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