Bug 347814

Summary: Akonadi crashes on Owncloud calendar
Product: [Frameworks and Libraries] Akonadi Reporter: René Serral <rserral>
Component: DAV ResourceAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: crash CC: greg
Priority: NOR Keywords: drkonqi
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description René Serral 2015-05-16 20:48:20 UTC
Application: akonadi_davgroupware_resource (4.82.0)
 (Compiled from sources)
Qt Version: 5.4.0
Operating System: Linux 4.0.1 x86_64
Distribution: Debian GNU/Linux unstable (sid)

-- Information about the crash:
- What I was doing when the application crashed:
Every time I start akonadi it crashes. It seems that the cause is the owncloud calendar. If I remove it the crash disappears

The crash can be reproduced every time.

-- Backtrace:
Application: Akonadi Resource (akonadi_davgroupware_resource), signal: Aborted
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fe1ef730800 (LWP 7426))]

Thread 3 (Thread 0x7fe1ed9ca700 (LWP 7427)):
#0  0x00007fe1fcf1250d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007fe1f9114252 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007fe1f9115ddf in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007fe1ef4d99b9 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so
#4  0x00007fe1fdaa4a5e in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fe1fb3750a4 in start_thread (arg=0x7fe1ed9ca700) at pthread_create.c:309
#6  0x00007fe1fcf1b04d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7fe1e34b4700 (LWP 7437)):
#0  0x00007fe1fcf1250d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007fe1f81c4ebc in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fe1f81c4fcc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fe1fdd3995c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007fe1fdcdf0e2 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fe1fda9faa4 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007fe1fdaa4a5e in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fe1fb3750a4 in start_thread (arg=0x7fe1e34b4700) at pthread_create.c:309
#8  0x00007fe1fcf1b04d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7fe1ef730800 (LWP 7426)):
[KCrash Handler]
#6  0x00007fe1fce6a107 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#7  0x00007fe1fce6b4e8 in __GI_abort () at abort.c:89
#8  0x00007fe1fd75e5ed in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#9  0x00007fe1fd75c646 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#10 0x00007fe1fd75c691 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#11 0x00007fe1fd75c8a9 in __cxa_throw () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#12 0x00007fe203a5464a in Akonadi::Item::throwPayloadException (this=0x21c3610, spid=0, mtid=12) at /usr/src/kde5/src/kde/kdepimlibs/akonadi/src/core/item.cpp:510
#13 0x00007fe203a6283b in Akonadi::Item::payloadImpl<QByteArray> (this=0x21c3610) at /usr/src/kde5/src/kde/kdepimlibs/akonadi/src/core/item.h:596
#14 0x00007fe203a623a4 in Akonadi::Item::payload<QByteArray> (this=0x21c3610) at /usr/src/kde5/src/kde/kdepimlibs/akonadi/src/core/item.h:565
#15 0x00007fe203a60bb2 in Akonadi::DefaultItemSerializerPlugin::serialize (this=0x7fe203e3e5c0 <Akonadi::(anonymous namespace)::Q_QGS_s_defaultItemSerializerPlugin::innerFunction()::holder>, item=..., label=..., data=..., version=@0x7ffdebdd995c: 0) at /usr/src/kde5/src/kde/kdepimlibs/akonadi/src/core/itemserializer.cpp:59
#16 0x00007fe203a6147e in Akonadi::ItemSerializer::serialize (item=..., label=..., data=..., version=@0x7ffdebdd995c: 0) at /usr/src/kde5/src/kde/kdepimlibs/akonadi/src/core/itemserializer.cpp:135
#17 0x00007fe203a61384 in Akonadi::ItemSerializer::serialize (item=..., label=..., data=..., version=@0x7ffdebdd995c: 0) at /usr/src/kde5/src/kde/kdepimlibs/akonadi/src/core/itemserializer.cpp:124
#18 0x00007fe203ae22fa in Akonadi::ItemCreateJobPrivate::nextPartHeader (this=0x21c35d0) at /usr/src/kde5/src/kde/kdepimlibs/akonadi/src/core/jobs/itemcreatejob.cpp:72
#19 0x00007fe203ae3ead in Akonadi::ItemCreateJob::doStart (this=0x214c690) at /usr/src/kde5/src/kde/kdepimlibs/akonadi/src/core/jobs/itemcreatejob.cpp:188
#20 0x00007fe203af2954 in Akonadi::JobPrivate::startQueued (this=0x21c35d0) at /usr/src/kde5/src/kde/kdepimlibs/akonadi/src/core/jobs/job.cpp:174
#21 0x00007fe203af2c46 in Akonadi::JobPrivate::startNext (this=0x21c3460) at /usr/src/kde5/src/kde/kdepimlibs/akonadi/src/core/jobs/job.cpp:204
#22 0x00007fe203af391e in Akonadi::Job::qt_static_metacall (_o=0x2152a90, _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0x22722c0) at /usr/src/kde5/build/kde/kdepimlibs/akonadi/src/core/moc_job.cpp:104
#23 0x00007fe1fdd1295a in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#24 0x00007fe1fe662f0c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#25 0x00007fe1fe668590 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#26 0x00007fe1fdce192b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#27 0x00007fe1fdce399b in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#28 0x00007fe1fdd39533 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#29 0x00007fe1f81c4c3d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#30 0x00007fe1f81c4f20 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#31 0x00007fe1f81c4fcc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#32 0x00007fe1fdd39947 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#33 0x00007fe1fdcdf0e2 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#34 0x00007fe1fdce6d2c in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#35 0x00007fe204ad5a28 in Akonadi::ResourceBase::init (r=0x20c6c90) at /usr/src/kde5/src/kde/kdepimlibs/akonadi/src/agentbase/resourcebase.cpp:589
#36 0x00000000004a9bf5 in Akonadi::ResourceBase::init<DavGroupwareResource> (argc=3, argv=0x7ffdebdda988) at /usr/local/kde5/include/KF5/AkonadiAgentBase/resourcebase.h:192
#37 0x00000000004a768d in main (argc=3, argv=0x7ffdebdda988) at /usr/src/kde5/src/kde/kdepim-runtime/resources/dav/resource/davgroupwareresource.cpp:1045

Reported using DrKonqi
Comment 1 Grégory Oestreicher 2015-06-25 20:59:10 UTC
Hey,

It looks like (at least) one event in your calendar triggers an exception because its type is not correctly detected by the resource. Could you try to isolate it and attach it to this bug report?

Cheers,
Grégory
Comment 2 Grégory Oestreicher 2015-06-25 21:28:19 UTC
*** Bug 346440 has been marked as a duplicate of this bug. ***
Comment 3 René Serral 2015-06-25 22:12:50 UTC
I have many events on that calendar, is there any easy way to achieve this?

Thanks


On 06/25/2015 10:59 PM, Grégory Oestreicher wrote:
> https://bugs.kde.org/show_bug.cgi?id=347814
>
> Grégory Oestreicher <greg@kamago.net> changed:
>
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>               Status|UNCONFIRMED                 |NEEDSINFO
>                   CC|                            |greg@kamago.net
>           Resolution|---                         |WAITINGFORINFO
>
> --- Comment #1 from Grégory Oestreicher <greg@kamago.net> ---
> Hey,
>
> It looks like (at least) one event in your calendar triggers an exception
> because its type is not correctly detected by the resource. Could you try to
> isolate it and attach it to this bug report?
>
> Cheers,
> Grégory
>
Comment 4 René Serral 2015-08-03 07:57:33 UTC
In the last GIT I tried is seems that the crash doesn't occur anymore.

Thanks