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

Exception.__init__() causes segfault #34319

Closed
ping mannequin opened this issue Apr 13, 2001 · 2 comments
Closed

Exception.__init__() causes segfault #34319

ping mannequin opened this issue Apr 13, 2001 · 2 comments
Assignees
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs)

Comments

@ping
Copy link
Mannequin

ping mannequin commented Apr 13, 2001

BPO 415879
Nosy @gvanrossum
Files
  • ceval.patch: patch to call_method() in ceval.c
  • 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/gvanrossum'
    closed_at = <Date 2001-04-13.15:43:00.000>
    created_at = <Date 2001-04-13.13:11:55.000>
    labels = ['interpreter-core']
    title = 'Exception.__init__() causes segfault'
    updated_at = <Date 2001-04-13.15:43:00.000>
    user = 'https://bugs.python.org/ping'

    bugs.python.org fields:

    activity = <Date 2001-04-13.15:43:00.000>
    actor = 'gvanrossum'
    assignee = 'gvanrossum'
    closed = True
    closed_date = None
    closer = None
    components = ['Interpreter Core']
    creation = <Date 2001-04-13.13:11:55.000>
    creator = 'ping'
    dependencies = []
    files = ['3263']
    hgrepos = []
    issue_num = 415879
    keywords = ['patch']
    message_count = 2.0
    messages = ['36350', '36351']
    nosy_count = 2.0
    nosy_names = ['gvanrossum', 'ping']
    pr_nums = []
    priority = 'high'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue415879'
    versions = []

    @ping
    Copy link
    Mannequin Author

    ping mannequin commented Apr 13, 2001

    Calling an unbound method on a C extension class
    without providing an instance can yield a segfault.
    Try "Exception.__init__()" or "ValueError.__init__()".

    This is a simple fix. The error-reporting bits in
    call_method mistakenly treat the misleadingly-named
    variable "func" as a function, when in fact it is a
    method.
    If we let get_func_name take care of the work, all is
    fine.

    @ping ping mannequin closed this as completed Apr 13, 2001
    @ping ping mannequin assigned gvanrossum Apr 13, 2001
    @ping ping mannequin added the interpreter-core (Objects, Python, Grammar, and Parser dirs) label Apr 13, 2001
    @ping ping mannequin closed this as completed Apr 13, 2001
    @ping ping mannequin assigned gvanrossum Apr 13, 2001
    @ping ping mannequin added the interpreter-core (Objects, Python, Grammar, and Parser dirs) label Apr 13, 2001
    @gvanrossum
    Copy link
    Member

    Logged In: YES
    user_id=6380

    Thanks! Checked in for Ping, who's taking some rest.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    interpreter-core (Objects, Python, Grammar, and Parser dirs)
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant