<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>438717</bug_id>
          
          <creation_ts>2021-06-16 08:07:44 +0000</creation_ts>
          <short_desc>Crash in Konsole::PlainTextDecoder::decodeLine() after session close</short_desc>
          <delta_ts>2021-06-16 17:09:15 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>konsole</product>
          <component>general</component>
          <version>21.04.2</version>
          <rep_platform>Fedora RPMs</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>436630</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>drkonqi, wayland-only</keywords>
          <priority>NOR</priority>
          <bug_severity>crash</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Jiri Rohlicek">jiri.rohlicek</reporter>
          <assigned_to name="Konsole Bugs">konsole-bugs-null</assigned_to>
          <cc>kdelibs-bugs-null</cc>
    
    <cc>nate</cc>
    
    <cc>ninjalj</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2041155</commentid>
    <comment_count>0</comment_count>
    <who name="Jiri Rohlicek">jiri.rohlicek</who>
    <bug_when>2021-06-16 08:07:44 +0000</bug_when>
    <thetext>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: &quot;Fedora release 34 (Thirty Four)&quot;

-- Information about the crash:
- What I was doing when the application crashed:
closing session by exit &lt;ENTER&gt; 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&lt;Qt::InputMethodQuery&gt;, unsigned int) () from /lib64/libQt5WaylandClient.so.5
#10 0x00007fbf114cc58d in QGuiApplicationPrivate::_q_updateFocusObject(QObject*) () from /lib64/libQt5Gui.so.5
#11 0x00007fbf110ca4fd in void doActivate&lt;false&gt;(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&lt;QEventLoop::ProcessEventsFlag&gt;) () from /lib64/libQt5Core.so.5
#27 0x00007fbf110989b2 in QEventLoop::exec(QFlags&lt;QEventLoop::ProcessEventsFlag&gt;) () 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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2041197</commentid>
    <comment_count>1</comment_count>
    <who name="Jiri Rohlicek">jiri.rohlicek</who>
    <bug_when>2021-06-16 10:01:48 +0000</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2041377</commentid>
    <comment_count>2</comment_count>
    <who name="">ninjalj</who>
    <bug_when>2021-06-16 17:09:15 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 436630 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>