Bug 458015 - Crash when invoking search
Summary: Crash when invoking search
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: master
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2022-08-17 23:30 UTC by Nicolas Fella
Modified: 2022-09-02 09:03 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Fella 2022-08-17 23:30:14 UTC
Application: yakuake (22.11.70)
 (Compiled from sources)
Qt Version: 5.15.3
Frameworks Version: 5.98.0
Operating System: Linux 5.18.17-200.fc36.x86_64 x86_64
Windowing System: Wayland
Distribution: Fedora Linux 36 (KDE Plasma)
DrKonqi: 5.25.80 [KCrashBackend]

-- Information about the crash:
I was using Yakuake and triggered the search via Ctrl+Shift+F

See also https://errors-eval.kde.org/organizations/kde/issues/95

The reporter is unsure if this crash is reproducible.

-- Backtrace:
Application: Yakuake (yakuake), signal: Aborted
Content of s_kcrashErrorMessage: std::unique_ptr<char []> = {get() = 0x0}
[KCrash Handler]
#5  0x00007f7a56d67c4c in __pthread_kill_implementation () from /lib64/libc.so.6
#6  0x00007f7a56d179c6 in raise () from /lib64/libc.so.6
#7  0x00007f7a56d017f4 in abort () from /lib64/libc.so.6
#8  0x00007f7a5707bb57 in __gnu_cxx::__verbose_terminate_handler() [clone .cold] () from /lib64/libstdc++.so.6
#9  0x00007f7a5708743c in __cxxabiv1::__terminate(void (*)()) () from /lib64/libstdc++.so.6
#10 0x00007f7a570874a7 in std::terminate() () from /lib64/libstdc++.so.6
#11 0x00007f7a57087708 in __cxa_throw () from /lib64/libstdc++.so.6
#12 0x00007f7a5707e57f in std::__throw_out_of_range_fmt(char const*, ...) [clone .cold] () from /lib64/libstdc++.so.6
#13 0x00007f7a34835e5e in std::vector<Konsole::CompactHistoryScroll::LineData, std::allocator<Konsole::CompactHistoryScroll::LineData> >::_M_range_check (this=<optimized out>, __n=<optimized out>) at /usr/include/c++/12/bits/stl_vector.h:1153
#14 std::vector<Konsole::CompactHistoryScroll::LineData, std::allocator<Konsole::CompactHistoryScroll::LineData> >::at (__n=<optimized out>, this=<optimized out>) at /usr/include/c++/12/bits/stl_vector.h:1194
#15 Konsole::CompactHistoryScroll::isWrappedLine (this=<optimized out>, lineNumber=<optimized out>) at /home/nico/kde/src/konsole/src/history/compact/CompactHistoryScroll.cpp:134
#16 0x00007f7a34807823 in Konsole::Screen::copyLineToStream (this=this@entry=0x240be30, line=line@entry=-3763, start=0, count=0, count@entry=-1, decoder=decoder@entry=0x7ffd5dae5730, appendNewLine=appendNewLine@entry=true, isBlockSelectionMode=false, options=...) at /home/nico/kde/src/konsole/src/Screen.cpp:1830
#17 0x00007f7a34807db7 in Konsole::Screen::writeToStream (this=this@entry=0x240be30, decoder=decoder@entry=0x7ffd5dae5730, startIndex=startIndex@entry=-793993, endIndex=endIndex@entry=220553, options=options@entry=...) at /home/nico/kde/src/konsole/src/Screen.cpp:1749
#18 0x00007f7a3480c2e5 in Konsole::Screen::text (this=this@entry=0x240be30, startIndex=startIndex@entry=-793993, endIndex=220553, options=options@entry=...) at /home/nico/kde/src/konsole/src/Screen.cpp:1716
#19 0x00007f7a3480c455 in Konsole::Screen::selectedText (this=0x240be30, options=...) at /home/nico/kde/src/konsole/src/Screen.cpp:1692
#20 0x00007f7a3480dbad in Konsole::ScreenWindow::selectedText (this=<optimized out>, options=...) at /home/nico/kde/src/konsole/src/ScreenWindow.cpp:120
#21 0x00007f7a347be9ea in Konsole::SessionController::searchBarEvent (this=0x260dc30) at /home/nico/kde/src/konsole/src/session/SessionController.cpp:1444
#22 0x00007f7a574f63f4 in QtPrivate::QSlotObjectBase::call (a=0x7ffd5dae5af0, r=0x260dc30, this=0x261d330) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#23 doActivate<false> (sender=0x261d190, signal_index=4, argv=0x7ffd5dae5af0) at kernel/qobject.cpp:3886
#24 0x00007f7a574efb8f in QMetaObject::activate (sender=sender@entry=0x261d190, m=m@entry=0x7f7a584cdc00 <QAction::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7ffd5dae5af0) at kernel/qobject.cpp:3946
#25 0x00007f7a57fe3462 in QAction::triggered (this=this@entry=0x261d190, _t1=<optimized out>) at .moc/moc_qaction.cpp:376
#26 0x00007f7a57fe5e4b in QAction::activate (this=0x261d190, event=<optimized out>) at kernel/qaction.cpp:1161
#27 0x00007f7a57fe6602 in QAction::event (e=<optimized out>, this=<optimized out>) at kernel/qaction.cpp:1086
#28 QAction::event (this=<optimized out>, e=<optimized out>) at kernel/qaction.cpp:1075
#29 0x00007f7a57fe937e in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x261d190, e=0x7ffd5dae5c70) at kernel/qapplication.cpp:3637
#30 0x00007f7a574c1458 in QCoreApplication::notifyInternal2 (receiver=0x261d190, event=0x7ffd5dae5c70) at kernel/qcoreapplication.cpp:1064
#31 0x00007f7a579156c3 in QShortcutMap::dispatchEvent (this=<optimized out>, e=<optimized out>) at kernel/qshortcutmap.cpp:675
#32 0x00007f7a57915feb in QShortcutMap::tryShortcut (this=this@entry=0x21ebbe8, e=e@entry=0x7ffd5dae5d30) at kernel/qshortcutmap.cpp:343
#33 0x00007f7a578c08ca in QWindowSystemInterface::handleShortcutEvent (window=<optimized out>, timestamp=10474827, keyCode=70, modifiers=..., nativeScanCode=41, nativeVirtualKey=70, nativeModifiers=5, text=..., autorepeat=false, count=1) at kernel/qwindowsysteminterface.cpp:477
#34 0x00007f7a578e459f in QGuiApplicationPrivate::processKeyEvent (e=0x7ffd5dae5eb0) at kernel/qguiapplication.cpp:2395
#35 0x00007f7a45401eab in QIBusPlatformInputContext::filterEventFinished (this=<optimized out>, call=0x26d7de0) at qibusplatforminputcontext.cpp:517
#36 0x00007f7a574f63f4 in QtPrivate::QSlotObjectBase::call (a=0x7ffd5dae6010, r=0x21fe550, this=0x2a3ab30) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#37 doActivate<false> (sender=0x26d7de0, signal_index=3, argv=0x7ffd5dae6010) at kernel/qobject.cpp:3886
#38 0x00007f7a574efb8f in QMetaObject::activate (sender=<optimized out>, m=m@entry=0x7f7a585b6560 <QDBusPendingCallWatcher::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffd5dae6010) at kernel/qobject.cpp:3946
#39 0x00007f7a5859694f in QDBusPendingCallWatcher::finished (this=<optimized out>, _t1=<optimized out>) at .moc/moc_qdbuspendingcall.cpp:158
#40 0x00007f7a574eb3e0 in QObject::event (this=0x26d7de0, e=0x7f7a30006760) at kernel/qobject.cpp:1314
#41 0x00007f7a57fe937e in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x26d7de0, e=0x7f7a30006760) at kernel/qapplication.cpp:3637
#42 0x00007f7a574c1458 in QCoreApplication::notifyInternal2 (receiver=0x26d7de0, event=0x7f7a30006760) at kernel/qcoreapplication.cpp:1064
#43 0x00007f7a574c4131 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x21e9e30) at kernel/qcoreapplication.cpp:1821
#44 0x00007f7a57515d83 in postEventSourceDispatch (s=0x2215d20) at kernel/qeventdispatcher_glib.cpp:277
#45 0x00007f7a5381dfaf in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#46 0x00007f7a538732c8 in g_main_context_iterate.constprop () from /lib64/libglib-2.0.so.0
#47 0x00007f7a5381b940 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#48 0x00007f7a575154a6 in QEventDispatcherGlib::processEvents (this=0x221b0a0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#49 0x00007f7a574c003b in QEventLoop::exec (this=this@entry=0x7ffd5dae6400, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#50 0x00007f7a574c7b42 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#51 0x00007f7a578dca0c in QGuiApplication::exec () at kernel/qguiapplication.cpp:1867
#52 0x00007f7a57fe92f5 in QApplication::exec () at kernel/qapplication.cpp:2829
#53 0x000000000041942b in main (argc=<optimized out>, argv=<optimized out>) at /home/nico/kde/src/yakuake/app/main.cpp:74
[Inferior 1 (process 8917) detached]

