Bug 448212 - Crash when deferring Display alarm
Summary: Crash when deferring Display alarm
Status: RESOLVED FIXED
Alias: None
Product: kalarm
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: David Jarvie
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2022-01-10 14:40 UTC by Grósz Dániel
Modified: 2022-01-10 23:41 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 21.12.2


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Grósz Dániel 2022-01-10 14:40:38 UTC
Application: kalarm (3.3.3 (KDE Apps 21.12.0))

Qt Version: 5.15.2
Frameworks Version: 5.89.0
Operating System: Linux 5.15.12-1-default x86_64
Windowing System: X11
Distribution: "openSUSE Tumbleweed"
DrKonqi: 5.23.4 [KCrashBackend]

-- Information about the crash:
- What I was doing when the application crashed:
1. Create a display alarm, with the display type set to Notification (not Window), and Sound to Beep. (I'm not sure the sound matters.)
2. When the notification pops up, click Defer.
3. OK the window that pops up. KAlarm immediately crashes.

The crash can be reproduced every time.

-- Backtrace:
Application: KAlarm (kalarm), signal: Segmentation fault
Content of s_kcrashErrorMessage: {_M_t = {<std::__uniq_ptr_impl<char, std::default_delete<char []> >> = {_M_t = {<std::_Tuple_impl<0, char*, std::default_delete<char []> >> = {<std::_Tuple_impl<1, std::default_delete<char []> >> = {<std::_Head_base<1, std::default_delete<char []>, true>> = {_M_head_impl = {<No data fields>}}, <No data fields>}, <std::_Head_base<0, char*, false>> = {_M_head_impl = <optimized out>}, <No data fields>}, <No data fields>}}, <No data fields>}}
[KCrash Handler]
#6  std::__atomic_base<int>::load (__m=std::memory_order_relaxed, this=<error reading variable: Cannot access memory at address 0x88>) at /usr/include/qt5/QtCore/qrefcount.h:54
#7  QAtomicOps<int>::loadRelaxed<int> (_q_value=<error reading variable: Cannot access memory at address 0x88>) at /usr/include/qt5/QtCore/qatomic_cxx11.h:239
#8  QBasicAtomicInteger<int>::loadRelaxed (this=<error reading variable: Cannot access memory at address 0x88>) at /usr/include/qt5/QtCore/qbasicatomic.h:107
#9  QtPrivate::RefCount::ref (this=<error reading variable: Cannot access memory at address 0x88>) at /usr/include/qt5/QtCore/qrefcount.h:55
#10 QMap<QString, QVariant>::QMap (other=..., this=0x7ffc35a46400) at /usr/include/qt5/QtCore/qmap.h:631
#11 KNotification::hints (this=this@entry=0x7fb7c4008c40) at /usr/src/debug/knotifications-5.89.0-1.2.x86_64/src/knotification.cpp:641
#12 0x00007fb7d1b39286 in KNotificationManager::notificationActivated (this=0x7fb7d1b69fc0 <(anonymous namespace)::Q_QGS_s_self::innerFunction()::holder>, id=<optimized out>, action=<optimized out>) at /usr/src/debug/knotifications-5.89.0-1.2.x86_64/src/knotificationmanager.cpp:239
#13 0x00007fb7cf504423 in QtPrivate::QSlotObjectBase::call (a=0x7ffc35a46570, r=0x7fb7d1b69fc0 <(anonymous namespace)::Q_QGS_s_self::innerFunction()::holder>, this=0x556b136ce520) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#14 doActivate<false> (sender=0x556b132cc2f0, signal_index=4, argv=0x7ffc35a46570) at kernel/qobject.cpp:3886
#15 0x00007fb7cf4fd8ef in QMetaObject::activate (sender=<optimized out>, m=m@entry=0x7fb7d1b685e0 <KNotificationPlugin::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7ffc35a46570) at kernel/qobject.cpp:3946
#16 0x00007fb7d1b3292f in KNotificationPlugin::actionInvoked (this=<optimized out>, _t1=<optimized out>, _t2=<optimized out>) at /usr/src/debug/knotifications-5.89.0-1.2.x86_64/build/src/KF5Notifications_autogen/EWIEGA46WW/moc_knotificationplugin.cpp:167
#17 0x00007fb7d1b49f7b in NotifyByPopup::onNotificationActionInvoked (this=0x556b132cc2f0, notificationId=136, actionKey=...) at /usr/src/debug/knotifications-5.89.0-1.2.x86_64/src/notifybypopup.cpp:118
#18 0x00007fb7cf504423 in QtPrivate::QSlotObjectBase::call (a=0x7ffc35a46790, r=0x556b132cc2f0, this=0x556b133b3fb0) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#19 doActivate<false> (sender=0x556b132cc328, signal_index=3, argv=0x7ffc35a46790) at kernel/qobject.cpp:3886
#20 0x00007fb7cf4fd8ef in QMetaObject::activate (sender=<optimized out>, m=<optimized out>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffc35a46790) at kernel/qobject.cpp:3946
#21 0x00007fb7d1b5443d in OrgFreedesktopNotificationsInterface::ActionInvoked (_t2=..., _t1=<optimized out>, this=<optimized out>) at /usr/src/debug/knotifications-5.89.0-1.2.x86_64/build/src/notifications_interface.moc:213
#22 OrgFreedesktopNotificationsInterface::qt_static_metacall (_o=_o@entry=0x556b132cc328, _c=_c@entry=QMetaObject::InvokeMetaMethod, _id=_id@entry=0, _a=_a@entry=0x7ffc35a468e0) at /usr/src/debug/knotifications-5.89.0-1.2.x86_64/build/src/notifications_interface.moc:128
#23 0x00007fb7d1b54843 in OrgFreedesktopNotificationsInterface::qt_metacall (this=0x556b132cc328, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7ffc35a468e0) at /usr/src/debug/knotifications-5.89.0-1.2.x86_64/build/src/notifications_interface.moc:199
#24 0x00007fb7d015c6db in QDBusConnectionPrivate::deliverCall (this=<optimized out>, object=<optimized out>, msg=..., metaTypes=..., slotIdx=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qvarlengtharray.h:190
#25 0x00007fb7cf4fa3ce in QObject::event (this=0x556b132cc328, e=0x556b137fea50) at kernel/qobject.cpp:1314
#26 0x00007fb7d0388a7f in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x556b132cc328, e=0x556b137fea50) at kernel/qapplication.cpp:3632
#27 0x00007fb7cf4cddba in QCoreApplication::notifyInternal2 (receiver=0x556b132cc328, event=0x556b137fea50) at kernel/qcoreapplication.cpp:1064
#28 0x00007fb7cf4d0e07 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x556b1301cc80) at kernel/qcoreapplication.cpp:1821
#29 0x00007fb7cf525c13 in postEventSourceDispatch (s=s@entry=0x556b13160c30) at kernel/qeventdispatcher_glib.cpp:277
#30 0x00007fb7cce79d9f in g_main_dispatch (context=0x7fb7c4005000) at ../glib/gmain.c:3381
#31 g_main_context_dispatch (context=0x7fb7c4005000) at ../glib/gmain.c:4099
#32 0x00007fb7cce7a128 in g_main_context_iterate (context=context@entry=0x7fb7c4005000, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4175
#33 0x00007fb7cce7a1df in g_main_context_iteration (context=0x7fb7c4005000, may_block=1) at ../glib/gmain.c:4240
#34 0x00007fb7cf525294 in QEventDispatcherGlib::processEvents (this=0x556b13179600, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#35 0x00007fb7cf4cc7bb in QEventLoop::exec (this=this@entry=0x7ffc35a46d40, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#36 0x00007fb7cf4d4aa0 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#37 0x00007fb7cf91e23c in QGuiApplication::exec () at kernel/qguiapplication.cpp:1867
#38 0x00007fb7d03889f5 in QApplication::exec () at kernel/qapplication.cpp:2824
#39 0x0000556b126d6c64 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kalarm-21.12.0-1.1.x86_64/src/main.cpp:70
[Inferior 1 (process 11844) detached]

Possible duplicates by query: bug 407271.

Reported using DrKonqi
Comment 1 David Jarvie 2022-01-10 23:41:43 UTC
As you suspected, the crash is not dependent on the sound selection.

The crash is now fixed in KAlarm version 3.3.5, which will be released as part of KDE apps 21.12.2.
Fixed by git commit 22b19b0176deb7e512acd44fec08260396212731 in 21.12 branch.