Bug 312873 - Akonadi crash when adding new Calendar
Summary: Akonadi crash when adding new Calendar
Status: RESOLVED UNMAINTAINED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: KResource compat bridges (show other bugs)
Version: 4.9
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Kevin Krammer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-08 11:07 UTC by Jean-Christophe
Modified: 2015-10-24 10:07 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
crash report when creating ical resource (5.86 KB, application/octet-stream)
2013-01-08 14:16 UTC, Jean-Christophe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Christophe 2013-01-08 11:07:54 UTC
Application: akonadi_kcal_resource (4.9)
KDE Platform Version: 4.9.3
Qt Version: 4.8.3
Operating System: Linux 3.5.0-21-generic x86_64
Distribution: Ubuntu 12.10

-- Information about the crash:
Every time I add a new calendar, Akonadi crash.

When I am accessing to a calendar event update email, Akonadi crash also.

The crash can be reproduced every time.

-- Backtrace:
Application: Test Calendrier de type Calendrier KDE (traditionnel) (akonadi_kcal_resource), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7ffa081ac780 (LWP 9572))]

Thread 3 (Thread 0x7ff9ed369700 (LWP 9574)):
#0  0x00007ffa04fc2303 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007ffa03250d84 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffa03250ea4 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffa07637c16 in QEventDispatcherGlib::processEvents (this=0x7ff9e80008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007ffa076082bf in QEventLoop::processEvents (this=this@entry=0x7ff9ed368dd0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007ffa07608548 in QEventLoop::exec (this=0x7ff9ed368dd0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007ffa07509b10 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007ffa075e89af in QInotifyFileSystemWatcherEngine::run (this=0x2b1ff30) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007ffa0750caec in QThreadPrivate::start (arg=0x2b1ff30) at thread/qthread_unix.cpp:338
#9  0x00007ffa03b2be9a in start_thread (arg=0x7ff9ed369700) at pthread_create.c:308
#10 0x00007ffa04fcdcbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7ff9e7fff700 (LWP 9575)):
#0  0x00007ffa03b2dfc0 in __pthread_mutex_lock (mutex=0x7ff9e0000a60) at pthread_mutex_lock.c:113
#1  0x00007ffa0328de21 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffa03250d6a in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffa03250ea4 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ffa07637c16 in QEventDispatcherGlib::processEvents (this=0x7ff9e00008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#5  0x00007ffa076082bf in QEventLoop::processEvents (this=this@entry=0x7ff9e7ffedd0, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007ffa07608548 in QEventLoop::exec (this=0x7ff9e7ffedd0, flags=...) at kernel/qeventloop.cpp:204
#7  0x00007ffa07509b10 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#8  0x00007ffa075e89af in QInotifyFileSystemWatcherEngine::run (this=0x2c29340) at io/qfilesystemwatcher_inotify.cpp:248
#9  0x00007ffa0750caec in QThreadPrivate::start (arg=0x2c29340) at thread/qthread_unix.cpp:338
#10 0x00007ffa03b2be9a in start_thread (arg=0x7ff9e7fff700) at pthread_create.c:308
#11 0x00007ffa04fcdcbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7ffa081ac780 (LWP 9572)):
[KCrash Handler]
#6  begin (this=0x7365746f6e2e660c) at /usr/include/qt4/QtCore/qlist.h:101
#7  contains (t=@0x7fff4b32ec78: 0x2bdacd0, this=0x7365746f6e2e660c) at /usr/include/qt4/QtCore/qlist.h:882
#8  removeRef (t=0x2bdacd0, this=0x7365746f6e2e660c) at ../../kcal/listbase.h:118
#9  KCal::Incidence::removeRelation (this=0x2e03dc0, incidence=0x2bdacd0) at ../../kcal/incidence.cpp:535
#10 0x00007ffa06d13ea7 in KCal::Incidence::~Incidence (this=0x2bdacd0, __in_chrg=<optimized out>) at ../../kcal/incidence.cpp:207
#11 0x00007ffa06d17a39 in KCal::Todo::~Todo (this=0x2bdacd0, __in_chrg=<optimized out>) at ../../kcal/todo.cpp:105
#12 0x0000000000412269 in release (this=0x29e1240) at /usr/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp:145
#13 ~shared_count (this=0x280f380, __in_chrg=<optimized out>) at /usr/include/boost/smart_ptr/detail/shared_count.hpp:305
#14 ~shared_ptr (this=0x280f378, __in_chrg=<optimized out>) at /usr/include/boost/smart_ptr/shared_ptr.hpp:164
#15 ~Payload (this=0x280f370, __in_chrg=<optimized out>) at /usr/include/akonadi/itempayloadinternals_p.h:285
#16 Akonadi::Payload<boost::shared_ptr<KCal::Incidence> >::~Payload (this=0x280f370, __in_chrg=<optimized out>) at /usr/include/akonadi/itempayloadinternals_p.h:285
#17 0x00007ffa07c7fd26 in ~clone_ptr (this=0x2e01000, __in_chrg=<optimized out>) at ../../akonadi/item_p.h:48
#18 ~TypedPayload (this=0x2e01000, __in_chrg=<optimized out>) at ../../akonadi/item_p.h:119
#19 _Destroy<Akonadi::_detail::TypedPayload> (__pointer=0x2e01000) at /usr/include/c++/4.7/bits/stl_construct.h:95
#20 __destroy<Akonadi::_detail::TypedPayload*> (__last=<optimized out>, __first=0x2e01000) at /usr/include/c++/4.7/bits/stl_construct.h:105
#21 _Destroy<Akonadi::_detail::TypedPayload*> (__last=<optimized out>, __first=<optimized out>) at /usr/include/c++/4.7/bits/stl_construct.h:128
#22 _Destroy<Akonadi::_detail::TypedPayload*, Akonadi::_detail::TypedPayload> (__last=0x2e01010, __first=<optimized out>) at /usr/include/c++/4.7/bits/stl_construct.h:155
#23 ~vector (this=0x2a23e08, __in_chrg=<optimized out>) at /usr/include/c++/4.7/bits/stl_vector.h:403
#24 ~ItemPrivate (this=0x2a23dc0, __in_chrg=<optimized out>) at ../../akonadi/item_p.h:203
#25 Akonadi::ItemPrivate::~ItemPrivate (this=0x2a23dc0, __in_chrg=<optimized out>) at ../../akonadi/item_p.h:204
#26 0x00007ffa07bdf7a4 in node_destruct (to=0x2833058, from=0x2833058, this=<optimized out>) at /usr/include/qt4/QtCore/qlist.h:431
#27 free (data=0x2833040, this=<optimized out>) at /usr/include/qt4/QtCore/qlist.h:757
#28 QList<Akonadi::Item>::~QList (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/qt4/QtCore/qlist.h:732
#29 0x00007ffa07c952d1 in ~ItemModifyJobPrivate (this=0x2d68070, __in_chrg=<optimized out>) at ../../akonadi/itemmodifyjob_p.h:30
#30 Akonadi::ItemModifyJobPrivate::~ItemModifyJobPrivate (this=0x2d68070, __in_chrg=<optimized out>) at ../../akonadi/itemmodifyjob_p.h:30
#31 0x00007ffa07c99e08 in Akonadi::Job::~Job (this=0x2a9b470, __in_chrg=<optimized out>) at ../../akonadi/job.cpp:254
#32 0x00007ffa07c916c9 in Akonadi::ItemModifyJob::~ItemModifyJob (this=0x2a9b470, __in_chrg=<optimized out>) at ../../akonadi/itemmodifyjob.cpp:135
#33 0x00007ffa0761e468 in QObject::event (this=0x2a9b470, e=<optimized out>) at kernel/qobject.cpp:1176
#34 0x00007ffa0597de9c in QApplicationPrivate::notify_helper (this=this@entry=0x264d8e0, receiver=receiver@entry=0x2a9b470, e=e@entry=0x2c99380) at kernel/qapplication.cpp:4562
#35 0x00007ffa0598230a in QApplication::notify (this=0x7fff4b32f7e0, receiver=0x2a9b470, e=0x2c99380) at kernel/qapplication.cpp:4423
#36 0x00007ffa066861d6 in KApplication::notify (this=0x7fff4b32f7e0, receiver=0x2a9b470, event=0x2c99380) at ../../kdeui/kernel/kapplication.cpp:311
#37 0x00007ffa0760956e in QCoreApplication::notifyInternal (this=0x7fff4b32f7e0, receiver=receiver@entry=0x2a9b470, event=event@entry=0x2c99380) at kernel/qcoreapplication.cpp:915
#38 0x00007ffa0760d3f1 in sendEvent (event=0x2c99380, receiver=0x2a9b470) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#39 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x261c670) at kernel/qcoreapplication.cpp:1539
#40 0x00007ffa07637a63 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#41 postEventSourceDispatch (s=0x2652460) at kernel/qeventdispatcher_glib.cpp:279
#42 0x00007ffa03250ab5 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#43 0x00007ffa03250de8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#44 0x00007ffa03250ea4 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#45 0x00007ffa07637bf6 in QEventDispatcherGlib::processEvents (this=0x261db30, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#46 0x00007ffa05a22c1e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#47 0x00007ffa076082bf in QEventLoop::processEvents (this=this@entry=0x7fff4b32f760, flags=...) at kernel/qeventloop.cpp:149
#48 0x00007ffa07608548 in QEventLoop::exec (this=0x7fff4b32f760, flags=...) at kernel/qeventloop.cpp:204
#49 0x00007ffa0760d708 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#50 0x00007ffa07cb4693 in Akonadi::ResourceBase::init (r=0x27e3f80) at ../../akonadi/resourcebase.cpp:451
#51 0x00000000004130b3 in Akonadi::ResourceBase::init<KCalResource> (argc=<optimized out>, argv=<optimized out>) at /usr/include/akonadi/resourcebase.h:188
#52 0x00007ffa04efb76d in __libc_start_main (main=0x408d00 <main(int, char**)>, argc=3, ubp_av=0x7fff4b32f8f8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff4b32f8e8) at libc-start.c:226
#53 0x0000000000408d31 in _start ()

