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: type->tp_mro NULL, typeobject.c:1217
Type: Stage:
Components: Interpreter Core Versions: Python 2.2
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: mwh Nosy List: lkcl, mwh
Priority: normal Keywords:

Created on 2002-05-02 19:20 by lkcl, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Messages (2)
msg10644 - (view) Author: Luke Kenneth Casson Leighton (lkcl) Date: 2002-05-02 19:20
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)
msg10645 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2002-05-07 13:14
Logged In: YES 
user_id=6656

Oops, I forgot to mark this as a dup of

[ 551412 ] possible to fail to calc mro's

(there's a touch more info in that report).
History
Date User Action Args
2022-04-10 16:05:17adminsetgithub: 36541
2002-05-02 19:20:04lkclcreate