[Kde-pim] Segment fault tring to create akonadi resource in

Mario Santagiuliana fedora at marionline.it
Wed Aug 17 10:21:36 BST 2011


> Most likely unrelated to the crash but definitely wrong is passing a
> hard coded identifier. The identifier is handed out by the Akonadi
> Control process, passed to the resource as a commandline parameter (see
> the --identifier part of the commandline of other resources running on
> your system).
> 
> > If you want I can provide a little backtrace...
> 
> Can't hurt.
> 
> Cheers,
> Kevin


Thank you Kevin for your answer.
I read this email:
http://markmail.org/message/o7ox54axggec564q

I create another test python file in attachment. I add the identifier option 
like Ignacio code.
I run gdb and in attachment the log with backtrace.

I don't understand if the akonadi.resourcebase object call is correct...If 
the script is ok to start write an akonadi resource using python or it is a 
bug in pykde...

Hope you can help me, thank you very much!
-- 
Mario Santagiuliana
www.marionline.it
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.py
Type: text/x-python
Size: 505 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20110817/530e88d5/attachment.py>
-------------- next part --------------
$ gdb python
GNU gdb (GDB) Fedora (7.2-51.fc14)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/python...(no debugging symbols found)...done.
Missing separate debuginfos, use: debuginfo-install python-2.7-8.fc14.1.x86_64
(gdb) run test.py --identifier=test_0
Starting program: /usr/bin/python test.py --identifier=test_0
[Thread debugging using libthread_db enabled]
 Options --identifier = test_0

Program received signal SIGSEGV, Segmentation fault.
0x0000003df6f6e1b0 in QObject::thread() const () from /usr/lib64/libQtCore.so.4
(gdb) bt
#0  0x0000003df6f6e1b0 in QObject::thread() const () from /usr/lib64/libQtCore.so.4
#1  0x0000003e0a6832b1 in ?? () from /usr/lib64/libakonadi-kde.so.4
#2  0x0000003e0a6840c2 in Akonadi::AgentBase::AgentBase(Akonadi::AgentBasePrivate*, QString const&) () from /usr/lib64/libakonadi-kde.so.4
#3  0x0000003e0a74d5c3 in Akonadi::ResourceBase::ResourceBase(QString const&) () from /usr/lib64/libakonadi-kde.so.4
#4  0x00007ffff1c5e299 in sipAkonadi_ResourceBase::sipAkonadi_ResourceBase(QString const&) () from /usr/lib64/python2.7/site-packages/PyKDE4/akonadi.so
#5  0x00007ffff1c5e372 in ?? () from /usr/lib64/python2.7/site-packages/PyKDE4/akonadi.so
#6  0x00007ffff190f817 in ?? () from /usr/lib64/python2.7/site-packages/sip.so
#7  0x0000003e0929f4dc in ?? () from /usr/lib64/libpython2.7.so.1.0
#8  0x0000003e09248fc3 in PyObject_Call () from /usr/lib64/libpython2.7.so.1.0
#9  0x0000003e092e8783 in PyEval_EvalFrameEx () from /usr/lib64/libpython2.7.so.1.0
#10 0x0000003e092eb04d in PyEval_EvalCodeEx () from /usr/lib64/libpython2.7.so.1.0
#11 0x0000003e09271c62 in ?? () from /usr/lib64/libpython2.7.so.1.0
#12 0x0000003e09248fc3 in PyObject_Call () from /usr/lib64/libpython2.7.so.1.0
#13 0x0000003e0925a65f in ?? () from /usr/lib64/libpython2.7.so.1.0
#14 0x0000003e09248fc3 in PyObject_Call () from /usr/lib64/libpython2.7.so.1.0
#15 0x0000003e092a4ade in ?? () from /usr/lib64/libpython2.7.so.1.0
#16 0x0000003e092a46b8 in ?? () from /usr/lib64/libpython2.7.so.1.0
#17 0x0000003e09248fc3 in PyObject_Call () from /usr/lib64/libpython2.7.so.1.0
#18 0x0000003e092e8783 in PyEval_EvalFrameEx () from /usr/lib64/libpython2.7.so.1.0
#19 0x0000003e092ea71d in PyEval_EvalFrameEx () from /usr/lib64/libpython2.7.so.1.0
#20 0x0000003e092eb04d in PyEval_EvalCodeEx () from /usr/lib64/libpython2.7.so.1.0
#21 0x0000003e092eb162 in PyEval_EvalCode () from /usr/lib64/libpython2.7.so.1.0
#22 0x0000003e0930639c in ?? () from /usr/lib64/libpython2.7.so.1.0
#23 0x0000003e093071d0 in PyRun_FileExFlags () from /usr/lib64/libpython2.7.so.1.0
#24 0x0000003e09307daf in PyRun_SimpleFileExFlags () from /usr/lib64/libpython2.7.so.1.0
#25 0x0000003e093198ce in Py_Main () from /usr/lib64/libpython2.7.so.1.0
#26 0x0000003deca1ee5d in __libc_start_main () from /lib64/libc.so.6
#27 0x0000000000400649 in _start ()
(gdb)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20110817/530e88d5/attachment.sig>
-------------- next part --------------
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/


More information about the kde-pim mailing list