Application: systemsettings5 (5.4.3) Qt Version: 5.5.1 Operating System: Linux 4.2.6-300.fc23.x86_64+debug x86_64 Distribution: "Fedora release 23 (Twenty Three)" -- Information about the crash: I had been editing system settings and selected quit... System Settings crashed at this point. The crash can be reproduced sometimes. -- Backtrace: Application: System Settings (systemsettings5), signal: Segmentation fault Using host libthread_db library "/usr/lib64/libthread_db.so.1". [Current thread is 1 (Thread 0x7ff07173a8c0 (LWP 12133))] Thread 3 (Thread 0x7ff05530f700 (LWP 12134)): #0 0x00007ff06ba22fdd in poll () at /usr/lib64/libc.so.6 #1 0x00007ff06896b272 in _xcb_conn_wait () at /usr/lib64/libxcb.so.1 #2 0x00007ff06896cee7 in xcb_wait_for_event () at /usr/lib64/libxcb.so.1 #3 0x00007ff057cdbda9 in QXcbEventReader::run() () at /usr/lib64/libQt5XcbQpa.so.5 #4 0x00007ff06c62b3ce in QThreadPrivate::start(void*) () at /usr/lib64/libQt5Core.so.5 #5 0x00007ff06812660a in start_thread () at /usr/lib64/libpthread.so.0 #6 0x00007ff06ba2ea7d in clone () at /usr/lib64/libc.so.6 Thread 2 (Thread 0x7ff0414e7700 (LWP 3274)): #0 0x00007ff067346719 in g_mutex_lock () at /usr/lib64/libglib-2.0.so.0 #1 0x00007ff067301d06 in g_main_context_dispatch () at /usr/lib64/libglib-2.0.so.0 #2 0x00007ff0673021d0 in g_main_context_iterate.isra () at /usr/lib64/libglib-2.0.so.0 #3 0x00007ff06730227c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0 #4 0x00007ff06c862f0b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5 #5 0x00007ff06c809f0a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5 #6 0x00007ff06c626424 in QThread::exec() () at /usr/lib64/libQt5Core.so.5 #7 0x00007ff06adfdb45 in QQmlThreadPrivate::run() () at /usr/lib64/libQt5Qml.so.5 #8 0x00007ff06c62b3ce in QThreadPrivate::start(void*) () at /usr/lib64/libQt5Core.so.5 #9 0x00007ff06812660a in start_thread () at /usr/lib64/libpthread.so.0 #10 0x00007ff06ba2ea7d in clone () at /usr/lib64/libc.so.6 Thread 1 (Thread 0x7ff07173a8c0 (LWP 12133)): [KCrash Handler] #5 0x00005610890c5fb0 in () #6 0x00007ff06c83f4f9 in QObject::disconnect(QObject const*, char const*, QObject const*, char const*) () at /usr/lib64/libQt5Core.so.5 #7 0x00007ff045d6c289 in KParts::PartManager::~PartManager() () at /usr/lib64/libKF5Parts.so.5 #8 0x00007ff045d6c549 in KParts::PartManager::~PartManager() () at /usr/lib64/libKF5Parts.so.5 #9 0x00007ff06c83985b in QObjectPrivate::deleteChildren() () at /usr/lib64/libQt5Core.so.5 #10 0x00007ff06c8430c0 in QObject::~QObject() () at /usr/lib64/libQt5Core.so.5 #11 0x00007ff0464c475b in KHTMLPart::~KHTMLPart() () at /usr/lib64/libKF5KHtml.so.5 #12 0x00007ff0464c4879 in KHTMLPart::~KHTMLPart() () at /usr/lib64/libKF5KHtml.so.5 #13 0x00007ff06c83c1d0 in QObject::event(QEvent*) () at /usr/lib64/libQt5Core.so.5 #14 0x00007ff06e59e41c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5 #15 0x00007ff06e5a38e6 in QApplication::notify(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5 #16 0x00007ff06c80c77b in QCoreApplication::notifyInternal(QObject*, QEvent*) () at /usr/lib64/libQt5Core.so.5 #17 0x00007ff06c80eb76 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib64/libQt5Core.so.5 #18 0x00007ff06c862ae3 in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () at /usr/lib64/libQt5Core.so.5 #19 0x00007ff067301e3a in g_main_context_dispatch () at /usr/lib64/libglib-2.0.so.0 #20 0x00007ff0673021d0 in g_main_context_iterate.isra () at /usr/lib64/libglib-2.0.so.0 #21 0x00007ff06730227c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0 #22 0x00007ff06c862eef in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5 #23 0x00007ff06c809f0a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5 #24 0x00007ff06c811fec in QCoreApplication::exec() () at /usr/lib64/libQt5Core.so.5 #25 0x000056108715b72b in main () Reported using DrKonqi
I can reproduce this consistently after changing any setting and closing systemsettings. Backtrace with debug symbols: Application: Preferencias del sistema (systemsettings5), signal: Segmentation fault Using host libthread_db library "/usr/lib/libthread_db.so.1". [Current thread is 1 (Thread 0x7f49c3b35800 (LWP 26678))] Thread 4 (Thread 0x7f4992904700 (LWP 26710)): #0 0x00007f49bf80e18d in poll () from /usr/lib/libc.so.6 #1 0x00007f49bb800fbc in ?? () from /usr/lib/libglib-2.0.so.0 #2 0x00007f49bb8010cc in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #3 0x00007f49bb801109 in ?? () from /usr/lib/libglib-2.0.so.0 #4 0x00007f49bb827715 in ?? () from /usr/lib/libglib-2.0.so.0 #5 0x00007f49bbd1e4a4 in start_thread () from /usr/lib/libpthread.so.0 #6 0x00007f49bf81713d in clone () from /usr/lib/libc.so.6 Thread 3 (Thread 0x7f4991aa4700 (LWP 26711)): #0 0x00007f49bf80e18d in poll () from /usr/lib/libc.so.6 #1 0x00007f49bb800fbc in ?? () from /usr/lib/libglib-2.0.so.0 #2 0x00007f49bb801342 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0 #3 0x00007f49936ce236 in ?? () from /usr/lib/libgio-2.0.so.0 #4 0x00007f49bb827715 in ?? () from /usr/lib/libglib-2.0.so.0 #5 0x00007f49bbd1e4a4 in start_thread () from /usr/lib/libpthread.so.0 #6 0x00007f49bf81713d in clone () from /usr/lib/libc.so.6 Thread 2 (Thread 0x7f4985d2f700 (LWP 26733)): #0 0x00007f49bf812cf9 in syscall () from /usr/lib/libc.so.6 #1 0x00007f49bb84587a in g_cond_wait_until () from /usr/lib/libglib-2.0.so.0 #2 0x00007f49bb7d5a69 in ?? () from /usr/lib/libglib-2.0.so.0 #3 0x00007f49bb7d608b in g_async_queue_timeout_pop () from /usr/lib/libglib-2.0.so.0 #4 0x00007f49bb82816a in ?? () from /usr/lib/libglib-2.0.so.0 #5 0x00007f49bb827715 in ?? () from /usr/lib/libglib-2.0.so.0 #6 0x00007f49bbd1e4a4 in start_thread () from /usr/lib/libpthread.so.0 #7 0x00007f49bf81713d in clone () from /usr/lib/libc.so.6 Thread 1 (Thread 0x7f49c3b35800 (LWP 26678)): [KCrash Handler] #5 0x0000000000000020 in ?? () #6 0x00007f49c01236f9 in QObject::disconnect(QObject const*, char const*, QObject const*, char const*) () from /usr/lib/libQt5Core.so.5 #7 0x00007f49a294b128 in KParts::PartManager::~PartManager (this=0xc4e3d0, __in_chrg=<optimized out>) at /home/antonio/Software/abs/extra/kparts/src/kparts-5.16.0/src/partmanager.cpp:136 #8 0x00007f49a294b2e9 in KParts::PartManager::~PartManager (this=0xc4e3d0, __in_chrg=<optimized out>) at /home/antonio/Software/abs/extra/kparts/src/kparts-5.16.0/src/partmanager.cpp:146 #9 0x00007f49c011d65b in QObjectPrivate::deleteChildren() () from /usr/lib/libQt5Core.so.5 #10 0x00007f49c01273e0 in QObject::~QObject() () from /usr/lib/libQt5Core.so.5 #11 0x00007f49a30a358b in KHTMLPart::~KHTMLPart (this=this@entry=0xbcba50, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /home/antonio/Software/abs/extra/khtml/src/khtml-5.16.0/src/khtml_part.cpp:559 #12 0x00007f49a30a36a9 in KHTMLPart::~KHTMLPart (this=0xbcba50, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /home/antonio/Software/abs/extra/khtml/src/khtml-5.16.0/src/khtml_part.cpp:607 #13 0x00007f49c0120010 in QObject::event(QEvent*) () from /usr/lib/libQt5Core.so.5 #14 0x00007f49c1c9b01c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5 #15 0x00007f49c1ca04f6 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5 #16 0x00007f49c00f09ab in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5 #17 0x00007f49c00f2da6 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQt5Core.so.5 #18 0x00007f49c0146f43 in ?? () from /usr/lib/libQt5Core.so.5 #19 0x00007f49bb800dc7 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #20 0x00007f49bb801020 in ?? () from /usr/lib/libglib-2.0.so.0 #21 0x00007f49bb8010cc in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #22 0x00007f49c014734f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5 #23 0x00007f49c00ee37a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5 #24 0x00007f49c00f633c in QCoreApplication::exec() () from /usr/lib/libQt5Core.so.5 #25 0x000000000040f39b in main ()
*** Bug 355828 has been marked as a duplicate of this bug. ***
*** Bug 355611 has been marked as a duplicate of this bug. ***
*** Bug 356364 has been marked as a duplicate of this bug. ***
*** Bug 356465 has been marked as a duplicate of this bug. ***
*** Bug 356487 has been marked as a duplicate of this bug. ***
Note that the crash only happens in "Classic Tree View" mode. What seems to be happening is this: ClassicMode::initEvent() creates d->classicWidget, a QSplitter with no parent. KParts::PartManager::PartManager() is called for that splitter, which calls addManagedTopLevelWidget() for it. At this stage isTopLevel() for the splitter is true and so it is added to the d->m_managedTopLevelWidgets list. SettingsBase::changePlugin() adds the splitter to the stackedWidget, which takes ownership of the splitter. When systemsettings5 is closed, KParts::PartManager::removeManagedTopLevelWidget() is called by the destroyed() signal of the splitter. However, by this point isTopLevel() for the splitter is false (because it has been reparented above) and so it is not removed from d->m_managedTopLevelWidgets. KParts::PartManager::~PartManager() accesses the splitter, which has already been destroyed but still remains in d->m_managedTopLevelWidgets => crash.
https://git.reviewboard.kde.org/r/126385/
bug 356771 suggests that the problem is still in version 5.5.1. In this version I'm also able to reproduce it.
*** Bug 356771 has been marked as a duplicate of this bug. ***
Git commit 5ac5dfb28014035e3704ae8bf8076001e5955ceb by Jonathan Marten. Committed on 06/01/2016 at 17:59. Pushed by marten into branch 'master'. PartManager: stop tracking a widget even if it is no longer top level Fixes an access-to-deleted-object crash if a widget is top level when it is added but no longer top level when it is removed. Seen when exiting System Settings. REVIEW:126385 M +0 -4 src/partmanager.cpp http://commits.kde.org/kparts/5ac5dfb28014035e3704ae8bf8076001e5955ceb
*** Bug 356835 has been marked as a duplicate of this bug. ***
*** Bug 357285 has been marked as a duplicate of this bug. ***
*** Bug 357866 has been marked as a duplicate of this bug. ***
*** Bug 357957 has been marked as a duplicate of this bug. ***
*** Bug 358090 has been marked as a duplicate of this bug. ***
*** Bug 358134 has been marked as a duplicate of this bug. ***
*** Bug 358230 has been marked as a duplicate of this bug. ***
*** Bug 358380 has been marked as a duplicate of this bug. ***
*** Bug 358746 has been marked as a duplicate of this bug. ***
*** Bug 358874 has been marked as a duplicate of this bug. ***
*** Bug 359099 has been marked as a duplicate of this bug. ***
*** Bug 359221 has been marked as a duplicate of this bug. ***
*** Bug 359536 has been marked as a duplicate of this bug. ***
*** Bug 359547 has been marked as a duplicate of this bug. ***
*** Bug 359589 has been marked as a duplicate of this bug. ***
*** Bug 359615 has been marked as a duplicate of this bug. ***
*** Bug 362057 has been marked as a duplicate of this bug. ***
*** Bug 362194 has been marked as a duplicate of this bug. ***
*** Bug 362242 has been marked as a duplicate of this bug. ***
*** Bug 362233 has been marked as a duplicate of this bug. ***
This bug is fixed since KDE Frameworks version 5.19, but Ubuntu LTS 16.04 only ships 5.18 version. Please report this to the bug tracker of your distribution.
*** Bug 362520 has been marked as a duplicate of this bug. ***
*** Bug 362564 has been marked as a duplicate of this bug. ***
*** Bug 363323 has been marked as a duplicate of this bug. ***
*** Bug 363646 has been marked as a duplicate of this bug. ***
*** Bug 364048 has been marked as a duplicate of this bug. ***
*** Bug 364754 has been marked as a duplicate of this bug. ***
*** Bug 366489 has been marked as a duplicate of this bug. ***
*** Bug 366515 has been marked as a duplicate of this bug. ***
*** Bug 367884 has been marked as a duplicate of this bug. ***
*** Bug 368230 has been marked as a duplicate of this bug. ***
Christopf, When I notice that the problems I report no longer exist, should I post that "event" on the bug report? It might help you guys? George...
Help with what? This bug is long fixed, see comment #11.
*** Bug 372657 has been marked as a duplicate of this bug. ***
*** Bug 374093 has been marked as a duplicate of this bug. ***
*** Bug 375109 has been marked as a duplicate of this bug. ***
(In reply to Christoph Feck from comment #47) > *** Bug 375109 has been marked as a duplicate of this bug. *** I apologise for the repeated bug reports Christoph, I am as new as they come to Linux, so when something went wrong, I just followed the prompts. I can't imagine how frustrating it must be to get flooded with duplicate reports for already squashed bugs. I'll try and be more diligent about "looking before I click" next time. I sincerely appreciate the excellent work you guys do with a product that I am thoroughly enjoying the h*ll out of!
*** Bug 375852 has been marked as a duplicate of this bug. ***
*** Bug 376969 has been marked as a duplicate of this bug. ***
*** Bug 377227 has been marked as a duplicate of this bug. ***
*** Bug 383654 has been marked as a duplicate of this bug. ***
Hi, I'm running a Fedora 27 (rawhide) system with this version of systemsettings and have not seen this problem in some time. Has it gone away (i.e. been fixed)? plasma-systemsettings-5.10.4-3.fc27.x86_64
*** Bug 388443 has been marked as a duplicate of this bug. ***
*** Bug 395415 has been marked as a duplicate of this bug. ***