This bug may be a duplicate of or related to bug 229259.

Possible duplicates by query: bug 297356, bug 294486, bug 294485, bug 288404, bug 272285.

Reported using DrKonqi
Comment 1 Kevin Krammer 2013-01-08 11:15:35 UTC
Thank you for your report.

Is your goal a calendar in a local ics file? If yes I recommend you use the "ical" resource instead. It has been written for exactly that purpose and does not have to go through the KDE legacy infrastructure (like the kcal resource that is crashing here)
Comment 2 Jean-Christophe 2013-01-08 13:30:54 UTC
I tried to choose an ical resource : same problem, Akonadi crash.
Comment 3 Kevin Krammer 2013-01-08 13:39:32 UTC
Can you attach a crash report for that as well?
Would make much more sense to put the limited resources into fixing the main resource.
Comment 4 Jean-Christophe 2013-01-08 14:16:08 UTC
Created attachment 76307 [details]
crash report when creating ical resource
Comment 5 Kevin Krammer 2013-01-08 14:30:31 UTC
This is still a "Traditional KDE Calendar"
Agenda Local de type Calendrier KDE (traditionnel) (akonadi_kcal_resource)

The one I was suggesting is called "ICal Calendar File", in french "Fichier d'agenda au format ICal"
Comment 6 Jean-Christophe 2013-01-08 14:49:34 UTC
Strange, I chose "Fichier d'agenda au format ICal" :s

I retried, after deleted all calendar, restart Kontact and Akonadi.
No crash after created Ical.

kcal resource was crashing all other resources.
Comment 7 Volker Krause 2015-10-24 10:07:14 UTC
The KResource compatibility bridges don't exist anymore with KDE PIM 15.08.