Bug 368040 - Crash when closing application window before notification
Summary: Crash when closing application window before notification
Status: RESOLVED WORKSFORME
Alias: None
Product: frameworks-knotifications
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR crash
Target Milestone: ---
Assignee: Martin Klapetek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-31 09:50 UTC by Martin Sandsmark
Modified: 2018-12-02 03:49 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Sandsmark 2016-08-31 09:50:47 UTC
Not a very good backtrace, but it happens when I close the Konsole window that was responsible for the notification before the notification is closed. So the d-pointer is not null, but invalid, so the null-check in KNotification::id() is not enough. Might want to make the d-pointer something other than a bare pointer.

#0  0x00007f77e8860329 in KNotification::id() () from /usr/lib/libKF5Notifications.so.5
#1  0x00007f77e88645cc in ?? () from /usr/lib/libKF5Notifications.so.5
#2  0x00007f77e90d84e9 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQt5Core.so.5
#3  0x00007f77e888aebf in KNotificationPlugin::finished(KNotification*) () from /usr/lib/libKF5Notifications.so.5
#4  0x00007f77e887a5e4 in ?? () from /usr/lib/libKF5Notifications.so.5
#5  0x00007f77e90d84e9 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQt5Core.so.5
#6  0x00007f77e90d8eaf in QObject::destroyed(QObject*) () from /usr/lib/libQt5Core.so.5
#7  0x00007f77ea068869 in QWidget::~QWidget() () from /usr/lib/libQt5Widgets.so.5
#8  0x00007f77e8865fb9 in KPassivePopup::~KPassivePopup() () from /usr/lib/libKF5Notifications.so.5
#9  0x00007f77e90d9380 in QObject::event(QEvent*) () from /usr/lib/libQt5Core.so.5
#10 0x00007f77ea06d10b in QWidget::event(QEvent*) () from /usr/lib/libQt5Widgets.so.5
#11 0x00007f77ea15462e in QFrame::event(QEvent*) () from /usr/lib/libQt5Widgets.so.5
#12 0x00007f77ea025e3c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#13 0x00007f77ea02d5b1 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#14 0x00007f77e90acc80 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#15 0x00007f77e90af3fd in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQt5Core.so.5
#16 0x00007f77e9101173 in ?? () from /usr/lib/libQt5Core.so.5
#17 0x00007f77e2e9bdd7 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#18 0x00007f77e2e9c040 in ?? () from /usr/lib/libglib-2.0.so.0
#19 0x00007f77e2e9c0ec in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#20 0x00007f77e910157f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#21 0x00007f77e90ab0da in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#22 0x00007f77e90b35cc in QCoreApplication::exec() () from /usr/lib/libQt5Core.so.5
#23 0x00007f77ece3db03 in kdemain (argc=<optimized out>, argv=<optimized out>) at /home/sandsmark/pkg/konsole-git/src/konsole/src/main.cpp:176
#24 0x00007f77eca98291 in __libc_start_main () from /usr/lib/libc.so.6
#25 0x000000000040066a in _start ()


Reproducible: Always
Comment 1 Martin Sandsmark 2016-08-31 09:54:36 UTC
knotifications 5.25.0 fwiw.
Comment 2 Andrew Crouthamel 2018-11-01 13:47:31 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2018-11-16 11:43:54 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Bug Janitor Service 2018-12-02 03:49:45 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!