Reported using DrKonqi
Comment 1 Matan Ziv-Av 2022-08-19 08:45:27 UTC
Maybe this is the same bug as https://bugs.kde.org/show_bug.cgi?id=457920 ?

Did you compile with ASSERTs disabled?
Comment 2 Kurt Hindenburg 2022-08-25 19:57:38 UTC
Git commit 4e875cdfdd88fc86e181ad97825c390ea62ab0d7 by Kurt Hindenburg, on behalf of Matan Ziv-Av.
Committed on 25/08/2022 at 19:47.
Pushed by hindenburg into branch 'master'.

Prevent _replModeStart line number from becoming negative

Hopefully, this solves:
Related: bug 457920

M  +4    -2    src/Screen.cpp

https://invent.kde.org/utilities/konsole/commit/4e875cdfdd88fc86e181ad97825c390ea62ab0d7
Comment 3 Matan Ziv-Av 2022-09-02 09:03:15 UTC
Git commit 97171b59e694893b61a1f70c2998d6967070187a by Matan Ziv-Av.
Committed on 01/09/2022 at 12:48.
Pushed by tcanabrava into branch 'release/22.08'.

Prevent _replModeStart line number from becoming negative

Hopefully, this solves:
Related: bug 457920

M  +4    -2    src/Screen.cpp

https://invent.kde.org/utilities/konsole/commit/97171b59e694893b61a1f70c2998d6967070187a