Bug 428639 - Crash while closing a kconsole window, possibly caused by searching in extremely long scrollback history
Summary: Crash while closing a kconsole window, possibly caused by searching in extrem...
Status: REPORTED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 21.12.3
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2020-11-03 12:08 UTC by rainer+kdebugs
Modified: 2022-12-01 05:30 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (538.05 KB, text/plain)
2020-11-03 12:08 UTC, rainer+kdebugs
Details
drkonqi crash info for konsole (21.12.3) (213.23 KB, text/plain)
2022-11-03 10:51 UTC, rainer+kdebugs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rainer+kdebugs 2020-11-03 12:08:17 UTC
Application: konsole (20.08.2)

Qt Version: 5.14.2
Frameworks Version: 5.74.0
Operating System: Linux 5.8.0-25-generic x86_64
Windowing system: X11
Distribution: Ubuntu 20.10

-- Information about the crash:
- What I was doing when the application crashed:

To attempt to reproduce https://bugs.kde.org/show_bug.cgi?id=360146:

* ran this for a minute or two:

  while true; do echo -n  $RANDOM ============================================================================================================== $RANDOM xx ; done

* searched for a random number backwards and forward using the up/down arrows in the search popup repeatedly/randomly
* did the same holding down F3 / Shift-F3
* Canceled the while loop using Ctrl+C
* Reset+Clear saved lines (Ctrl+Shift+K) and tried again once.

Result: the terminal becomes unusable in that it repeatedly and automatically scrolls to random positions in the scrollback buffer, although one can type at the prompt all the way at the bottom. Konsole crashed when closing the window with this session.

The crash can be reproduced sometimes.

-- Backtrace (Reduced):
#5  0x00007f155ccdb94a in Konsole::SearchHistoryTask::executeOnScreenWindow (this=0x560ebdb04d10, session=..., window=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:663
#6  0x00007f155ccdbdc2 in Konsole::SearchHistoryTask::execute (this=0x560ebdb04d10) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:1281
#7  0x00007f155cced108 in Konsole::SessionController::beginSearch (this=this@entry=0x560ebd995aa0, text=..., direction=direction@entry=Konsole::Enum::ForwardsSearch) at ./src/SessionController.cpp:1455
#8  0x00007f155cced45d in Konsole::SessionController::findPreviousInHistory (this=0x560ebd995aa0) at /usr/include/c++/10/bits/atomic_base.h:420
#9  0x00007f155b696320 in doActivate<false> (sender=0x560ebd32b2a0, signal_index=4, argv=argv@entry=0x7ffcc3e0b5a0) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:395


Possible duplicates by query: bug 423054, bug 418543, bug 360146, bug 356272, bug 333971.

Reported using DrKonqi
Comment 1 rainer+kdebugs 2020-11-03 12:08:17 UTC
Created attachment 132988 [details]
New crash information added by DrKonqi

DrKonqi auto-attaching complete backtrace.
Comment 2 Justin Zobel 2022-10-30 00:40:36 UTC
Thank you for reporting this crash in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the crash with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 3 rainer+kdebugs 2022-11-03 10:51:32 UTC
Created attachment 153433 [details]
drkonqi crash info for konsole (21.12.3)
Comment 4 rainer+kdebugs 2022-11-03 10:52:00 UTC
I can reproduce this with Konsole Version 21.12.3, but I can't upload the crash report using the Crash Reporting Assistant (Error sending the crash report / Didn't receive a token / ...)

Application: konsole (21.12.3)

Qt Version: 5.15.3
Frameworks Version: 5.92.0
Operating System: Linux 5.15.0-52-generic x86_64
Windowing System: X11
Distribution: Ubuntu 22.04.1 LTS
DrKonqi: 5.24.5 [KCrashBackend]
Comment 5 Justin Zobel 2022-12-01 05:30:20 UTC
Updating version field.