[PyKDE] segfault in kdecore using dcop call

Miguel Angel Alvarez maacruz at gmail.com
Thu Apr 6 19:45:43 BST 2006


Hi,

Trying to use a dcop call with a bool argument causes a segfault.
dcop calls with other argument types work nicely
What can I do?

I'm using suse 10, kde 3.5.1/2, python-qt 3.5.1/2, kdebindings-python 3.5.1/2, 
python 2.4.1


This is the sample code:

..... python code .....
import sys
import kdecore
import dcopext
_kaboutdata = kdecore.KAboutData('amarok_replaygain.py','Amarok replaygain 
script','0.8.1')
kdecore.KCmdLineArgs.init(sys.argv[:1], _kaboutdata)
_kapp = kdecore.KApplication()
amarok_dcop = dcopext.DCOPApp ("amarok", _kapp.dcopClient())

amarok_dcop.player.enableOSD(True)
...... end .....

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1076415904 (LWP 8756)]
0x4043534a in initkdecore () from /usr/lib/python2.4/site-packages/kdecore.so
(gdb) bt
Incomplete CFI data; unspecified registers at 0x4043533c...Incomplete CFI 
data; unspecified registers at 0x4043533c...Incomplete CFI data; unspecified 
registers at 0x4043533c...Incomplete CFI data; unspecified registers at 
0x4043533c...Incomplete CFI data; unspecified registers at 
0x40438dee...Incomplete CFI data; unspecified registers at 
0x40438dee...Incomplete CFI data; unspecified registers at 
0x40438dee...Incomplete CFI data; unspecified registers at 0x40438dee...
#0  0x4043534a in initkdecore ()
   from /usr/lib/python2.4/site-packages/kdecore.so
#1  0x40438ef4 in initkdecore ()
   from /usr/lib/python2.4/site-packages/kdecore.so
#2  0x4007ccdd in PyCFunction_Call () from /usr/lib/libpython2.4.so.1.0
#3  0x400b61e0 in PyEval_EvalFrame () from /usr/lib/libpython2.4.so.1.0
#4  0x400b685d in PyEval_EvalFrame () from /usr/lib/libpython2.4.so.1.0
#5  0x400b685d in PyEval_EvalFrame () from /usr/lib/libpython2.4.so.1.0
#6  0x400b777d in PyEval_EvalCodeEx () from /usr/lib/libpython2.4.so.1.0
#7  0x4006c3eb in PyFunction_SetClosure () from /usr/lib/libpython2.4.so.1.0
#8  0x40056647 in PyObject_Call () from /usr/lib/libpython2.4.so.1.0
#9  0x4005e5c6 in PyMethod_Fini () from /usr/lib/libpython2.4.so.1.0
#10 0x40056647 in PyObject_Call () from /usr/lib/libpython2.4.so.1.0
#11 0x4009455c in _PyObject_SlotCompare () from /usr/lib/libpython2.4.so.1.0
#12 0x40056647 in PyObject_Call () from /usr/lib/libpython2.4.so.1.0
#13 0x400b5653 in PyEval_EvalFrame () from /usr/lib/libpython2.4.so.1.0
#14 0x400b777d in PyEval_EvalCodeEx () from /usr/lib/libpython2.4.so.1.0
#15 0x400b7a75 in PyEval_EvalCode () from /usr/lib/libpython2.4.so.1.0
#16 0x400d32a8 in PyErr_Display () from /usr/lib/libpython2.4.so.1.0
#17 0x400d4a68 in PyRun_InteractiveOneFlags ()
   from /usr/lib/libpython2.4.so.1.0
#18 0x400d4b83 in PyRun_InteractiveLoopFlags ()
   from /usr/lib/libpython2.4.so.1.0
#19 0x400d515b in PyRun_AnyFileExFlags () from /usr/lib/libpython2.4.so.1.0
#20 0x400db478 in Py_Main () from /usr/lib/libpython2.4.so.1.0
#21 0x080485fa in main ()

-- 
Don't see the world through a window, be open{source}minded, and be free :-)




More information about the PyQt mailing list