[New-bugs-announce] [issue5787] object.__getattribute__(super, '__bases__') crashes the interpreter.

Aleksi Torhamo report at bugs.python.org
Sat Apr 18 19:45:18 CEST 2009


New submission from Aleksi Torhamo <alexerion+pythonbugs at gmail.com>:

object.__getattribute__(super, '__bases__') crashes the interpreter.

It seems to happen at Objects/typeobject.c in type_get_bases(), when
tp_bases is NULL.

Crashing types in __builtins__ per version would seem to be:
python2.4: slice frozenset super staticmethod float enumerate long
xrange tuple reversed property complex buffer classmethod
python2.5: slice frozenset super staticmethod float enumerate long
xrange reversed property complex buffer classmethod
python2.6: slice super staticmethod float enumerate long xrange reversed
python3.0: memoryview slice super filter range staticmethod float
enumerate reversed map

2.7 and 3.1 not tested since i don't have them installed.

----------
components: Interpreter Core
messages: 86126
nosy: alexer
severity: normal
status: open
title: object.__getattribute__(super, '__bases__') crashes the interpreter.
type: crash
versions: Python 2.4, Python 2.5, Python 2.6, Python 3.0

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5787>
_______________________________________


More information about the New-bugs-announce mailing list