Bug 258754

Summary: Akonadi Crashes when adding Calender File
Product: [Frameworks and Libraries] Akonadi Reporter: Blackpaw <lindsay.mathieson>
Component: ICal file resourceAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED WORKSFORME    
Severity: crash CC: grabner, kde.uat, lindsay.mathieson, sturmflut
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description Blackpaw 2010-12-04 02:19:25 UTC
Application: akonadi_ical_resource (0.1)
KDE Platform Version: 4.5.80 (4.6 Beta1)
Qt Version: 4.7.0
Operating System: Linux 2.6.35-23-generic i686
Distribution: Ubuntu 10.10

-- Information about the crash:
- What I was doing when the application crashed:
In personal information I was adding a Calendar resource to the Akonadi resource - a standard vCal file. Akonadi would crash when syncing the resource. This happens every time I try it.

I can supply a copy of the file if needed.

The crash can be reproduced every time.

-- Backtrace:
Application: Akonadi Resource (akonadi_ical_resource), signal: Aborted
[Current thread is 1 (Thread 0xb77e9710 (LWP 2032))]

Thread 4 (Thread 0xb484bb70 (LWP 2034)):
#0  0x032d0f56 in pthread_mutex_lock (mutex=0x92a475c) at forward.c:182
#1  0x01c358ba in g_main_context_check () from /lib/libglib-2.0.so.0
#2  0x01c3645e in ?? () from /lib/libglib-2.0.so.0
#3  0x01c36848 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#4  0x054ab59f in QEventDispatcherGlib::processEvents (this=0x92c8ca8, flags=...) at kernel/qeventdispatcher_glib.cpp:417
#5  0x0547b609 in QEventLoop::processEvents (this=0xb484b290, flags=) at kernel/qeventloop.cpp:149
#6  0x0547ba8a in QEventLoop::exec (this=0xb484b290, flags=...) at kernel/qeventloop.cpp:201
#7  0x05377b7e in QThread::exec (this=0x92a34e8) at thread/qthread.cpp:490
#8  0x0545a35b in QInotifyFileSystemWatcherEngine::run (this=0x92a34e8) at io/qfilesystemwatcher_inotify.cpp:248
#9  0x0537adf9 in QThreadPrivate::start (arg=0x92a34e8) at thread/qthread_unix.cpp:266
#10 0x01e5acc9 in start_thread (arg=0xb484bb70) at pthread_create.c:304
#11 0x032c36be in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 3 (Thread 0xb3e83b70 (LWP 2035)):
#0  0x00bd6e36 in clock_gettime (clock_id=12431348, tp=0xb3e82f90) at ../sysdeps/unix/clock_gettime.c:100
#1  0x053d650b in do_gettime () at tools/qelapsedtimer_unix.cpp:105
#2  qt_gettime () at tools/qelapsedtimer_unix.cpp:119
#3  0x054ad6e5 in QTimerInfoList::updateCurrentTime (this=0x924af9c) at kernel/qeventdispatcher_unix.cpp:339
#4  0x054ad72a in QTimerInfoList::timerWait (this=0x924af9c, tm=...) at kernel/qeventdispatcher_unix.cpp:442
#5  0x054ab7a8 in timerSourcePrepareHelper (src=<value optimized out>, timeout=0xb3e830bc) at kernel/qeventdispatcher_glib.cpp:136
#6  0x054ab83d in timerSourcePrepare (source=0x0, timeout=0xbdaff4) at kernel/qeventdispatcher_glib.cpp:169
#7  0x01c35e6a in g_main_context_prepare () from /lib/libglib-2.0.so.0
#8  0x01c36279 in ?? () from /lib/libglib-2.0.so.0
#9  0x01c36848 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#10 0x054ab59f in QEventDispatcherGlib::processEvents (this=0x924ae68, flags=...) at kernel/qeventdispatcher_glib.cpp:417
#11 0x0547b609 in QEventLoop::processEvents (this=0xb3e83290, flags=) at kernel/qeventloop.cpp:149
#12 0x0547ba8a in QEventLoop::exec (this=0xb3e83290, flags=...) at kernel/qeventloop.cpp:201
#13 0x05377b7e in QThread::exec (this=0x9249ba0) at thread/qthread.cpp:490
#14 0x0545a35b in QInotifyFileSystemWatcherEngine::run (this=0x9249ba0) at io/qfilesystemwatcher_inotify.cpp:248
#15 0x0537adf9 in QThreadPrivate::start (arg=0x9249ba0) at thread/qthread_unix.cpp:266
#16 0x01e5acc9 in start_thread (arg=0xb3e83b70) at pthread_create.c:304
#17 0x032c36be in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 2 (Thread 0xb3682b70 (LWP 2036)):
#0  0x00bd6e36 in clock_gettime (clock_id=12431348, tp=0xb3681fb0) at ../sysdeps/unix/clock_gettime.c:100
#1  0x053d650b in do_gettime () at tools/qelapsedtimer_unix.cpp:105
#2  qt_gettime () at tools/qelapsedtimer_unix.cpp:119
#3  0x054ad6e5 in QTimerInfoList::updateCurrentTime (this=0x9375284) at kernel/qeventdispatcher_unix.cpp:339
#4  0x054ad72a in QTimerInfoList::timerWait (this=0x9375284, tm=...) at kernel/qeventdispatcher_unix.cpp:442
#5  0x054ab7a8 in timerSourcePrepareHelper (src=<value optimized out>, timeout=0xb36820dc) at kernel/qeventdispatcher_glib.cpp:136
#6  0x054ab83d in timerSourcePrepare (source=0x0, timeout=0xbdaff4) at kernel/qeventdispatcher_glib.cpp:169
#7  0x01c35e6a in g_main_context_prepare () from /lib/libglib-2.0.so.0
#8  0x01c36279 in ?? () from /lib/libglib-2.0.so.0
#9  0x01c36848 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#10 0x054ab59f in QEventDispatcherGlib::processEvents (this=0x924ac00, flags=...) at kernel/qeventdispatcher_glib.cpp:417
#11 0x0547b609 in QEventLoop::processEvents (this=0xb36822b0, flags=) at kernel/qeventloop.cpp:149
#12 0x0547ba8a in QEventLoop::exec (this=0xb36822b0, flags=...) at kernel/qeventloop.cpp:201
#13 0x05377b7e in QThread::exec (this=0x9358850) at thread/qthread.cpp:490
#14 0x06146171 in Herqq::Upnp::HControlPointThread::run() () from /usr/lib/libHUpnp.so.0
#15 0x0537adf9 in QThreadPrivate::start (arg=0x9358850) at thread/qthread_unix.cpp:266
#16 0x01e5acc9 in start_thread (arg=0xb3682b70) at pthread_create.c:304
#17 0x032c36be in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xb77e9710 (LWP 2032)):
[KCrash Handler]
#7  0x00bdd416 in __kernel_vsyscall ()
#8  0x0321d941 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#9  0x03220e42 in abort () at abort.c:92
#10 0x0094a055 in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/libstdc++.so.6
#11 0x00947f35 in ?? () from /usr/lib/libstdc++.so.6
#12 0x00947f72 in std::terminate() () from /usr/lib/libstdc++.so.6
#13 0x0094814b in __cxa_rethrow () from /usr/lib/libstdc++.so.6
#14 0x0548f776 in QObject::event (this=0x94c9820, e=0x946fb20) at kernel/qobject.cpp:1222
#15 0x010bcfdc in QApplicationPrivate::notify_helper (this=0x914b6d8, receiver=0x94c9820, e=0x946fb20) at kernel/qapplication.cpp:4396
#16 0x010c304e in QApplication::notify (this=0xbf8a88e0, receiver=0x94c9820, e=0x946fb20) at kernel/qapplication.cpp:3798
#17 0x006ade6a in KApplication::notify (this=0xbf8a88e0, receiver=0x94c9820, event=0x946fb20) at ../../kdeui/kernel/kapplication.cpp:311
#18 0x0547cb3b in QCoreApplication::notifyInternal (this=0xbf8a88e0, receiver=0x94c9820, event=0x946fb20) at kernel/qcoreapplication.cpp:732
#19 0x0547fd8b in sendEvent (receiver=0x0, event_type=0, data=0x9133fd0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#20 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x9133fd0) at kernel/qcoreapplication.cpp:1373
#21 0x0547ff4d in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1266
#22 0x054aba74 in sendPostedEvents (s=0x914db20) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#23 postEventSourceDispatch (s=0x914db20) at kernel/qeventdispatcher_glib.cpp:277
#24 0x01c32855 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#25 0x01c36668 in ?? () from /lib/libglib-2.0.so.0
#26 0x01c36848 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#27 0x054ab565 in QEventDispatcherGlib::processEvents (this=0x914b6b8, flags=...) at kernel/qeventdispatcher_glib.cpp:415
#28 0x0117ebe5 in QGuiEventDispatcherGlib::processEvents (this=0x914b6b8, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#29 0x0547b609 in QEventLoop::processEvents (this=0xbf8a8854, flags=) at kernel/qeventloop.cpp:149
#30 0x0547ba8a in QEventLoop::exec (this=0xbf8a8854, flags=...) at kernel/qeventloop.cpp:201
#31 0x0548000f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#32 0x010bbe07 in QApplication::exec () at kernel/qapplication.cpp:3672
#33 0x00eac493 in Akonadi::ResourceBase::init (r=0x9240270) at ../../akonadi/resourcebase.cpp:283
#34 0x08059d83 in init<ICalResource> (argc=3, argv=0xbf8a89c4) at /usr/include/akonadi/resourcebase.h:188
#35 main (argc=3, argv=0xbf8a89c4) at ../../../resources/ical/icalresourcemain.cpp:22

