Bug 475073

Summary: Crash when selecting text within vi
Product: [Applications] konsole Reporter: jcmunioz
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED DUPLICATE    
Severity: crash CC: ninjalj
Priority: NOR Keywords: drkonqi
Version: 22.08.2   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description jcmunioz 2023-09-30 23:17:44 UTC
Application: konsole (22.08.2)

Qt Version: 5.15.6
Frameworks Version: 5.99.0
Operating System: Linux 5.15.0-52-generic x86_64
Windowing System: X11
Distribution: KDE neon 5.26
DrKonqi: 5.26.2 [KCrashBackend]

-- Information about the crash:
I tried to select text from a file open in vi pressing shift so the mouse events weren't passed to vi, and konsole crashed.

The crash can be reproduced every time.

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

[KCrash Handler]
#4  0x00007f444e475070 in Konsole::Screen::setSelectionEnd(int, int, bool) () from /lib/x86_64-linux-gnu/libkonsoleprivate.so.1
#5  0x00007f444e4cf918 in Konsole::TerminalDisplay::extendSelection(QPoint const&) () from /lib/x86_64-linux-gnu/libkonsoleprivate.so.1
#6  0x00007f444e4d3232 in Konsole::TerminalDisplay::mousePressEvent(QMouseEvent*) () from /lib/x86_64-linux-gnu/libkonsoleprivate.so.1
#7  0x00007f444dd2387e in QWidget::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#8  0x00007f444dce0763 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#9  0x00007f444dce83a4 in QApplication::notify(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#10 0x00007f444d132fea in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#11 0x00007f444dce6e87 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#12 0x00007f444dd3d110 in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#13 0x00007f444dd403a5 in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#14 0x00007f444dce0763 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#15 0x00007f444d132fea in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#16 0x00007f444d5d5ae7 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#17 0x00007f444d5a9acc in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#18 0x00007f444766dc4e in ?? () from /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#19 0x00007f444b1a5d1b in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#20 0x00007f444b1fa6f8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#21 0x00007f444b1a33c3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#22 0x00007f444d18c6f8 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#23 0x00007f444d13190b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#24 0x00007f444d139ea4 in QCoreApplication::exec() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#25 0x00005623307897ed in ?? ()
#26 0x00007f444ca4cd90 in __libc_start_call_main (main=main@entry=0x562330787ce0, argc=argc@entry=1, argv=argv@entry=0x7fffaf9d1388) at ../sysdeps/nptl/libc_start_call_main.h:58
#27 0x00007f444ca4ce40 in __libc_start_main_impl (main=0x562330787ce0, argc=1, argv=0x7fffaf9d1388, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffaf9d1378) at ../csu/libc-start.c:392
#28 0x000056233078a055 in ?? ()
[Inferior 1 (process 2516) detached]

Reported using DrKonqi
Comment 1 ninjalj 2023-10-01 11:46:13 UTC

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