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.

Author ludvig.ericson
Recipients
Date 2007-03-22.22:00:13
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
When one uses a class that has derived BaseException in one way or another and uses an invalid super() and calls a function upon that object, Python dies with SIGSEGV.

Reproduce code:
>>> class X(BaseException):
...     def __init__(self):
...             super(X, self).__init__(self)
... 
>>> X()
Segmentation fault

I could reproduce this on two different Python 2.5 installations.

This is as much as I could get from gdb:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1211660624 (LWP 30234)]
0xb7ea601c in _PyObject_GC_Malloc () from /usr/lib/libpython2.5.so.1.0
(gdb) bt
#0  0xb7ea601c in _PyObject_GC_Malloc () from /usr/lib/libpython2.5.so.1.0
#1  0xb7ea613b in _PyObject_GC_NewVar () from /usr/lib/libpython2.5.so.1.0
#2  0xb7e4abe4 in PyTuple_New () from /usr/lib/libpython2.5.so.1.0
#3  0xb7e4b48d in ?? () from /usr/lib/libpython2.5.so.1.0
#4  0x00000001 in ?? ()
#5  0x00000000 in ?? ()
History
Date User Action Args
2007-08-23 14:52:42adminlinkissue1686386 messages
2007-08-23 14:52:42admincreate