[issue5787] object.__getattribute__(super, '__bases__') crashes the interpreter.
New submission from Aleksi Torhamo alexerion+pythonb...@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 rep...@bugs.python.org http://bugs.python.org/issue5787 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5787] object.__getattribute__(super, '__bases__') crashes the interpreter.
Benjamin Peterson benja...@python.org added the comment: Should be fixed in r71722. -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5787 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5787] object.__getattribute__(super, '__bases__') crashes the interpreter.
Aarni Koskela a...@iki.fi added the comment: The r71722 patch has several typos (replace initalize with initialize). -- nosy: +akx ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5787 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5787] object.__getattribute__(super, '__bases__') crashes the interpreter.
Aleksi Torhamo alexerion+pythonb...@gmail.com added the comment: Just verified that r71722 fixes all the builtins, however i just noticed that some types under module types cause segfaults too. Under python2.7 those are: CodeType BuiltinMethodType DictProxyType GeneratorType GetSetDescriptorType EllipsisType FrameType InstanceType MemberDescriptorType Not sure, but i'm guessing there might be yet more types somewhere, that need fixing (as the only places i've looked at are __builtins__ and types - the first ones to cause problems/come to mind). Would there be some way to find out all defined types, or to fix this for all types in a single place? -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5787 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5787] object.__getattribute__(super, '__bases__') crashes the interpreter.
Benjamin Peterson benja...@python.org added the comment: The rest should be fixed in r71734. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5787 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5787] object.__getattribute__(super, '__bases__') crashes the interpreter.
Changes by Benjamin Peterson benja...@python.org: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5787 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5787] object.__getattribute__(super, '__bases__') crashes the interpreter.
Aleksi Torhamo alexerion+pythonb...@gmail.com added the comment: Stumbled upon a few more. python2.4/2.5: socket.SSLType re._pattern_type weakref.ProxyType weakref.CallableProxyType python2.6/2.7: weakref.ProxyType weakref.CallableProxyType python3.0: weakref.ProxyType weakref.CallableProxyType _abcoll.dict_proxy I'll also mention MLab.arraytype and MLab.UfuncType, though they are in a third-party module.. Btw, should this be kept open until this is backported to 2.4/2.5 as well? -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5787 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5787] object.__getattribute__(super, '__bases__') crashes the interpreter.
Benjamin Peterson benja...@python.org added the comment: Fixed the ones applicable to 2.7/2.6 in r71738. These fixes won't be backported to 2.4/2.5. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5787 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com