[Python-bugs-list] [ python-Bugs-551551 ] type->tp_mro NULL, typeobject.c:1217

noreply@sourceforge.net noreply@sourceforge.net
Thu, 02 May 2002 12:20:04 -0700


Bugs item #551551, was opened at 2002-05-02 19:20
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=551551&group_id=5470

Category: Python Interpreter Core
Group: Python 2.2.1 candidate
Status: Open
Resolution: None
Priority: 5
Submitted By: Luke Kenneth Casson Leighton (lkcl)
Assigned to: Nobody/Anonymous (nobody)
Summary: type->tp_mro NULL, typeobject.c:1217

Initial Comment:
a segfault occurs at line 1217 in typeobject.c due to
type->tp_mro being NULL.

the following small testcode example repros the case:

class UserLong(object):

    def __pow__(self, *args):
        print "don't have to do anything, just declare
the function"
        print "putting def __pow__(self, x, y): doesn't
affect segfault"

print pow(5, UserLong(3L), 26)


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

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