Bug 460665 - Akonadi crashes with SEGFAULT after creating a new item
Summary: Akonadi crashes with SEGFAULT after creating a new item
Status: RESOLVED DUPLICATE of bug 460197
Alias: None
Product: korganizer
Classification: Applications
Component: general (show other bugs)
Version: 5.21.2
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2022-10-18 15:55 UTC by Marc Joliet
Modified: 2022-10-20 07:43 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Joliet 2022-10-18 15:55:40 UTC
Application: korganizer (5.21.2 (22.08.2))

Qt Version: 5.15.6
Frameworks Version: 5.99.0
Operating System: Linux 6.0.1-1-default x86_64
Windowing System: X11
Distribution: openSUSE Tumbleweed
DrKonqi: 5.26.0 [KCrashBackend]

-- Information about the crash:
I have recently, i.e., within the past 1-2 weeks, started experiencing crashes in Akonadi.  The first situation was during sync, where my users journal shows a lot of calendar item errors ("parse error from icalcomponent_new_from_string.").  The errors relate to calendar items from all over the place (2018, maybe earlier, to 2022).  The second situation, which I just experienced and which prompted this bug report, relates to creating a new appointment.  Upon clicking "Apply" (or "OK", I'm not sure anymore) to create the entry, Korganizer crashed with a SEGFAULT.  The attached backtrace is from that crash.

Also potentially of interest: I noticed one calendar item that does not synchronize from my Nextcloud server, which I created on my phone.  I have not been able to get it to show up in KOrganizer.

One random idea I have, since some calendar entries don't render special characters properly (e.g., German "ß") *and* I also see lots of warnings in my journal a la 'org.kde.pim.akonadicore: Unable to deserialize payload part: "RFC822" in [...]', is that it might be related to encoding, but I have not systematically experimented with reproducing this.  One other correlate: this started happening after OpenSuse Tumbleweed upgraded to Plasma 5.26.0 and/or KDE Frameworks (?) 22.08.2.

Also, I just noticed that the aformentioned warnings and errors relate to each other.  The typical series of log entries looks like this:

    Okt 18 16:51:52 thetick korganizer[20124]: parse error from icalcomponent_new_from_string. string= "BEGIN:VCALENDAR\n[...]\nEND:VCALENDAR"
    Okt 18 16:51:52 thetick korganizer[20124]: org.kde.pim.calendar_serializer: Failed to parse incidence! Item id =  108245 Storage collection id  107 parentCollectionId =  107
    Okt 18 16:51:52 thetick korganizer[20124]: org.kde.pim.calendar_serializer: "BEGIN:VCALENDAR\n[...]\nEND:VCALENDAR"
    Okt 18 16:51:52 thetick korganizer[20124]: org.kde.pim.akonadicore: Unable to deserialize payload part: "RFC822" in item 108245 collection 107
    Okt 18 16:51:52 thetick korganizer[20124]: org.kde.pim.akonadicore:  payload data was:  "BEGIN:VCALENDAR\n[...]\nEND:VCALENDAR"

My main calendar is a self-hosted Nextcloud (version 23.0.8, all apps up-to-date) on a Gentoo server, synchronized via CalDav, but I also synchronize an ical file from my university.

The reporter is unsure if this crash is reproducible.

-- Backtrace:
Application: KOrganizer (korganizer), signal: Segmentation fault

[KCrash Handler]
#4  0x00007fea360c2b56 in Akonadi::IncidenceChangerPrivate::handleInvitationsAfterChange (this=0x560369a23100, change=...) at /usr/src/debug/akonadi-calendar-22.08.2-1.1.x86_64/src/incidencechanger.cpp:573
#5  0x00007fea360c3c53 in Akonadi::IncidenceChangerPrivate::handleCreateJobResult (this=0x560369a23100, job=<optimized out>) at /usr/src/debug/akonadi-calendar-22.08.2-1.1.x86_64/src/incidencechanger.cpp:264
#6  0x00007fea36d7b9d0 in QObject::event (this=0x560369a23100, e=0x56036b0a7500) at kernel/qobject.cpp:1347
#7  0x00007fea378fe3fe in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x560369a23100, e=0x56036b0a7500) at kernel/qapplication.cpp:3637
#8  0x00007fea36d50178 in QCoreApplication::notifyInternal2 (receiver=0x560369a23100, event=0x56036b0a7500) at kernel/qcoreapplication.cpp:1064
#9  0x00007fea36d53111 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x5603696bf480) at kernel/qcoreapplication.cpp:1821
#10 0x00007fea36da8003 in postEventSourceDispatch (s=0x560369815d30) at kernel/qeventdispatcher_glib.cpp:277
#11 0x00007fea344bca50 in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#12 0x00007fea344bce08 in ?? () from /lib64/libglib-2.0.so.0
#13 0x00007fea344bce9c in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#14 0x00007fea36da7806 in QEventDispatcherGlib::processEvents (this=0x560369821ee0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#15 0x00007fea36d4ebeb in QEventLoop::exec (this=this@entry=0x7fff677a7480, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#16 0x00007fea36d56d56 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#17 0x000056036816f532 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/korganizer-22.08.2-1.1.x86_64/src/main.cpp:72
[Inferior 1 (process 18763) detached]

Reported using DrKonqi
Comment 1 Marc Joliet 2022-10-19 13:44:08 UTC
Since the backtrace in https://bugs.kde.org/show_bug.cgi?id=460569 looks pretty similar to me, I thought I'd try launching KOrganizer from the terminal, but it crashed in the same way again, with what at first glance looks to me to be the same backtrace as I got before:

Application: KOrganizer (korganizer), signal: Segmentation fault

[KCrash Handler]
#4  0x00007febddc53b56 in Akonadi::IncidenceChangerPrivate::handleInvitationsAfterChange (this=0x55a6e0487c30, change=...) at /usr/src/debug/akonadi-calendar-22.08.2-1.1.x86_64/src/incidencechanger.cpp:573
#5  0x00007febddc54c53 in Akonadi::IncidenceChangerPrivate::handleCreateJobResult (this=0x55a6e0487c30, job=<optimized out>) at /usr/src/debug/akonadi-calendar-22.08.2-1.1.x86_64/src/incidencechanger.cpp:264
#6  0x00007febde90c9d0 in QObject::event (this=0x55a6e0487c30, e=0x55a6e0843e00) at kernel/qobject.cpp:1347
#7  0x00007febdf48f3fe in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55a6e0487c30, e=0x55a6e0843e00) at kernel/qapplication.cpp:3637
#8  0x00007febde8e1178 in QCoreApplication::notifyInternal2 (receiver=0x55a6e0487c30, event=0x55a6e0843e00) at kernel/qcoreapplication.cpp:1064
#9  0x00007febde8e4111 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x55a6e016d480) at kernel/qcoreapplication.cpp:1821
#10 0x00007febde939003 in postEventSourceDispatch (s=0x55a6e02c0830) at kernel/qeventdispatcher_glib.cpp:277
#11 0x00007febdc04da50 in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#12 0x00007febdc04de08 in ?? () from /lib64/libglib-2.0.so.0
#13 0x00007febdc04de9c in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#14 0x00007febde938806 in QEventDispatcherGlib::processEvents (this=0x55a6e02d08e0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#15 0x00007febde8dfbeb in QEventLoop::exec (this=this@entry=0x7ffce7c1a710, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#16 0x00007febde8e7d56 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#17 0x000055a6df581532 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/korganizer-22.08.2-1.1.x86_64/src/main.cpp:72
[Inferior 1 (process 5106) detached]
Comment 2 Antonio Rojas 2022-10-20 07:43:28 UTC

*** This bug has been marked as a duplicate of bug 460197 ***