[PyKDE] segfault in kdecore using dcop call
Miguel Angel Alvarez
maacruz at gmail.com
Fri Apr 7 01:36:23 BST 2006
El Jueves, 6 de Abril de 2006 22:32, Ismail Donmez escribió:
> Perşembe 6 Nisan 2006 23:28 tarihinde, Miguel Angel Alvarez şunları
> yazmıştı: [...]
>
> > > Second, noticed two things: first you didn't call KCmdLineArgs.init()
> > > and you didn't call _kapp.exec_loop() . Hope this helps.
> >
> > Look again, I do call KCmdLineArgs.init():
> > kdecore.KCmdLineArgs.init(sys.argv[:1], _kaboutdata)
>
> I am blind sorry.
>
> > Why should I call _kapp.exec_loop()? The application has no kde
> > interface, so it simply seems to hang if I do so.
>
> It works fine with latest PyKDE snapshot with KDE 3.5.2 :
> >>> 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)
>
> (True, None)
Not for me, same problem
gdb output with PyKDE-snapshot20060122:
Reading in symbols
for /usr/src/packages/BUILD/PyKDE-snapshot20060122/kdecore/sipkdecorecmodule.cpp...const
value length mismatch for '_ZNSs4nposE', got 8, expected 0...done.
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1076415904 (LWP 10435)]
_Z8dcop_addR11QDataStreamiRK8QCString (s=@0x81f0398, value=1, type_=@0x0)
at qgarray.h:77
77 char *data() const { return shd->data; }
(gdb) bt
Incomplete CFI data; unspecified registers at 0x40492565...Incomplete CFI
data; unspecified registers at 0x40492565...Incomplete CFI data; unspecified
registers at 0x40492565...Incomplete CFI data; unspecified registers at
0x40492565...Incomplete CFI data; unspecified registers at
0x40494aae...Incomplete CFI data; unspecified registers at
0x40494aae...Incomplete CFI data; unspecified registers at
0x40494aae...Incomplete CFI data; unspecified registers at 0x40494aae...
#0 _Z8dcop_addR11QDataStreamiRK8QCString (s=@0x81f0398, value=1, type_=@0x0)
at qgarray.h:77
#1 0x40494bb4 in func_dcop_add (sipArgs=0x402e314c)
at /usr/src/packages/BUILD/PyKDE-snapshot20060122/kdecore/sipkdecorecmodule.cpp:7010
#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
...
gdb output with kdebindings3-python-3.5.2:
Reading in symbols
for /usr/src/packages/BUILD/kdebindings-3.5.2/python/pykde/kdecore/sipkdecorecmodule.cpp...const
value length mismatch for '_ZNSs4nposE', got 8, expected 0...done.
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1076415904 (LWP 10596)]
_Z8dcop_addR11QDataStreamiR8QCString (s=@0x81eae28, value=1, type_=@0x0)
at bytearray.sip:386
386 void dcop_add (QDataStream& s, int value, QCString& type_)
(gdb) bt
Incomplete CFI data; unspecified registers at 0x4048ef0c...Incomplete CFI
data; unspecified registers at 0x4048ef0c...Incomplete CFI data; unspecified
registers at 0x4048ef0c...Incomplete CFI data; unspecified registers at
0x4048ef0c...Incomplete CFI data; unspecified registers at
0x404915ce...Incomplete CFI data; unspecified registers at
0x404915ce...Incomplete CFI data; unspecified registers at
0x404915ce...Incomplete CFI data; unspecified registers at 0x404915ce...
#0 _Z8dcop_addR11QDataStreamiR8QCString (s=@0x81eae28, value=1, type_=@0x0)
at bytearray.sip:386
#1 0x404916bd in func_dcop_add (sipArgs=0x402dc76c)
at /usr/src/packages/BUILD/kdebindings-3.5.2/python/pykde/kdecore/sipkdecorecmodule.cpp:6934
#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
....
--
Don't see the world through a window, be open{source}minded, and be free :-)
More information about the PyQt
mailing list