Bug 442751 - Crash when closing KDevelop session
Summary: Crash when closing KDevelop session
Status: RESOLVED DUPLICATE of bug 441206
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: 5.6.2
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2021-09-20 18:44 UTC by Rick Wagner
Modified: 2021-09-22 10:43 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 Rick Wagner 2021-09-20 18:44:31 UTC
Application: kdevelop (5.6.2)

Qt Version: 5.15.2
Frameworks Version: 5.85.0
Operating System: Linux 5.13.16-200.fc34.x86_64 x86_64
Windowing System: X11
Drkonqi Version: 5.22.4
Distribution: "Fedora release 34 (Thirty Four)"

-- Information about the crash:
I had a development session open. I was only reviewing code, not modifying any code, so had not made any changes. I closed the session by clicking the close button on the application title bar, and go the pop-up saying "KDevelop has crashed".

The crash can be reproduced sometimes.

-- Backtrace:
Application: KDevelop (kdevelop), signal: Segmentation fault

[KCrash Handler]
#4  0x00007f81debf0d13 in QStackedLayout::widget(int) const () at /lib64/libQt5Widgets.so.5
#5  0x00007f814e323a1d in Konsole::TabbedViewContainer::viewSplitterAt(int) () at /lib64/libkonsoleprivate.so.21
#6  0x00007f814e3268a6 in Konsole::TabbedViewContainer::currentTabViewCount() () at /lib64/libkonsoleprivate.so.21
#7  0x00007f814e2ce849 in Konsole::ViewManager::sessionFinished() () at /lib64/libkonsoleprivate.so.21
#8  0x00007f81ddf453a9 in void doActivate<false>(QObject*, int, void**) () at /lib64/libQt5Core.so.5
#9  0x00007f81ddf453a9 in void doActivate<false>(QObject*, int, void**) () at /lib64/libQt5Core.so.5
#10 0x00007f81dde98e73 in QProcess::finished(int, QProcess::ExitStatus) () at /lib64/libQt5Core.so.5
#11 0x00007f81dde9d433 in QProcessPrivate::_q_processDied() () at /lib64/libQt5Core.so.5
#12 0x00007f81ddea1102 in QProcessPrivate::waitForFinished(int) () at /lib64/libQt5Core.so.5
#13 0x00007f814e3389e0 in Konsole::Session::closeInNormalWay() () at /lib64/libkonsoleprivate.so.21
#14 0x00007f814e32f13a in Konsole::Session::close() () at /lib64/libkonsoleprivate.so.21
#15 0x00007f81ddf453a9 in void doActivate<false>(QObject*, int, void**) () at /lib64/libQt5Core.so.5
#16 0x00007f81ddf403e3 in QObject::destroyed(QObject*) () at /lib64/libQt5Core.so.5
#17 0x00007f81dec08813 in QWidget::~QWidget() () at /lib64/libQt5Widgets.so.5
#18 0x00007f814e3091dd in Konsole::TerminalDisplay::~TerminalDisplay() () at /lib64/libkonsoleprivate.so.21
#19 0x00007f81ddf3a78a in QObjectPrivate::deleteChildren() () at /lib64/libQt5Core.so.5
#20 0x00007f81dec08556 in QWidget::~QWidget() () at /lib64/libQt5Widgets.so.5
#21 0x00007f814e2ad6f5 in Konsole::ViewSplitter::~ViewSplitter() () at /lib64/libkonsoleprivate.so.21
#22 0x00007f81ddf3a78a in QObjectPrivate::deleteChildren() () at /lib64/libQt5Core.so.5
#23 0x00007f81dec08556 in QWidget::~QWidget() () at /lib64/libQt5Widgets.so.5
#24 0x00007f81ded8588d in QStackedWidget::~QStackedWidget() () at /lib64/libQt5Widgets.so.5
#25 0x00007f81ddf3a78a in QObjectPrivate::deleteChildren() () at /lib64/libQt5Core.so.5
#26 0x00007f81dec08556 in QWidget::~QWidget() () at /lib64/libQt5Widgets.so.5
#27 0x00007f814e3239dd in Konsole::TabbedViewContainer::~TabbedViewContainer() () at /lib64/libkonsoleprivate.so.21
#28 0x00007f81dc1420b7 in KParts::Part::~Part() () at /lib64/libKF5Parts.so.5
#29 0x00007f817802f11c in Konsole::Part::~Part() () at /usr/lib64/qt5/plugins/konsolepart.so
#30 0x00007f81ddf3a78a in QObjectPrivate::deleteChildren() () at /lib64/libQt5Core.so.5
#31 0x00007f81dec08556 in QWidget::~QWidget() () at /lib64/libQt5Widgets.so.5
#32 0x00007f8178044ee0 in KDevKonsoleView::~KDevKonsoleView() () at /usr/lib64/qt5/plugins/kdevplatform/34/kdevkonsoleview.so
#33 0x00007f81ddf3a78a in QObjectPrivate::deleteChildren() () at /lib64/libQt5Core.so.5
#34 0x00007f81dec08556 in QWidget::~QWidget() () at /lib64/libQt5Widgets.so.5
#35 0x00007f81dc534900 in Sublime::IdealController::removeView(Sublime::View*, bool) () at /lib64/libKDevPlatformSublime.so.56
#36 0x00007f81dc534a2c in Sublime::MainWindowPrivate::aboutToRemoveToolView(Sublime::View*, Sublime::Position) () at /lib64/libKDevPlatformSublime.so.56
#37 0x00007f81ddf453a9 in void doActivate<false>(QObject*, int, void**) () at /lib64/libQt5Core.so.5
#38 0x00007f81dc515aa4 in Sublime::Area::aboutToRemoveToolView(Sublime::View*, Sublime::Position) () at /lib64/libKDevPlatformSublime.so.56
#39 0x00007f81dc51cbfc in Sublime::Area::removeToolView(Sublime::View*) () at /lib64/libKDevPlatformSublime.so.56
#40 0x00007f81df7cf13b in KDevelop::UiController::removeToolView(KDevelop::IToolViewFactory*) () at /lib64/libKDevPlatformShell.so.56
#41 0x00007f81df7c4fff in KDevelop::PluginController::unloadPlugin(KDevelop::IPlugin*, KDevelop::PluginController::PluginDeletion) () at /lib64/libKDevPlatformShell.so.56
#42 0x00007f81df7c5412 in KDevelop::PluginController::cleanup() () at /lib64/libKDevPlatformShell.so.56
#43 0x00007f81df7d2bd6 in KDevelop::Core::cleanup() () at /lib64/libKDevPlatformShell.so.56
#44 0x00007f81df7d32bc in KDevelop::Core::shutdown() () at /lib64/libKDevPlatformShell.so.56
#45 0x00007f81df7b2e4f in KDevelop::MainWindow::~MainWindow() () at /lib64/libKDevPlatformShell.so.56
#46 0x00007f81df7b2ebd in KDevelop::MainWindow::~MainWindow() () at /lib64/libKDevPlatformShell.so.56
#47 0x00007f81ddf3bd31 in QObject::event(QEvent*) () at /lib64/libQt5Core.so.5
#48 0x00007f81dc0dcd2d in KXmlGuiWindow::event(QEvent*) () at /lib64/libKF5XmlGui.so.5
#49 0x00007f81debca443 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib64/libQt5Widgets.so.5
#50 0x00007f81ddf11798 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib64/libQt5Core.so.5
#51 0x00007f81ddf14d06 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /lib64/libQt5Core.so.5
#52 0x00007f81ddf630d7 in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () at /lib64/libQt5Core.so.5
#53 0x00007f81da6d64cf in g_main_context_dispatch () at /lib64/libglib-2.0.so.0
#54 0x00007f81da72a4f8 in g_main_context_iterate.constprop () at /lib64/libglib-2.0.so.0
#55 0x00007f81da6d3c03 in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#56 0x00007f81ddf62b78 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#57 0x00007f81ddf101a2 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#58 0x00007f81ddf186e4 in QCoreApplication::exec() () at /lib64/libQt5Core.so.5
#59 0x000056308d59e35f in main ()
[Inferior 1 (process 159649) detached]

Reported using DrKonqi
Comment 1 Jan Paul Batrina 2021-09-21 09:36:34 UTC

*** This bug has been marked as a duplicate of bug 441206 ***
Comment 2 Jonathan Verner 2021-09-22 10:42:37 UTC
Thanks for reporting this. 

From what I understand from the backtrace, it seems to be a bug in the terminal widget (Konsole KPart, not part of KDevelop). Unfortunately I can't reproduce it locally and the backtrace doesn't give me enough info to see what the problem might be (plus I don't understand konsole code). 

At least it only happens on closing, when you're hopefully finished with your work :-)

Might be related to the fix for https://bugs.kde.org/show_bug.cgi?id=432077?
(For some reason, (_navigationMethod == TabbedNavigation) seems to be true even though the terminal widget is a KPart).

Anyway, perhaps this should be changed to a konsole bug?
Comment 3 Jonathan Verner 2021-09-22 10:43:41 UTC
(In reply to Jonathan Verner from comment #2)
> 
> Anyway, perhaps this should be changed to a konsole bug?

oops, done already :-)