Bug 442496 - Crash in QStackedLayout::widget when closing Okteta
Summary: Crash in QStackedLayout::widget when closing Okteta
Status: RESOLVED DUPLICATE of bug 441206
Alias: None
Product: konsole
Classification: Applications
Component: kpart (show other bugs)
Version: 21.08.0
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2021-09-16 02:21 UTC by Thomas Faber
Modified: 2021-09-16 11:07 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
attachment-14960-0.html (2.35 KB, text/html)
2021-09-16 07:36 UTC, tcanabrava
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Faber 2021-09-16 02:21:09 UTC
Application: okteta (0.26.4)

Qt Version: 5.15.2
Frameworks Version: 5.85.0
Operating System: Linux 5.13.12-200.fc34.x86_64 x86_64
Windowing System: Wayland
Drkonqi Version: 5.22.4
Distribution: Fedora 34 (Workstation Edition)

-- Information about the crash:
- What I was doing when the application crashed:
Opened a file in Okteta, let it sit for a few hours (machine went to sleep a few times), closed Okteta.

The reporter is unsure if this crash is reproducible.

-- Backtrace:
Application: Okteta (okteta), signal: Segmentation fault

[KCrash Handler]
#4  0x00007f4ecd294d26 in QStackedLayout::widget (this=0x5641f6f2ac10, index=0) at kernel/qstackedlayout.cpp:405
#5  0x00007f4ecd429c44 in QStackedWidget::widget (this=<optimized out>, index=<optimized out>) at widgets/qstackedwidget.cpp:270
#6  0x00007f4ecd44dc34 in QTabWidget::widget (this=<optimized out>, index=<optimized out>) at widgets/qtabwidget.cpp:1200
#7  0x00007f4e92ab3a1d in Konsole::TabbedViewContainer::viewSplitterAt (this=<optimized out>, index=<optimized out>) at /usr/src/debug/konsole5-21.08.0-2.fc34.x86_64/src/widgets/ViewContainer.cpp:145
#8  0x00007f4e92ab3a48 in Konsole::TabbedViewContainer::activeViewSplitter (this=<optimized out>) at /usr/src/debug/konsole5-21.08.0-2.fc34.x86_64/src/widgets/ViewContainer.cpp:140
#9  0x00007f4e92ab68a6 in Konsole::TabbedViewContainer::currentTabViewCount (this=<optimized out>) at /usr/src/debug/konsole5-21.08.0-2.fc34.x86_64/src/widgets/ViewContainer.cpp:150
#10 0x00007f4e92a5e849 in Konsole::ViewManager::sessionFinished (this=0x5641f6f08f70) at /usr/src/debug/konsole5-21.08.0-2.fc34.x86_64/src/ViewManager.cpp:499
#11 0x00007f4ecc7d03a9 in QtPrivate::QSlotObjectBase::call (a=0x7ffddfde3a50, r=<optimized out>, this=0x5641f6f6e500) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#12 doActivate<false> (sender=0x5641f6f65190, signal_index=4, argv=0x7ffddfde3a50) at kernel/qobject.cpp:3886
#13 0x00007f4ecc7d03a9 in QtPrivate::QSlotObjectBase::call (a=0x7ffddfde3b90, r=<optimized out>, this=0x5641f6f6a490) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#14 doActivate<false> (sender=0x5641f6f67580, signal_index=11, argv=0x7ffddfde3b90) at kernel/qobject.cpp:3886
#15 0x00007f4ecc7cb327 in QMetaObject::activate (sender=sender@entry=0x5641f6f67580, m=m@entry=0x7f4ecca70060 <QProcess::staticMetaObject>, local_signal_index=local_signal_index@entry=2, argv=argv@entry=0x7ffddfde3b90) at kernel/qobject.cpp:3946
#16 0x00007f4ecc723e73 in QProcess::finished (this=this@entry=0x5641f6f67580, _t1=<optimized out>, _t2=<optimized out>) at .moc/moc_qprocess.cpp:339
#17 0x00007f4ecc728433 in QProcessPrivate::_q_processDied (this=this@entry=0x5641f6f675c0) at io/qprocess.cpp:1184
#18 0x00007f4ecc72c102 in QProcessPrivate::waitForFinished (this=0x5641f6f675c0, msecs=1000) at io/qprocess_unix.cpp:877
#19 0x00007f4ecc724e00 in QProcess::waitForFinished (this=<optimized out>, msecs=<optimized out>, msecs@entry=1000) at io/qprocess.cpp:1930
#20 0x00007f4e92ac8b3a in Konsole::Session::closeInNormalWay (this=0x5641f6f65190) at /usr/src/debug/konsole5-21.08.0-2.fc34.x86_64/src/session/Session.cpp:881
#21 Konsole::Session::closeInNormalWay (this=0x5641f6f65190) at /usr/src/debug/konsole5-21.08.0-2.fc34.x86_64/src/session/Session.cpp:859
#22 0x00007f4e92abf13a in Konsole::Session::close (this=0x5641f6f65190) at /usr/src/debug/konsole5-21.08.0-2.fc34.x86_64/src/session/Session.cpp:850
#23 Konsole::Session::close (this=0x5641f6f65190) at /usr/src/debug/konsole5-21.08.0-2.fc34.x86_64/src/session/Session.cpp:847
#24 0x00007f4ecc7d03a9 in QtPrivate::QSlotObjectBase::call (a=0x7ffddfde3e80, r=<optimized out>, this=0x5641f6fd8680) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#25 doActivate<false> (sender=0x5641f6711690, signal_index=0, argv=0x7ffddfde3e80) at kernel/qobject.cpp:3886
#26 0x00007f4ecc7cb327 in QMetaObject::activate (sender=sender@entry=0x5641f6711690, m=m@entry=0x7f4ecca693e0 <QObject::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffddfde3e80) at kernel/qobject.cpp:3946
#27 0x00007f4ecc7cb3e3 in QObject::destroyed (this=this@entry=0x5641f6711690, _t1=<optimized out>, _t1@entry=0x5641f6711690) at .moc/moc_qobject.cpp:219
#28 0x00007f4ecd2ac813 in QWidget::~QWidget (this=0x5641f6711690, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1497
#29 0x00007f4e92a991dd in Konsole::TerminalDisplay::~TerminalDisplay (this=<optimized out>, this=<optimized out>) at /usr/src/debug/konsole5-21.08.0-2.fc34.x86_64/src/terminalDisplay/TerminalDisplay.cpp:354
#30 0x00007f4ecc7c578a in QObjectPrivate::deleteChildren (this=this@entry=0x5641f6f90930) at kernel/qobject.cpp:2104
#31 0x00007f4ecd2ac556 in QWidget::~QWidget (this=this@entry=0x5641f6fd8bb0, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1522
#32 0x00007f4ecd35df31 in QFrame::~QFrame (this=this@entry=0x5641f6fd8bb0, __in_chrg=<optimized out>) at widgets/qframe.cpp:264
#33 0x00007f4ecd424721 in QSplitter::~QSplitter (this=this@entry=0x5641f6fd8bb0, __in_chrg=<optimized out>) at widgets/qsplitter.cpp:979
#34 0x00007f4e92a3d6f5 in Konsole::ViewSplitter::~ViewSplitter (this=<optimized out>, this=<optimized out>) at /usr/src/debug/konsole5-21.08.0-2.fc34.x86_64/x86_64-redhat-linux-gnu/src/konsoleprivate_autogen/IMAN36LHMA/../../../../src/widgets/ViewSplitter.h:47
#35 Konsole::ViewSplitter::~ViewSplitter (this=<optimized out>, this=<optimized out>) at /usr/src/debug/konsole5-21.08.0-2.fc34.x86_64/x86_64-redhat-linux-gnu/src/konsoleprivate_autogen/IMAN36LHMA/../../../../src/widgets/ViewSplitter.h:47
#36 0x00007f4ecc7c578a in QObjectPrivate::deleteChildren (this=this@entry=0x5641f6723d80) at kernel/qobject.cpp:2104
#37 0x00007f4ecd2ac556 in QWidget::~QWidget (this=0x5641f6f2ab80, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1522
#38 0x00007f4ecd42988d in QStackedWidget::~QStackedWidget (this=0x5641f6f2ab80, __in_chrg=<optimized out>) at widgets/qstackedwidget.cpp:147
#39 0x00007f4ecc7c578a in QObjectPrivate::deleteChildren (this=this@entry=0x5641f65df2e0) at kernel/qobject.cpp:2104
#40 0x00007f4ecd2ac556 in QWidget::~QWidget (this=0x5641f6f16ae0, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1522
#41 0x00007f4e92ab39dd in Konsole::TabbedViewContainer::~TabbedViewContainer (this=<optimized out>, this=<optimized out>) at /usr/src/debug/konsole5-21.08.0-2.fc34.x86_64/src/widgets/ViewContainer.cpp:136
#42 0x00007f4ecb2200b7 in KParts::Part::~Part() () from /lib64/libKF5Parts.so.5
#43 0x00007f4e92b6a11c in Konsole::Part::~Part (this=<optimized out>, this=<optimized out>) at /usr/src/debug/konsole5-21.08.0-2.fc34.x86_64/src/Part.cpp:76
#44 Konsole::Part::~Part (this=<optimized out>, this=<optimized out>) at /usr/src/debug/konsole5-21.08.0-2.fc34.x86_64/src/Part.cpp:76
#45 0x00007f4ecc7c578a in QObjectPrivate::deleteChildren (this=this@entry=0x5641f68b9070) at kernel/qobject.cpp:2104
#46 0x00007f4ecd2ac556 in QWidget::~QWidget (this=0x5641f68ea3d0, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1522
#47 0x00007f4ecdab7423 in Kasten::TerminalToolView::~TerminalToolView() () from /lib64/libKasten4Controllers.so.0
#48 0x00007f4ecda7647e in Kasten::ToolViewDockWidget::~ToolViewDockWidget() () from /lib64/libKasten4Gui.so.0
#49 0x00007f4ecda773cd in Kasten::ShellWindowPrivate::~ShellWindowPrivate() () from /lib64/libKasten4Gui.so.0
#50 0x00007f4ecda77588 in Kasten::ShellWindow::~ShellWindow() () from /lib64/libKasten4Gui.so.0
#51 0x00005641f50846a4 in Kasten::OktetaMainWindow::~OktetaMainWindow (this=<optimized out>, this=<optimized out>) at /usr/src/debug/okteta-0.26.4-3.fc34.x86_64/program/mainwindow.cpp:147
#52 Kasten::OktetaMainWindow::~OktetaMainWindow (this=<optimized out>, this=<optimized out>) at /usr/src/debug/okteta-0.26.4-3.fc34.x86_64/program/mainwindow.cpp:147
#53 0x00007f4ecc7c6d31 in QObject::event (this=0x5641f66dba50, e=0x5641f72c05f0) at kernel/qobject.cpp:1301
#54 0x00007f4ecd9d1d2d in KXmlGuiWindow::event(QEvent*) () from /lib64/libKF5XmlGui.so.5
#55 0x00007f4ecd26e443 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x5641f66dba50, e=0x5641f72c05f0) at kernel/qapplication.cpp:3632
#56 0x00007f4ecc79c798 in QCoreApplication::notifyInternal2 (receiver=0x5641f66dba50, event=0x5641f72c05f0) at kernel/qcoreapplication.cpp:1064
#57 0x00007f4ecc79fd06 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x5641f65dee20) at kernel/qcoreapplication.cpp:1821
#58 0x00007f4ecc7ee0d7 in postEventSourceDispatch (s=0x5641f666dbd0) at kernel/qeventdispatcher_glib.cpp:277
#59 0x00007f4eca2ff4cf in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#60 0x00007f4eca3534f8 in g_main_context_iterate.constprop () from /lib64/libglib-2.0.so.0
#61 0x00007f4eca2fcc03 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#62 0x00007f4ecc7edb78 in QEventDispatcherGlib::processEvents (this=0x5641f666d990, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#63 0x00007f4ecc79b1a2 in QEventLoop::exec (this=this@entry=0x7ffddfde47a0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#64 0x00007f4ecc7a36e4 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#65 0x00005641f5087357 in Kasten::OktetaProgram::execute (this=0x7ffddfde4960) at /usr/src/debug/okteta-0.26.4-3.fc34.x86_64/program/program.cpp:152
#66 0x00005641f5084033 in main (argc=<optimized out>, argv=0x7ffddfde4aa8) at /usr/src/debug/okteta-0.26.4-3.fc34.x86_64/program/main.cpp:16
[Inferior 1 (process 302476) detached]

