[PyKDE] Segmentation fault with anonymous enum

Denis S. Otkidach ods at strana.ru
Thu Jun 30 17:27:00 BST 2005


If I define single enum in module (no other entries constants), then I
have no enummembers in generated file and it's not exposed in module. 
If I have other (non-anonymous) enums, then adding anonymouse one causes
segmentation fault when module is imported:

#0  PyObject_Call (func=0x11, arg=0x3146cc, kw=0x0) at Objects/abstract.c:1750
1750            if ((call = func->ob_type->tp_call) != NULL) {
(gdb) bt
#0  PyObject_Call (func=0x11, arg=0x3146cc, kw=0x0) at Objects/abstract.c:1750
#1  0x003d8671 in initsip ()
   from sip.so
#2  0x003d616b in initsip ()
   from sip.so
#3  0x00371d50 in inittest () from ./test.so

-- 
Denis S. Otkidach
http://www.python.ru/      [ru]




More information about the PyQt mailing list