Staging
v0.5.1
https://github.com/python/cpython
Revision d9994e0115e1acfd6d3d97a048af9616778af95c authored by Guido van Rossum on 13 April 2001, 15:42:40 UTC, committed by Guido van Rossum on 13 April 2001, 15:42:40 UTC
   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.
1 parent d03f8fe
History
Tip revision: d9994e0115e1acfd6d3d97a048af9616778af95c authored by Guido van Rossum on 13 April 2001, 15:42:40 UTC
Patch by Ping (SF bug 415879, Exception.__init__() causes segfault):
Tip revision: d9994e0
File Mode Size
malloc
old
projects
errno_unix.h -rw-r--r-- 2.1 KB
macuseshlstart.c -rw-r--r-- 425 bytes
mwerks_applet_config.h -rw-r--r-- 1.8 KB
mwerks_carbonNOGUSI_config.h -rw-r--r-- 2.2 KB
mwerks_carbon_config.h -rw-r--r-- 2.2 KB
mwerks_carbongusi_config.h -rw-r--r-- 2.1 KB
mwerks_carbonplugin_config.h -rw-r--r-- 699 bytes
mwerks_config.h -rw-r--r-- 40 bytes
mwerks_nonshared_config.h -rw-r--r-- 2.0 KB
mwerks_nscarbon_config.h -rw-r--r-- 2.3 KB
mwerks_plugin_config.h -rw-r--r-- 506 bytes
mwerks_shared_config.h -rw-r--r-- 2.1 KB
mwerks_shcarbon_config.h -rw-r--r-- 2.4 KB
mwerks_shlib_config.h -rw-r--r-- 72 bytes
mwerks_small_config.h -rw-r--r-- 2.0 KB
mwerks_thrcarbonsm_config.h -rw-r--r-- 2.3 KB
mwerks_threadsmall_config.h -rw-r--r-- 1.9 KB
mwerks_tkplugin_config.h -rw-r--r-- 427 bytes
mwfopenrf.c -rw-r--r-- 2.4 KB

back to top