This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Exception.__init__() causes segfault
Type: Stage:
Components: Interpreter Core Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: gvanrossum Nosy List: gvanrossum, ping
Priority: high Keywords: patch

Created on 2001-04-13 13:11 by ping, last changed 2022-04-10 16:03 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
ceval.patch ping, 2001-04-13 13:11 patch to call_method() in ceval.c
Messages (2)
msg36350 - (view) Author: Ka-Ping Yee (ping) * (Python committer) Date: 2001-04-13 13:11
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.
msg36351 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2001-04-13 15:43
Logged In: YES 
user_id=6380

Thanks!  Checked in for Ping, who's taking some rest.
History
Date User Action Args
2022-04-10 16:03:57adminsetgithub: 34319
2001-04-13 13:11:55pingcreate