Possible duplicates by query: bug 258697, bug 258684, bug 258670, bug 258564, bug 258563.

Reported using DrKonqi
Comment 1 Blackpaw 2010-12-04 02:25:01 UTC
Note:Despite the Kubuntu version showing KDE 4.6 Beta the packaged KDEPim vs is 4.4.7
Comment 2 Tomas 2010-12-05 14:43:02 UTC
Created attachment 54163 [details]
New crash information added by DrKonqi

kontact (4.4.7) on KDE Platform 4.5.80 (4.6 Beta1) using Qt 4.7.0

- What I was doing when the application crashed:

Creating new Contact ((using "New Contact" button; all contacts are stored as vcard file in folder). I have tried to import already existing vcard contact as well and it crashed as well.

-- Backtrace (Reduced):
#14 0x05a52776 in QObject::event (this=0x9bf8f70, e=0xa0bc998) at kernel/qobject.cpp:1222
#15 0x0108efdc in QApplicationPrivate::notify_helper (this=0x940ebe8, receiver=0x9bf8f70, e=0xa0bc998) at kernel/qapplication.cpp:4396
#16 0x0109504e in QApplication::notify (this=0xbff42ee4, receiver=0x9bf8f70, e=0xa0bc998) at kernel/qapplication.cpp:3798
#17 0x009d1e6a in KApplication::notify (this=0xbff42ee4, receiver=0x9bf8f70, event=0xa0bc998) at ../../kdeui/kernel/kapplication.cpp:311
#18 0x05a3fb3b in QCoreApplication::notifyInternal (this=0xbff42ee4, receiver=0x9bf8f70, event=0xa0bc998) at kernel/qcoreapplication.cpp:732
Comment 3 Volker Krause 2010-12-30 14:37:42 UTC
*** Bug 260345 has been marked as a duplicate of this bug. ***
Comment 4 Volker Krause 2010-12-30 14:37:57 UTC
*** Bug 261118 has been marked as a duplicate of this bug. ***
Comment 5 Simon Raffeiner 2011-01-08 10:08:20 UTC
Seems to be fixed in KDE 4.6 RC 2, I'm using the Ubuntu 11.04 (Natty) Packages on x86. One of my calendars is in a local file, the other is read-only and fetched periodically via HTTP. Both work, no crashes, on-disk-changes in the local file are immediately detected and the calendar updated.
Comment 6 Tomas 2011-01-12 22:42:41 UTC
I do confirm both creating and importing of Contacts is working well in kontact (4.4.9) on KDE Platform 4.5.95 (4.6 RC2) using Qt 4.7.0. I have retested this on the same files I have reported bug before.
Comment 7 Christophe Marin 2011-07-14 10:17:52 UTC
Thanks for the feedback.