Bug 438717

Summary: Crash in Konsole::PlainTextDecoder::decodeLine() after session close
Product: [Applications] konsole Reporter: Jiri Rohlicek <jiri.rohlicek>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED DUPLICATE    
Severity: crash CC: kdelibs-bugs, nate, ninjalj
Priority: NOR Keywords: drkonqi, wayland
Version: 21.04.2   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jiri Rohlicek 2021-06-16 08:07:44 UTC
Application: kdeinit5 (21.04.1)

Qt Version: 5.15.2
Frameworks Version: 5.82.0
Operating System: Linux 5.12.10-300.fc34.x86_64 x86_64
Windowing System: Wayland
Drkonqi Version: 5.21.5
Distribution: "Fedora release 34 (Thirty Four)"

-- Information about the crash:
- What I was doing when the application crashed:
closing session by exit <ENTER> or
closing session by ^D

konsole5-21.04.1-2.fc34.x86_64

The crash can be reproduced every time.

-- Backtrace:
Application: Konsole (kdeinit5), signal: Segmentation fault

[KCrash Handler]
#4  0x00007fbf0d5eca78 in Konsole::PlainTextDecoder::decodeLine(Konsole::Character const*, int, unsigned char) () from /lib64/libkonsoleprivate.so.21
#5  0x00007fbf0d5a80ad in Konsole::TerminalDisplay::inputMethodQuery(Qt::InputMethodQuery) const () from /lib64/libkonsoleprivate.so.21
#6  0x00007fbf1047ad3c in QWidget::event(QEvent*) () from /lib64/libQt5Widgets.so.5
#7  0x00007fbf10439e73 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#8  0x00007fbf11099f48 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#9  0x00007fbf0c0785ea in QtWaylandClient::QWaylandTextInput::updateState(QFlags<Qt::InputMethodQuery>, unsigned int) () from /lib64/libQt5WaylandClient.so.5
#10 0x00007fbf114cc58d in QGuiApplicationPrivate::_q_updateFocusObject(QObject*) () from /lib64/libQt5Gui.so.5
#11 0x00007fbf110ca4fd in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#12 0x00007fbf114dae66 in QWindow::focusObjectChanged(QObject*) () from /lib64/libQt5Gui.so.5
#13 0x00007fbf10474d7b in QWidget::clearFocus() () from /lib64/libQt5Widgets.so.5
#14 0x00007fbf10475e48 in QWidget::~QWidget() () from /lib64/libQt5Widgets.so.5
#15 0x00007fbf0d53f5c5 in Konsole::TerminalColor::~TerminalColor() () from /lib64/libkonsoleprivate.so.21
#16 0x00007fbf0d59a353 in Konsole::TerminalDisplay::~TerminalDisplay() () from /lib64/libkonsoleprivate.so.21
#17 0x00007fbf0d59a54d in Konsole::TerminalDisplay::~TerminalDisplay() () from /lib64/libkonsoleprivate.so.21
#18 0x00007fbf110c10c1 in QObject::event(QEvent*) () from /lib64/libQt5Core.so.5
#19 0x00007fbf10439e73 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#20 0x00007fbf11099f48 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#21 0x00007fbf1109cc76 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib64/libQt5Core.so.5
#22 0x00007fbf110e6c57 in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib64/libQt5Core.so.5
#23 0x00007fbf0f83b4cf in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#24 0x00007fbf0f88f4e8 in g_main_context_iterate.constprop () from /lib64/libglib-2.0.so.0
#25 0x00007fbf0f838c03 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#26 0x00007fbf110e66f8 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#27 0x00007fbf110989b2 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#28 0x00007fbf110a0544 in QCoreApplication::exec() () from /lib64/libQt5Core.so.5
#29 0x00007fbf0d688abd in kdemain () from /lib64/libkdeinit5_konsole.so
#30 0x000055debc1f25ab in launch(int, char const*, char const*, char const*, int, char const*, bool, char const*, bool, char const*) ()
#31 0x000055debc1f3d4b in handle_launcher_request(int, char const*) [clone .constprop.0] ()
#32 0x000055debc1f4380 in handle_requests(int) ()
#33 0x000055debc1ef0e1 in main ()
[Inferior 1 (process 225872) detached]

Possible duplicates by query: bug 436863, bug 429973, bug 413345, bug 403101, bug 381101.

Reported using DrKonqi
Comment 1 Jiri Rohlicek 2021-06-16 10:01:48 UTC
Hi,

If I have more sessions on tabs in one konsole window, closing those extra sessions does not raise konsole crash.
Just only closing the last session in konsole window.

Jiri Rohlicek
Comment 2 ninjalj 2021-06-16 17:09:15 UTC

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