[Patches] [ python-Patches-415879 ] Exception.__init__() causes segfault

noreply@sourceforge.net noreply@sourceforge.net
Fri, 13 Apr 2001 08:43:00 -0700


Patches item #415879, was updated on 2001-04-13 06:11
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=415879&group_id=5470

Category: core (C code)
Group: None
>Status: Closed
Priority: 7
Submitted By: Ka-Ping Yee (ping)
>Assigned to: Guido van Rossum (gvanrossum)
Summary: Exception.__init__() causes segfault

Initial Comment:
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.

----------------------------------------------------------------------

>Comment By: Guido van Rossum (gvanrossum)
Date: 2001-04-13 08:43

Message:
Logged In: YES 
user_id=6380

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

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=415879&group_id=5470