Bug 460351

Summary: Konsole crash while mouse left-click highlighting text to copy to buffer
Product: [Applications] konsole Reporter: Tim <k21gcy20j>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED DUPLICATE    
Severity: crash CC: ninjalj
Priority: NOR Keywords: drkonqi
Version: 22.08.1   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Tim 2022-10-13 10:38:30 UTC
Application: konsole (22.08.1)

Qt Version: 5.15.6
Frameworks Version: 5.98.0
Operating System: Linux 5.15.0-50-generic x86_64
Windowing System: X11
Distribution: KDE neon User - 5.26
DrKonqi: 5.26.0 [KCrashBackend]

-- Information about the crash:
Normal usage - I was monitoring the journal using `journalctl -f`, and was in the middle of highlighting an interesting line using the mouse holding the left-click button.

The reporter is unsure if this crash is reproducible.

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

[New LWP 10334]
[New LWP 10336]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007f5b53bc699f in __GI___poll (fds=0x7ffccbf56238, nfds=1, timeout=1000) at ../sysdeps/unix/sysv/linux/poll.c:29
python sentry-sdk not installed :(

[Current thread is 1 (Thread 0x7f5b4e5d89c0 (LWP 10332))]

Thread 3 (Thread 0x7f5b462e7700 (LWP 10336)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x5606460de2c8) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x5606460de278, cond=0x5606460de2a0) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x5606460de2a0, mutex=0x5606460de278) at pthread_cond_wait.c:647
#3  0x00007f5b4663a5eb in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#4  0x00007f5b4663a1eb in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#5  0x00007f5b52aa2609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007f5b53bd3133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f5b4d787700 (LWP 10334)):
#0  0x00007f5b53bc699f in __GI___poll (fds=0x7f5b480053c0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f5b520e536e in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f5b520e54a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f5b54199b9b in QEventDispatcherGlib::processEvents (this=0x7f5b48000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f5b5413db3b in QEventLoop::exec (this=this@entry=0x7f5b4d786bb0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#5  0x00007f5b53f57342 in QThread::exec (this=this@entry=0x7f5b53012d80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#6  0x00007f5b52f8ef4b in QDBusConnectionManager::run (this=0x7f5b53012d80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:179
#7  0x00007f5b53f58543 in QThreadPrivate::start (arg=0x7f5b53012d80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:330
#8  0x00007f5b52aa2609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#9  0x00007f5b53bd3133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f5b4e5d89c0 (LWP 10332)):
[KCrash Handler]
#4  0x00007f5b554d07f1 in Konsole::Screen::setSelectionEnd(int, int, bool) () from /lib/x86_64-linux-gnu/libkonsoleprivate.so.1
#5  0x00007f5b554d64b2 in ?? () from /lib/x86_64-linux-gnu/libkonsoleprivate.so.1
#6  0x00007f5b55538117 in Konsole::TerminalDisplay::extendSelection(QPoint const&) () from /lib/x86_64-linux-gnu/libkonsoleprivate.so.1
#7  0x00007f5b55538413 in Konsole::TerminalDisplay::mouseMoveEvent(QMouseEvent*) () from /lib/x86_64-linux-gnu/libkonsoleprivate.so.1
#8  0x00007f5b54d43db6 in QWidget::event (this=0x5606468c8d40, event=0x7ffccbf57ba0) at kernel/qwidget.cpp:8678
#9  0x00007f5b54d00e43 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x5606468c8d40, e=0x7ffccbf57ba0) at kernel/qapplication.cpp:3637
#10 0x00007f5b54d09e47 in QApplication::notify(QObject*, QEvent*) () at kernel/qapplication.cpp:3081
#11 0x00007f5b5413f03a in QCoreApplication::notifyInternal2 (receiver=0x5606468c8d40, event=0x7ffccbf57ba0) at ../../include/QtCore/5.15.6/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:332
#12 0x00007f5b54d09147 in QApplicationPrivate::sendMouseEvent (receiver=receiver@entry=0x5606468c8d40, event=event@entry=0x7ffccbf57ba0, alienWidget=alienWidget@entry=0x5606468c8d40, nativeWidget=0x560646271900, buttonDown=<optimized out>, lastMouseReceiver=..., spontaneous=true, onlyDispatchEnterLeave=false) at kernel/qapplication.cpp:2619
#13 0x00007f5b54d5efa4 in QWidgetWindow::handleMouseEvent (this=0x56064624c200, event=0x7ffccbf58020) at /usr/include/c++/9/bits/atomic_base.h:413
#14 0x00007f5b54d622c4 in QWidgetWindow::event (event=0x7ffccbf58020, this=0x56064624c200) at kernel/qwidgetwindow.cpp:300
#15 QWidgetWindow::event (this=0x56064624c200, event=0x7ffccbf58020) at kernel/qwidgetwindow.cpp:239
#16 0x00007f5b54d00e43 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x56064624c200, e=0x7ffccbf58020) at kernel/qapplication.cpp:3637
#17 0x00007f5b54d09c58 in QApplication::notify(QObject*, QEvent*) () at kernel/qapplication.cpp:3161
#18 0x00007f5b5413f03a in QCoreApplication::notifyInternal2 (receiver=0x56064624c200, event=0x7ffccbf58020) at ../../include/QtCore/5.15.6/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:332
#19 0x00007f5b546017c0 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () at kernel/qguiapplication.cpp:2285
#20 0x00007f5b54602e65 in QGuiApplicationPrivate::processWindowSystemEvent (e=0x560647588930) at kernel/qguiapplication.cpp:2005
#21 0x00007f5b545d96bc in QWindowSystemInterface::sendWindowSystemEvents (flags=flags@entry=...) at kernel/qwindowsysteminterface.cpp:1169
#22 0x00007f5b4decce3e in xcbSourceDispatch (source=<optimized out>) at qxcbeventdispatcher.cpp:105
#23 0x00007f5b520e517d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#24 0x00007f5b520e5400 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x00007f5b520e54a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007f5b54199b82 in QEventDispatcherGlib::processEvents (this=0x5606460dc700, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#27 0x00007f5b5413db3b in QEventLoop::exec (this=this@entry=0x7ffccbf583c0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#28 0x00007f5b54145ce4 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#29 0x0000560644c6e47e in main (argc=<optimized out>, argv=<optimized out>) at ./src/main.cpp:252
[Inferior 1 (process 10332) detached]

The reporter indicates this bug may be a duplicate of or related to bug 398320.

Reported using DrKonqi
Comment 1 ninjalj 2022-11-03 11:30:19 UTC

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