Bug 460776

Summary: Konsole crash when shift selecting in vim
Product: [Applications] konsole Reporter: Paragoumba <paragoumba>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED DUPLICATE    
Severity: crash CC: ninjalj
Priority: NOR Keywords: drkonqi
Version: 22.08.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Paragoumba 2022-10-20 17:28:42 UTC
Application: konsole (22.08.2)

Qt Version: 5.15.6
Frameworks Version: 5.99.0
Operating System: Linux 6.0.2-arch1-1 x86_64
Windowing System: X11
Distribution: "Arch Linux"
DrKonqi: 5.26.1 [KCrashBackend]

-- Information about the crash:
It happened several time that Konsole crashes when selecting text by holding shift then selecting text with mouse while vim is opened

The crash can be reproduced sometimes.

-- Backtrace:
Application: Konsole (konsole), signal: Aborted
Content of s_kcrashErrorMessage: std::unique_ptr<char []> = {get() = <optimized out>}
[KCrash Handler]
#6  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
#7  0x00007f6e0f4a16b3 in __pthread_kill_internal (signo=6, threadid=<optimized out>) at pthread_kill.c:78
#8  0x00007f6e0f451958 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#9  0x00007f6e0f43b53d in __GI_abort () at abort.c:79
#10 0x00007f6e0f6d2112 in std::__glibcxx_assert_fail (file=file@entry=0x7f6e1134b570 "/usr/include/c++/12.2.0/bits/stl_vector.h", line=line@entry=1123, function=function@entry=0x7f6e1134b5a0 "std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = QVector<Konsole::Character>; _Alloc = std::allocator<QVector<Konsole::Character> >; reference = QVector<"..., condition=condition@entry=0x7f6e1134b911 "__n < this->size()") at /usr/src/debug/gcc/libstdc++-v3/src/c++11/debug.cc:60
#11 0x00007f6e11276690 in std::vector<QVector<Konsole::Character>, std::allocator<QVector<Konsole::Character> > >::operator[] (this=<optimized out>, __n=<optimized out>) at /usr/include/c++/12.2.0/bits/stl_vector.h:1121
#12 std::vector<QVector<Konsole::Character>, std::allocator<QVector<Konsole::Character> > >::operator[] (this=0x55934439b460, __n=178) at /usr/include/c++/12.2.0/bits/stl_vector.h:1121
#13 Konsole::Screen::setSelectionEnd (this=0x55934439b450, x=<optimized out>, y=<optimized out>, trimTrailingWhitespace=false) at /usr/src/debug/konsole-22.08.2/src/Screen.cpp:1555
#14 0x00007f6e112d2153 in Konsole::ScreenWindow::setSelectionEnd (trimTrailingWhitespace=<optimized out>, line=<optimized out>, column=32, this=0x559343f281f0) at /usr/src/debug/konsole-22.08.2/src/ScreenWindow.cpp:145
#15 Konsole::TerminalDisplay::extendSelection (this=this@entry=0x55934427dba0, position=...) at /usr/src/debug/konsole-22.08.2/src/terminalDisplay/TerminalDisplay.cpp:1425
#16 0x00007f6e112d6d8a in Konsole::TerminalDisplay::mousePressEvent (this=0x55934427dba0, ev=0x7ffe6ac30910) at /usr/src/debug/konsole-22.08.2/src/terminalDisplay/TerminalDisplay.cpp:1148
#17 0x00007f6e109af45b in QWidget::event (this=0x55934427dba0, event=0x7ffe6ac30910) at kernel/qwidget.cpp:8656
#18 0x00007f6e10978b1c in QApplicationPrivate::notify_helper (this=this@entry=0x559343bc5970, receiver=receiver@entry=0x55934427dba0, e=e@entry=0x7ffe6ac30910) at kernel/qapplication.cpp:3637
#19 0x00007f6e1097e339 in QApplication::notify (this=<optimized out>, receiver=<optimized out>, e=0x7ffe6ac30910) at kernel/qapplication.cpp:3081
#20 0x00007f6e0fc8cb88 in QCoreApplication::notifyInternal2 (receiver=0x55934427dba0, event=0x7ffe6ac30910) at kernel/qcoreapplication.cpp:1064
#21 0x00007f6e1097c337 in QApplicationPrivate::sendMouseEvent (receiver=0x55934427dba0, event=0x7ffe6ac30910, alienWidget=<optimized out>, nativeWidget=0x559344036b80, buttonDown=<optimized out>, lastMouseReceiver=..., spontaneous=true, onlyDispatchEnterLeave=false) at kernel/qapplication.cpp:2619
#22 0x00007f6e109cd3b5 in QWidgetWindow::handleMouseEvent (this=0x559343ffaf30, event=0x7ffe6ac30c70) at kernel/qwidgetwindow.cpp:683
#23 0x00007f6e109cf15e in QWidgetWindow::event (this=0x559343ffaf30, event=0x7ffe6ac30c70) at kernel/qwidgetwindow.cpp:300
#24 0x00007f6e10978b1c in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x559343ffaf30, e=0x7ffe6ac30c70) at kernel/qapplication.cpp:3637
#25 0x00007f6e0fc8cb88 in QCoreApplication::notifyInternal2 (receiver=0x559343ffaf30, event=0x7ffe6ac30c70) at kernel/qcoreapplication.cpp:1064
#26 0x00007f6e1013f13c in QGuiApplicationPrivate::processMouseEvent (e=0x55934464f6f0) at kernel/qguiapplication.cpp:2285
#27 0x00007f6e10128985 in QWindowSystemInterface::sendWindowSystemEvents (flags=flags@entry=...) at kernel/qwindowsysteminterface.cpp:1169
#28 0x00007f6e09cf36c0 in xcbSourceDispatch (source=<optimized out>) at /usr/src/debug/qtbase/src/plugins/platforms/xcb/qxcbeventdispatcher.cpp:105
#29 0x00007f6e0e11981b in g_main_dispatch (context=0x7f6e04005010) at ../glib/glib/gmain.c:3444
#30 g_main_context_dispatch (context=0x7f6e04005010) at ../glib/glib/gmain.c:4162
#31 0x00007f6e0e16fec9 in g_main_context_iterate.constprop.0 (context=0x7f6e04005010, block=1, dispatch=1, self=<optimized out>) at ../glib/glib/gmain.c:4238
#32 0x00007f6e0e1180d2 in g_main_context_iteration (context=0x7f6e04005010, may_block=1) at ../glib/glib/gmain.c:4303
#33 0x00007f6e0fcd750c in QEventDispatcherGlib::processEvents (this=0x559343cf7310, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#34 0x00007f6e0fc8532c in QEventLoop::exec (this=0x7ffe6ac31010, flags=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#35 0x00007f6e0fc8fe59 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#36 0x00007f6e1013a0e2 in QGuiApplication::exec () at kernel/qguiapplication.cpp:1870
#37 0x00007f6e10976f2a in QApplication::exec () at kernel/qapplication.cpp:2829
#38 0x0000559343814b65 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/konsole-22.08.2/src/main.cpp:252
[Inferior 1 (process 20084) detached]

Reported using DrKonqi
Comment 1 ninjalj 2022-11-03 11:25:54 UTC

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