Reported using DrKonqi
Comment 1 Friedrich W. H. Kossebau 2021-09-16 05:52:04 UTC
Thanks for the report. Cannot reproduce here with with current Okteta & Konsole as of openSUSE TW packages (Konsole 21.08.1, Okteta 0.26.6) though. And seems a bug rather in Konsole by the backtrace, at least I think Okteta code is not interfering with anything related to where the crash happens, cmp. also https://invent.kde.org/utilities/okteta/-/blob/0.26/libs/kasten/controllers/document/terminal/terminalview.cpp

Sidenote: you might want to poke the Fedora maintainer of the Okteta package to update to more receent 0.26.6 (released 2021-03-29) over what seems current with Fedora (0.26.4 from 2020-07-28).
Comment 2 tcanabrava 2021-09-16 07:36:14 UTC
Created attachment 141578 [details]
attachment-14960-0.html

There was a similar bug on Dolphin and konsole, it was fixed in konsole a
few days ago.


On Thu, Sep 16, 2021 at 6:52 AM Friedrich W. H. Kossebau <
bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=442496
>
> Friedrich W. H. Kossebau <kossebau@kde.org> changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>             Product|okteta                      |konsole
>             Version|0.26.4                      |21.08.0
>           Component|general                     |kpart
>            Assignee|kossebau@kde.org            |konsole-devel@kde.org
>
> --- Comment #1 from Friedrich W. H. Kossebau <kossebau@kde.org> ---
> Thanks for the report. Cannot reproduce here with with current Okteta &
> Konsole
> as of openSUSE TW packages (Konsole 21.08.1, Okteta 0.26.6) though. And
> seems a
> bug rather in Konsole by the backtrace, at least I think Okteta code is not
> interfering with anything related to where the crash happens, cmp. also
>
> https://invent.kde.org/utilities/okteta/-/blob/0.26/libs/kasten/controllers/document/terminal/terminalview.cpp
>
> Sidenote: you might want to poke the Fedora maintainer of the Okteta
> package to
> update to more receent 0.26.6 (released 2021-03-29) over what seems current
> with Fedora (0.26.4 from 2020-07-28).
>
> --
> You are receiving this mail because:
> You are the assignee for the bug.
Comment 3 Jan Paul Batrina 2021-09-16 10:02:27 UTC
I also think this is https://bugs.kde.org/show_bug.cgi?id=441206, and the fix was backported to stable and released in 21.08.1
Comment 4 Ahmad Samir 2021-09-16 11:07:07 UTC
Indeed, a duplicate of bug 441206.

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