Summary: | Crash when closing activity [Welcome Page related, crash below QQuickRenderControl::~QQuickRenderControl] | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Louis Moureaux <m_louis30> |
Component: | general | Assignee: | kdevelop-bugs-null |
Status: | RESOLVED UPSTREAM | ||
Severity: | crash | CC: | a.markiewicz, devilj, kde, limit.gb |
Priority: | NOR | Keywords: | drkonqi |
Version: | 5.0.0 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
URL: | https://bugreports.qt.io/browse/QTBUG-57841 | ||
Latest Commit: | Version Fixed In: | ||
Attachments: |
Output of valgrind --smc-check=all-non-file --track-origins=yes kdevelop
valgrind trace |
Description
Louis Moureaux
2016-09-10 17:53:47 UTC
I experience the same behaviour. KDevelop 5.0.3 Qt 5.7.1 Frameworks 5.29.0 Arch Linux 4.8.13-1-ARCH x86_64 This crash seems to be caused by the QML-based Welcome Page plugin (that's likely why you see KDevelop crashing, but not the other Qt-based apps): #14 0x00007f50059154d0 in QQuickRenderControl::~QQuickRenderControl() () from /usr/lib/libQt5Quick.so.5 #15 0x00007f5005e98143 in ?? () from /usr/lib/libQt5QuickWidgets.so.5 #16 0x00007f5005e952b3 in ?? () from /usr/lib/libQt5QuickWidgets.so.5 #17 0x00007f5005e953a9 in ?? () from /usr/lib/libQt5QuickWidgets.so.5 #18 0x00007f50100b5547 in QObject::~QObject() () from /usr/lib/libQt5Core.so.5 #19 0x00007f5010da4933 in QWidget::~QWidget() () from /usr/lib/libQt5Widgets.so.5 #20 0x00007f4fd1b8627e in ?? () from /usr/lib/qt/plugins/kdevplatform/25/kdevwelcomepage.so This looks like an upstream issue in Qt, to debug further we'd need a valgrind run of KDevelop, to get more details about the crash. It'd be awesome if one of you guys could run KDevelop through valgrind and then try to reproduce the crash: valgrind --smc-check=all-non-file --track-origins=yes kdevelop &> out If you just want to work-around the problem for the time being, you could make KDevelop not load the Welcome Page plugin at all, by setting this environment variable: KDEV_DISABLE_WELCOMEPAGE=1 Created attachment 103050 [details]
Output of valgrind --smc-check=all-non-file --track-origins=yes kdevelop
Okay, here's the problem: ==7712== Invalid read of size 8 ==7712== at 0x642A14F: QWidget::~QWidget() (in /usr/lib/libQt5Widgets.so.5.7.1) ==7712== by 0x642A5F8: QWidget::~QWidget() (in /usr/lib/libQt5Widgets.so.5.7.1) ==7712== by 0x74D8F5F: QObject::event(QEvent*) (in /usr/lib/libQt5Core.so.5.7.1) ==7712== by 0x642EBAA: QWidget::event(QEvent*) (in /usr/lib/libQt5Widgets.so.5.7.1) ==7712== by 0x63E735B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /usr/lib/libQt5Widgets.so.5.7.1) ==7712== by 0x63EEAD0: QApplication::notify(QObject*, QEvent*) (in /usr/lib/libQt5Widgets.so.5.7.1) ==7712== by 0x74AC8DF: QCoreApplication::notifyInternal2(QObject*, QEvent*) (in /usr/lib/libQt5Core.so.5.7.1) ==7712== by 0x74AF06C: QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (in /usr/lib/libQt5Core.so.5.7.1) ==7712== by 0x11DB63A3: ??? (in /usr/lib/libQt5Quick.so.5.7.1) ==7712== by 0x11DB661F: QQuickRenderControl::~QQuickRenderControl() (in /usr/lib/libQt5Quick.so.5.7.1) ==7712== by 0x1171B292: ??? (in /usr/lib/libQt5QuickWidgets.so.5.7.1) ==7712== by 0x117183E2: ??? (in /usr/lib/libQt5QuickWidgets.so.5.7.1) ==7712== Address 0x8 is not stack'd, malloc'd or (recently) free'd Could you install debug symbols for qtbase so we can see line numbers in the trace? Thanks! Created attachment 103063 [details]
valgrind trace
Important part of the valgrind trace: ==18229== Invalid read of size 8 ==18229== at 0x642A14F: QWidget::~QWidget() (qwidget.cpp:1602) ==18229== by 0x642A5F8: QWidget::~QWidget() (qwidget.cpp:1714) ==18229== by 0x74D8F5F: QObject::event(QEvent*) (qobject.cpp:1254) ==18229== by 0x642EBAA: QWidget::event(QEvent*) (qwidget.cpp:9225) ==18229== by 0x63E735B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (qapplication.cpp:3799) ==18229== by 0x63EEAD0: QApplication::notify(QObject*, QEvent*) (qapplication.cpp:3556) ==18229== by 0x74AC8DF: QCoreApplication::notifyInternal2(QObject*, QEvent*) (qcoreapplication.cpp:988) ==18229== by 0x74AF06C: sendEvent (qcoreapplication.h:231) ==18229== by 0x74AF06C: QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (qcoreapplication.cpp:1649) ==18229== by 0x11DB63A3: ??? (in /usr/lib/libQt5Quick.so.5.7.1) ==18229== by 0x11DB661F: QQuickRenderControl::~QQuickRenderControl() (in /usr/lib/libQt5Quick.so.5.7.1) ==18229== by 0x1171B292: ??? (in /usr/lib/libQt5QuickWidgets.so.5.7.1) ==18229== by 0x117183E2: ??? (in /usr/lib/libQt5QuickWidgets.so.5.7.1) ==18229== Address 0x8 is not stack'd, malloc'd or (recently) free'd Thanks a lot Adam! This looks a lot like a upstream issue, thus reported on the Qt bug tracker now: https://bugreports.qt.io/browse/QTBUG-57841 Again, for a work-around, just do this before starting kdevelop: export KDEV_DISABLE_WELCOMEPAGE=1 *** Bug 392942 has been marked as a duplicate of this bug. *** *** Bug 400204 has been marked as a duplicate of this bug. *** *** Bug 387733 has been marked as a duplicate of this bug. *** |