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

Add private _PyErr_GetExcInfo() function which accepts a tstate argument #83345

Closed
jd mannequin opened this issue Dec 30, 2019 · 5 comments
Closed

Add private _PyErr_GetExcInfo() function which accepts a tstate argument #83345

jd mannequin opened this issue Dec 30, 2019 · 5 comments
Labels
3.9 only security fixes topic-C-API type-feature A feature request or enhancement

Comments

@jd
Copy link
Mannequin

jd mannequin commented Dec 30, 2019

BPO 39164
Nosy @vstinner, @jd
PRs
  • bpo-39164: errors: add and expose _PyErr_GetExcInfo #17752
  • bpo-39164: Fix compiler warning in PyErr_GetExcInfo() #18010
  • 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 2020-01-13.16:31:03.869>
    created_at = <Date 2019-12-30.10:36:38.864>
    labels = ['expert-C-API', 'type-feature', '3.9']
    title = 'Add private _PyErr_GetExcInfo() function which accepts a tstate argument'
    updated_at = <Date 2020-01-15.12:45:45.917>
    user = 'https://github.com/jd'

    bugs.python.org fields:

    activity = <Date 2020-01-15.12:45:45.917>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-01-13.16:31:03.869>
    closer = 'vstinner'
    components = ['C API']
    creation = <Date 2019-12-30.10:36:38.864>
    creator = 'jd'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 39164
    keywords = ['patch']
    message_count = 5.0
    messages = ['359029', '359030', '359917', '359918', '360049']
    nosy_count = 2.0
    nosy_names = ['vstinner', 'jd']
    pr_nums = ['17752', '18010']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue39164'
    versions = ['Python 3.9']

    @jd
    Copy link
    Mannequin Author

    jd mannequin commented Dec 30, 2019

    PyErr_GetExcInfo does not allow to retrieve exception information for an arbitrary thread. As it calls _PyThreadState_GET itself, it's impossible to get exception information for a different thread.

    @jd jd mannequin added 3.7 (EOL) end of life 3.8 only security fixes 3.9 only security fixes topic-C-API type-feature A feature request or enhancement labels Dec 30, 2019
    @jd
    Copy link
    Mannequin Author

    jd mannequin commented Dec 30, 2019

    @vstinner
    Copy link
    Member

    New changeset 3430c55 by Victor Stinner (Julien Danjou) in branch 'master':
    bpo-39164: Add private _PyErr_GetExcInfo() function (GH-17752)
    3430c55

    @vstinner
    Copy link
    Member

    Thanks Julien Danjou.

    @vstinner vstinner removed 3.7 (EOL) end of life 3.8 only security fixes labels Jan 13, 2020
    @vstinner vstinner removed the 3.7 (EOL) end of life label Jan 13, 2020
    @vstinner vstinner changed the title PyErr_GetExcInfo does not allow to retrieve for an arbitrary thread Add private _PyErr_GetExcInfo() function which accepts a tstate argument Jan 13, 2020
    @vstinner vstinner removed the 3.8 only security fixes label Jan 13, 2020
    @vstinner vstinner changed the title PyErr_GetExcInfo does not allow to retrieve for an arbitrary thread Add private _PyErr_GetExcInfo() function which accepts a tstate argument Jan 13, 2020
    @vstinner
    Copy link
    Member

    New changeset 3f12ac1 by Victor Stinner in branch 'master':
    bpo-39164: Fix compiler warning in PyErr_GetExcInfo() (GH-18010)
    3f12ac1

    @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
    3.9 only security fixes topic-C-API type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant