Bug 344799 - QSystemTrayIcon::setContextMenu() call leads to crash on exit
Summary: QSystemTrayIcon::setContextMenu() call leads to crash on exit
Status: RESOLVED DUPLICATE of bug 343976
Alias: None
Product: frameworks-frameworkintegration
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR crash
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-03 20:10 UTC by Eugene Shalygin
Modified: 2015-04-10 08:25 UTC (History)
2 users (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 Eugene Shalygin 2015-03-03 20:10:21 UTC
Setting custom context menu leads to crash on exit. This can be reproduced with Qt5 systray example app (qtbase/examples/widgets/desktop/systray)

Reproducible: Always




Backtrace:
Program received signal SIGSEGV, Segmentation fault.
0x00000000005a1560 in ?? ()
(gdb) bt
#0  0x00000000005a1560 in ?? ()
#1  0x00007fffe78e4c40 in KStatusNotifierItem::~KStatusNotifierItem (this=0x5a0eb0, __in_chrg=<optimized out>)
    at /usr/src/debug/kde-frameworks/knotifications-9999/knotifications-9999/src/kstatusnotifieritem.cpp:71
#2  0x00007fffe78e508d in KStatusNotifierItem::~KStatusNotifierItem (this=0x5a0eb0, __in_chrg=<optimized out>)
    at /usr/src/debug/kde-frameworks/knotifications-9999/knotifications-9999/src/kstatusnotifieritem.cpp:74
#3  0x00007fffe7df1053 in KDEPlatformSystemTrayIcon::cleanup (this=0x5960c0)
    at /usr/src/debug/kde-frameworks/frameworkintegration-9999/frameworkintegration-9999/src/platformtheme/kdeplatformsystemtrayicon.cpp:264
#4  0x00007ffff7c1a55b in QSystemTrayIcon::~QSystemTrayIcon() () from /usr/lib64/libQt5Widgets.so.5
#5  0x00007ffff7c1a579 in QSystemTrayIcon::~QSystemTrayIcon() () from /usr/lib64/libQt5Widgets.so.5
#6  0x00007ffff700b3eb in QObjectPrivate::deleteChildren() () from /usr/lib64/libQt5Core.so.5
#7  0x00007ffff78fe90a in QWidget::~QWidget() () from /usr/lib64/libQt5Widgets.so.5
#8  0x00000000004045ca in Window::~Window (this=0x7fffffffcd10, __in_chrg=<optimized out>) at window.h:64
#9  0x0000000000404413 in main (argc=1, argv=0x7fffffffcee8) at main.cpp:62

This problem appears also in qBittorrent (https://github.com/qbittorrent/qBittorrent/issues/2416, https://github.com/qbittorrent/qBittorrent/issues/2646)
Comment 1 Eugene Shalygin 2015-04-10 08:25:08 UTC

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