Bug 457683

Summary: Kcalendar notification crashes when appointment is declined
Product: [Applications] Merkuro Reporter: Gui Do <sicher-mit-linux>
Component: generalAssignee: Claudio Cambra <claudio.cambra>
Status: RESOLVED FIXED    
Severity: crash CC: carl
Priority: NOR Keywords: drkonqi
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Gui Do 2022-08-09 15:12:31 UTC
Application: kalendarac (5.20.3)

Qt Version: 5.15.5
Frameworks Version: 5.96.0
Operating System: Linux 5.14.21-150400.24.11-default x86_64
Windowing System: Wayland
Distribution: "openSUSE Leap 15.4"
DrKonqi: 5.25.4 [KCrashBackend]

-- Information about the crash:
Kcalendar notification crashes when appointment is declined.

The crash can be reproduced every time.

-- Backtrace:
Application: Erinnerungen (kalendarac), signal: Segmentation fault

[KCrash Handler]
#4  std::__atomic_base<int>::load (__m=std::memory_order_relaxed, this=0x61a800000006) at /usr/include/c++/7/bits/atomic_base.h:396
#5  QAtomicOps<int>::loadRelaxed<int> (_q_value=...) at /usr/include/qt5/QtCore/qatomic_cxx11.h:239
#6  QBasicAtomicInteger<int>::loadRelaxed (this=0x61a800000006) at /usr/include/qt5/QtCore/qbasicatomic.h:107
#7  QWeakPointer<QObject>::internalData (this=0x7f4cb4013730) at /usr/include/qt5/QtCore/qsharedpointer_impl.h:698
#8  QPointer<KNotification>::data (this=0x7f4cb4013730) at /usr/include/qt5/QtCore/qpointer.h:77
#9  QPointer<KNotification>::operator KNotification* (this=0x7f4cb4013730) at /usr/include/qt5/QtCore/qpointer.h:83
#10 AlarmNotification::~AlarmNotification (this=0x7f4cb4013730, __in_chrg=<optimized out>) at /usr/src/debug/akonadi-calendar-22.04.3-lp154.241.19.x86_64/reminder-daemon/alarmnotification.cpp:23
#11 0x000055ebdcc09a6e in KalendarAlarmClient::dismiss (this=0x7ffe35b49580, notification=0x7f4cb4013730) at /usr/src/debug/akonadi-calendar-22.04.3-lp154.241.19.x86_64/reminder-daemon/kalendaralarmclient.cpp:120
#12 0x00007f4cd67db7d7 in QtPrivate::QSlotObjectBase::call (a=0x7ffe35b48b50, r=0x7ffe35b49580, this=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#13 doActivate<false> (sender=0x55ebde9e3ba0, signal_index=9, argv=0x7ffe35b48b50) at kernel/qobject.cpp:3886
#14 0x00007f4cd67d4d82 in QMetaObject::activate (sender=sender@entry=0x55ebde9e3ba0, m=m@entry=0x7f4cd902f4c0 <KNotification::staticMetaObject>, local_signal_index=local_signal_index@entry=6, argv=argv@entry=0x0) at kernel/qobject.cpp:3946
#15 0x00007f4cd8de8903 in KNotification::closed (this=this@entry=0x55ebde9e3ba0) at /usr/src/debug/knotifications-5.96.0-lp154.266.16.x86_64/build/src/KF5Notifications_autogen/EWIEGA46WW/moc_knotification.cpp:582
#16 0x00007f4cd8dedc87 in KNotification::close (this=0x55ebde9e3ba0) at /usr/src/debug/knotifications-5.96.0-lp154.266.16.x86_64/src/knotification.cpp:358
#17 0x00007f4cd8dee53c in KNotification::deref (this=<optimized out>) at /usr/src/debug/knotifications-5.96.0-lp154.266.16.x86_64/src/knotification.cpp:494
#18 0x00007f4cd8df19de in KNotificationManager::notifyPluginFinished (this=<optimized out>, notification=0x55ebde9e3ba0) at /usr/src/debug/knotifications-5.96.0-lp154.266.16.x86_64/src/knotificationmanager.cpp:232
#19 0x00007f4cd67db7d7 in QtPrivate::QSlotObjectBase::call (a=0x7ffe35b48cd0, r=0x7f4cd9031030 <(anonymous namespace)::Q_QGS_s_self::innerFunction()::holder>, this=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#20 doActivate<false> (sender=0x55ebde9e6b50, signal_index=3, argv=0x7ffe35b48cd0) at kernel/qobject.cpp:3886
#21 0x00007f4cd67d4d82 in QMetaObject::activate (sender=sender@entry=0x55ebde9e6b50, m=m@entry=0x7f4cd902f440 <KNotificationPlugin::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffe35b48cd0) at kernel/qobject.cpp:3946
#22 0x00007f4cd8de8caf in KNotificationPlugin::finished (this=this@entry=0x55ebde9e6b50, _t1=<optimized out>, _t1@entry=0x55ebde9e3ba0) at /usr/src/debug/knotifications-5.96.0-lp154.266.16.x86_64/build/src/KF5Notifications_autogen/EWIEGA46WW/moc_knotificationplugin.cpp:173
#23 0x00007f4cd8e0931e in NotifyByPopup::onNotificationClosed (this=0x55ebde9e6b50, dbus_id=<optimized out>, reason=3) at /usr/src/debug/knotifications-5.96.0-lp154.266.16.x86_64/src/notifybypopup.cpp:150
#24 0x00007f4cd67db7d7 in QtPrivate::QSlotObjectBase::call (a=0x7ffe35b48f00, r=0x55ebde9e6b50, this=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#25 doActivate<false> (sender=0x55ebde9e6b88, signal_index=5, argv=0x7ffe35b48f00) at kernel/qobject.cpp:3886
#26 0x00007f4cd67d4d82 in QMetaObject::activate (sender=<optimized out>, m=m@entry=0x7f4cd902fac0 <OrgFreedesktopNotificationsInterface::staticMetaObject>, local_signal_index=local_signal_index@entry=2, argv=argv@entry=0x7ffe35b48f00) at kernel/qobject.cpp:3946
#27 0x00007f4cd8e1b1ff in OrgFreedesktopNotificationsInterface::NotificationClosed (_t2=<optimized out>, _t1=<optimized out>, this=<optimized out>) at /usr/src/debug/knotifications-5.96.0-lp154.266.16.x86_64/build/src/notifications_interface.moc:287
#28 OrgFreedesktopNotificationsInterface::qt_static_metacall (_o=_o@entry=0x55ebde9e6b88, _c=_c@entry=QMetaObject::InvokeMetaMethod, _id=_id@entry=2, _a=_a@entry=0x7ffe35b49060) at /usr/src/debug/knotifications-5.96.0-lp154.266.16.x86_64/build/src/notifications_interface.moc:148
#29 0x00007f4cd8e1c475 in OrgFreedesktopNotificationsInterface::qt_metacall (this=0x55ebde9e6b88, _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0x7ffe35b49060) at /usr/src/debug/knotifications-5.96.0-lp154.266.16.x86_64/build/src/notifications_interface.moc:242
#30 0x00007f4cd6cb83d8 in QDBusConnectionPrivate::deliverCall (this=<optimized out>, object=<optimized out>, msg=..., metaTypes=..., slotIdx=<optimized out>) at qdbusintegrator.cpp:1001
#31 0x00007f4cd67d237b in QObject::event (this=0x55ebde9e6b88, e=0x7f4cb400df10) at kernel/qobject.cpp:1314
#32 0x00007f4cd679e1b3 in QCoreApplication::notifyInternal2 (receiver=0x55ebde9e6b88, event=0x7f4cb400df10) at kernel/qcoreapplication.cpp:1064
#33 0x00007f4cd679e38e in QCoreApplication::sendEvent (receiver=receiver@entry=0x55ebde9e6b88, event=event@entry=0x7f4cb400df10) at kernel/qcoreapplication.cpp:1462
#34 0x00007f4cd67a0bd1 in QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x55ebde7f36f0) at kernel/qcoreapplication.cpp:1821
#35 0x00007f4cd67a1158 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1680
#36 0x00007f4cd6800fa3 in postEventSourceDispatch (s=0x55ebde804d70) at kernel/qeventdispatcher_glib.cpp:277
#37 0x00007f4cce4ba7fb in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#38 0x00007f4cce4baba0 in ?? () from /usr/lib64/libglib-2.0.so.0
#39 0x00007f4cce4bac2c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#40 0x00007f4cd680064c in QEventDispatcherGlib::processEvents (this=0x55ebde8270b0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#41 0x00007f4cd679ca1a in QEventLoop::exec (this=this@entry=0x7ffe35b49480, flags=..., flags@entry=...) at kernel/qeventloop.cpp:232
#42 0x00007f4cd67a6257 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1375
#43 0x000055ebdcc07ef9 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/akonadi-calendar-22.04.3-lp154.241.19.x86_64/reminder-daemon/kalendaracmain.cpp:54
[Inferior 1 (process 2517) detached]

The reporter indicates this bug may be a duplicate of or related to bug 456130.

Reported using DrKonqi
Comment 1 Carl Schwan 2022-11-23 17:33:18 UTC
This has been fixed in a recent akonadi-calendar version