Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyErr_Format in ctypes uses invalid parameter #67527

Closed
mkato mannequin opened this issue Jan 28, 2015 · 7 comments
Closed

PyErr_Format in ctypes uses invalid parameter #67527

mkato mannequin opened this issue Jan 28, 2015 · 7 comments
Assignees
Labels
topic-ctypes type-bug An unexpected behavior, bug, or error

Comments

@mkato
Copy link
Mannequin

mkato mannequin commented Jan 28, 2015

BPO 23338
Nosy @amauryfa, @abalkin, @vstinner, @meadori, @serhiy-storchaka, @ma8ma
Files
  • py.patch: for master branch
  • py27.patch: for 2.7 branch
  • 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 = 'https://github.com/serhiy-storchaka'
    closed_at = <Date 2015-04-04.07:15:39.046>
    created_at = <Date 2015-01-28.10:52:51.305>
    labels = ['ctypes', 'type-bug']
    title = 'PyErr_Format in ctypes uses invalid parameter'
    updated_at = <Date 2015-04-04.07:15:39.044>
    user = 'https://bugs.python.org/mkato'

    bugs.python.org fields:

    activity = <Date 2015-04-04.07:15:39.044>
    actor = 'serhiy.storchaka'
    assignee = 'serhiy.storchaka'
    closed = True
    closed_date = <Date 2015-04-04.07:15:39.046>
    closer = 'serhiy.storchaka'
    components = ['ctypes']
    creation = <Date 2015-01-28.10:52:51.305>
    creator = 'mkato'
    dependencies = []
    files = ['37917', '37918']
    hgrepos = ['294', '296']
    issue_num = 23338
    keywords = ['patch']
    message_count = 7.0
    messages = ['234886', '234887', '234934', '235025', '235026', '240047', '240049']
    nosy_count = 8.0
    nosy_names = ['amaury.forgeotdarc', 'belopolsky', 'vstinner', 'meador.inge', 'python-dev', 'serhiy.storchaka', 'masamoto', 'mkato']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue23338'
    versions = ['Python 2.7', 'Python 3.4', 'Python 3.5']

    @mkato
    Copy link
    Mannequin Author

    mkato mannequin commented Jan 28, 2015

    This is CYGWIN build only.

    When ctypes cannot find function in CDataType_in_dll, it uses PyErr_Format. But it passes invalid parameters.

    @mkato mkato mannequin added type-crash A hard crash of the interpreter, possibly with a core dump topic-ctypes labels Jan 28, 2015
    @mkato
    Copy link
    Mannequin Author

    mkato mannequin commented Jan 28, 2015

    add fix for ctypes of 2.7 branch.

    I don't know correct way to attach patch and process for patch. (I am new commer). So please let me know correct way if incorrect.

    @mkato
    Copy link
    Mannequin Author

    mkato mannequin commented Jan 29, 2015

    for master

    @mkato
    Copy link
    Mannequin Author

    mkato mannequin commented Jan 30, 2015

    updated. for master

    @mkato
    Copy link
    Mannequin Author

    mkato mannequin commented Jan 30, 2015

    updated for python 2.7

    @berkerpeksag berkerpeksag added type-bug An unexpected behavior, bug, or error and removed type-crash A hard crash of the interpreter, possibly with a core dump labels Mar 31, 2015
    @serhiy-storchaka serhiy-storchaka self-assigned this Apr 4, 2015
    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Apr 4, 2015

    New changeset 1f28c8cca671 by Serhiy Storchaka in branch '2.7':
    Issue bpo-23338: Fixed formatting ctypes error messages on Cygwin.
    https://hg.python.org/cpython/rev/1f28c8cca671

    New changeset 36eca0b259e2 by Serhiy Storchaka in branch '3.4':
    Issue bpo-23338: Fixed formatting ctypes error messages on Cygwin.
    https://hg.python.org/cpython/rev/36eca0b259e2

    New changeset 3eb3a6d45251 by Serhiy Storchaka in branch 'default':
    Issue bpo-23338: Fixed formatting ctypes error messages on Cygwin.
    https://hg.python.org/cpython/rev/3eb3a6d45251

    @serhiy-storchaka
    Copy link
    Member

    Thank you for your contribution Makoto.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    topic-ctypes type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants