[Akonadi] [Bug 445496] New: Akonadi resource crashes when importing local .ics file

Claudio Cambra bugzilla_noreply at kde.org
Sun Nov 14 17:24:45 GMT 2021


https://bugs.kde.org/show_bug.cgi?id=445496

            Bug ID: 445496
           Summary: Akonadi resource crashes when importing local .ics
                    file
           Product: Akonadi
           Version: unspecified
          Platform: openSUSE RPMs
                OS: Linux
            Status: REPORTED
          Keywords: drkonqi
          Severity: crash
          Priority: NOR
         Component: ICal file resource
          Assignee: kdepim-bugs at kde.org
          Reporter: claudio.cambra at gmail.com
  Target Milestone: ---

Application: akonadi_ical_resource (5.18.3 (21.08.3))

Qt Version: 5.15.2
Frameworks Version: 5.87.0
Operating System: Linux 5.14.14-2-default x86_64
Windowing System: X11
Distribution: "openSUSE Tumbleweed"
DrKonqi: 5.23.2 [KCrashBackend]

-- Information about the crash:
- What I was doing when the application crashed:

Importing ics files using Kalendar from the command line. Import completed
successfully, but Akonadi reported an iCal resource crash.

The crash can be reproduced sometimes.

-- Backtrace:
Application: akonadi_ical_resource_15 (akonadi_ical_resource), signal: Aborted
Content of s_kcrashErrorMessage: std::unique_ptr<char []> = {get() = {<No data
fields>}}
[KCrash Handler]
#6  __pthread_kill_implementation (threadid=<optimized out>,
signo=signo at entry=6, no_tid=no_tid at entry=0) at pthread_kill.c:44
#7  0x00007f39053718e3 in __pthread_kill_internal (signo=6, threadid=<optimized
out>) at pthread_kill.c:78
#8  0x00007f39053246f6 in __GI_raise (sig=sig at entry=6) at
../sysdeps/posix/raise.c:26
#9  0x00007f390530e7b3 in __GI_abort () at abort.c:79
#10 0x00007f39055af9b6 in __gnu_cxx::__verbose_terminate_handler() () at
../../../../libstdc++-v3/libsupc++/vterminate.cc:95
#11 0x00007f39055bb19c in __cxxabiv1::__terminate(void (*)())
(handler=<optimized out>) at
../../../../libstdc++-v3/libsupc++/eh_terminate.cc:48
#12 0x00007f39055bb207 in std::terminate() () at
../../../../libstdc++-v3/libsupc++/eh_terminate.cc:58
#13 0x00007f39055bb4a9 in __cxxabiv1::__cxa_throw(void*, std::type_info*, void
(*)(void*)) (obj=<optimized out>, tinfo=0x7f390570fe58 <typeinfo for
std::bad_alloc>, dest=0x7f39055b9820 <std::bad_alloc::~bad_alloc()>) at
../../../../libstdc++-v3/libsupc++/eh_throw.cc:95
#14 0x00007f39057db409 in qBadAlloc() () at global/qglobal.cpp:3338
#15 0x00007f39057deea7 in QByteArray::QByteArray(int, Qt::Initialization)
(this=<optimized out>, this at entry=0x7fff6638bf10, size=<optimized out>,
size at entry=-1879047685) at text/qbytearray.cpp:1764
#16 0x00007f3905a55f38 in QUtf8::convertFromUnicode(QChar const*, int)
(uc=0x7f3887fff028, len=805306537) at codecs/qutfcodec.cpp:376
#17 0x00007f390589bfe1 in qt_convert_to_utf8 (str=...) at text/qstring.cpp:5376
#18 QString::toUtf8_helper(QString const&) (str=...) at text/qstring.cpp:5368
#19 0x00007f3906a1d555 in QString::toUtf8() const & (this=0x557b5c6891c0) at
/usr/include/qt5/QtCore/qstring.h:684
#20
KCalendarCore::ICalFormatImpl::Private::writeCustomProperties(icalcomponent_impl*,
KCalendarCore::CustomProperties*) [clone .constprop.0]
(parent=parent at entry=0x557b5c688ed0, properties=0x557b5c917020, this=<optimized
out>) at
/usr/src/debug/kcalendarcore-5.87.0-1.1.x86_64/src/icalformat_p.cpp:676
#21 0x00007f3906a249b0 in
KCalendarCore::ICalFormatImpl::Private::writeIncidenceBase(icalcomponent_impl*,
QSharedPointer<KCalendarCore::IncidenceBase> const&) [clone .isra.0]
(parent=parent at entry=0x557b5c688ed0, incidenceBase=..., this=<optimized out>)
at /usr/src/debug/kcalendarcore-5.87.0-1.1.x86_64/src/icalformat_p.cpp:657
#22 0x00007f3906a266ad in
KCalendarCore::ICalFormatImpl::writeIncidence(icalcomponent_impl*,
QSharedPointer<KCalendarCore::Incidence> const&, QVector<QTimeZone>*) [clone
.isra.0] (parent=parent at entry=0x557b5c688ed0, incidence=...,
tzUsedList=tzUsedList at entry=0x7fff6638dac8, this=<optimized out>) at
/usr/src/debug/kcalendarcore-5.87.0-1.1.x86_64/src/icalformat_p.cpp:406
#23 0x00007f39069da055 in
KCalendarCore::ICalFormatImpl::writeEvent(QSharedPointer<KCalendarCore::Event>
const&, QVector<QTimeZone>*) (this=<optimized out>, event=...,
tzUsedList=tzUsedList at entry=0x7fff6638dac8) at
/usr/src/debug/kcalendarcore-5.87.0-1.1.x86_64/src/icalformat_p.cpp:249
#24 0x00007f39069dd1ac in
KCalendarCore::ICalFormat::toString(QSharedPointer<KCalendarCore::Calendar>
const&, QString const&, bool) (this=0x557b5c5ffa60, cal=..., notebook=...,
deleted=false) at
/usr/src/debug/kcalendarcore-5.87.0-1.1.x86_64/src/icalformat.cpp:271
#25 0x00007f39069dbef7 in
KCalendarCore::ICalFormat::save(QSharedPointer<KCalendarCore::Calendar> const&,
QString const&) (this=this at entry=0x557b5c5ffa60, calendar=..., fileName=...) at
/usr/src/debug/kcalendarcore-5.87.0-1.1.x86_64/src/icalformat.cpp:102
#26 0x00007f39069d71b6 in KCalendarCore::FileStorage::save()
(this=0x557b5c599840) at
/usr/src/debug/kcalendarcore-5.87.0-1.1.x86_64/src/filestorage.cpp:150
#27 0x0000557b5af4bb00 in ICalResourceBase::writeToFile(QString const&)
(this=this at entry=0x7fff6638e4a0, fileName=...) at
/usr/src/debug/kdepim-runtime-21.08.3-1.1.x86_64/resources/ical/shared/icalresourcebase.cpp:119
#28 0x0000557b5af4a021 in
Akonadi::SingleFileResource<Akonadi_ICal_Resource::Settings>::writeFile(bool)
(this=0x7fff6638e4a0, taskContext=<optimized out>) at
/usr/src/debug/kdepim-runtime-21.08.3-1.1.x86_64/resources/shared/singlefileresource/singlefileresource.h:193
#29 0x00007f3906976770 in Akonadi::SingleFileResourceBase::reloadFile()
(this=this at entry=0x7fff6638e4a0) at
/usr/src/debug/kdepim-runtime-21.08.3-1.1.x86_64/resources/shared/singlefileresource/singlefileresourcebase.cpp:192
#30 0x0000557b5af4b8d4 in ICalResourceBase::retrieveItems(Akonadi::Collection
const&) (this=0x7fff6638e4a0, col=...) at
/usr/src/debug/kdepim-runtime-21.08.3-1.1.x86_64/resources/ical/shared/icalresourcebase.cpp:98
#31 0x00007f39069321dd in
Akonadi::ResourceBasePrivate::slotItemRetrievalCollectionFetchDone(KJob*)
(this=<optimized out>, job=0x557b5c5c4bc0) at
/usr/src/debug/akonadi-server-21.08.3-1.1.x86_64/src/agentbase/resourcebase.cpp:946
#32 0x00007f3905a32043 in QtPrivate::QSlotObjectBase::call(QObject*, void**)
(a=0x7fff6638dfc0, r=0x7f38f8005b60, this=0x557b5c5b1720) at
../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#33 doActivate<false>(QObject*, int, void**) (sender=0x557b5c5c4bc0,
signal_index=6, argv=0x7fff6638dfc0) at kernel/qobject.cpp:3886
#34 0x00007f3905a2b50f in QMetaObject::activate(QObject*, QMetaObject const*,
int, void**) (sender=sender at entry=0x557b5c5c4bc0, m=<optimized out>,
local_signal_index=local_signal_index at entry=3, argv=argv at entry=0x7fff6638dfc0)
at kernel/qobject.cpp:3946
#35 0x00007f3905d7b9ec in KJob::result(KJob*, KJob::QPrivateSignal)
(this=this at entry=0x557b5c5c4bc0, _t1=<optimized out>, _t1 at entry=0x557b5c5c4bc0,
_t2=...) at
/usr/src/debug/kcoreaddons-5.87.0-1.1.x86_64/build/src/lib/KF5CoreAddons_autogen/include/moc_kjob.cpp:633
#36 0x00007f3905d7fd8b in KJob::finishJob(bool) (this=0x557b5c5c4bc0,
emitResult=<optimized out>) at
/usr/src/debug/kcoreaddons-5.87.0-1.1.x86_64/src/lib/jobs/kjob.cpp:98
#37 0x00007f3905a27fee in QObject::event(QEvent*) (this=0x557b5c5c4bc0,
e=0x557b5c5b9300) at kernel/qobject.cpp:1314
#38 0x00007f39061bfa7f in QApplicationPrivate::notify_helper(QObject*, QEvent*)
(this=<optimized out>, receiver=0x557b5c5c4bc0, e=0x557b5c5b9300) at
kernel/qapplication.cpp:3632
#39 0x00007f39059fb9fa in QCoreApplication::notifyInternal2(QObject*, QEvent*)
(receiver=0x557b5c5c4bc0, event=0x557b5c5b9300) at
kernel/qcoreapplication.cpp:1064
#40 0x00007f39059fea47 in QCoreApplicationPrivate::sendPostedEvents(QObject*,
int, QThreadData*) (receiver=0x0, event_type=0, data=0x557b5c49c090) at
kernel/qcoreapplication.cpp:1821
#41 0x00007f3905a53853 in postEventSourceDispatch(GSource*, GSourceFunc,
gpointer) (s=s at entry=0x557b5c57aeb0) at kernel/qeventdispatcher_glib.cpp:277
#42 0x00007f390384fd4f in g_main_dispatch (context=0x7f38f8005000) at
../glib/gmain.c:3381
#43 g_main_context_dispatch (context=0x7f38f8005000) at ../glib/gmain.c:4099
#44 0x00007f39038500d8 in g_main_context_iterate
(context=context at entry=0x7f38f8005000, block=block at entry=1,
dispatch=dispatch at entry=1, self=<optimized out>) at ../glib/gmain.c:4175
#45 0x00007f390385018f in g_main_context_iteration (context=0x7f38f8005000,
may_block=1) at ../glib/gmain.c:4240
#46 0x00007f3905a52ed4 in
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
(this=0x557b5c577f90, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#47 0x00007f39059fa3fb in
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)
(this=this at entry=0x7fff6638e3d0, flags=..., flags at entry=...) at
../../include/QtCore/../../src/corelib/global/qflags.h:69
#48 0x00007f3905a026e0 in QCoreApplication::exec() () at
../../include/QtCore/../../src/corelib/global/qflags.h:121
#49 0x00007f3904d2918c in QGuiApplication::exec() () at
kernel/qguiapplication.cpp:1867
#50 0x00007f39061bf9f5 in QApplication::exec() () at
kernel/qapplication.cpp:2824
#51 0x00007f390692db45 in Akonadi::ResourceBase::init(Akonadi::ResourceBase&)
(r=...) at
/usr/src/debug/akonadi-server-21.08.3-1.1.x86_64/src/agentbase/resourcebase.cpp:563
#52 0x0000557b5af47f9f in Akonadi::ResourceBase::init<ICalResource>(int,
char**) (argv=<optimized out>, argc=<optimized out>) at
/usr/include/KF5/AkonadiAgentBase/resourcebase.h:182
#53 main(int, char**) (argc=<optimized out>, argv=<optimized out>) at
/usr/src/debug/kdepim-runtime-21.08.3-1.1.x86_64/resources/ical/icalresource.cpp:9
[Inferior 1 (process 21119) detached]

Possible duplicates by query: bug 445355, bug 441621, bug 440777, bug 439165,
bug 437409.

Reported using DrKonqi

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Kdepim-bugs mailing list