Message31624
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 ?? ()
|
|
Date |
User |
Action |
Args |
2007-08-23 14:52:42 | admin | link | issue1686386 messages |
2007-08-23 14:52:42 | admin | create | |
|