Bug 403957 - Konsole crashed while pasting something using middle mouse button
Summary: Konsole crashed while pasting something using middle mouse button
Status: RESOLVED WORKSFORME
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 18.04.0
Platform: Debian stable Linux
: NOR crash
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2019-02-05 13:25 UTC by Adrian Friedli
Modified: 2020-12-06 22:38 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 Adrian Friedli 2019-02-05 13:25:43 UTC
Application: konsole (18.04.0)

Qt Version: 5.11.3
Frameworks Version: 5.54.0
Operating System: Linux 4.19.0-1-amd64 x86_64
Distribution: Debian GNU/Linux buster/sid

-- Information about the crash:
I tried to paste something using the middle mouse button. Then konsole crashed.

-- Backtrace:
Application: Konsole (konsole), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f999612c840 (LWP 12293))]

Thread 4 (Thread 0x7f998d0fe700 (LWP 12297)):
#0  futex_wait_cancelable (private=0, expected=0, futex_word=0x55d8ea1625c8) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55d8ea162578, cond=0x55d8ea1625a0) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x55d8ea1625a0, mutex=0x55d8ea162578) at pthread_cond_wait.c:655
#3  0x00007f998d701a32 in cnd_wait (mtx=0x55d8ea162578, cond=0x55d8ea1625a0) at ../src/../include/c11/threads_posix.h:155
#4  util_queue_thread_func (input=input@entry=0x55d8ea266540) at ../src/util/u_queue.c:270
#5  0x00007f998d7015f7 in impl_thrd_routine (p=<optimized out>) at ../src/../include/c11/threads_posix.h:87
#6  0x00007f999b4bdfa3 in start_thread (arg=<optimized out>) at pthread_create.c:486
#7  0x00007f999e3517ef in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f998f889700 (LWP 12296)):
#0  __GI___libc_read (nbytes=16, buf=0x7f998f888b10, fd=7) at ../sysdeps/unix/sysv/linux/read.c:26
#1  __GI___libc_read (fd=7, buf=buf@entry=0x7f998f888b10, nbytes=nbytes@entry=16) at ../sysdeps/unix/sysv/linux/read.c:24
#2  0x00007f999aad5950 in read (__nbytes=16, __buf=0x7f998f888b10, __fd=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/unistd.h:44
#3  g_wakeup_acknowledge (wakeup=0x55d8ea15b0b0) at ../../../glib/gwakeup.c:210
#4  0x00007f999aa8faef in g_main_context_check (context=context@entry=0x7f9988000bf0, max_priority=2147483647, fds=fds@entry=0x7f9988004db0, n_fds=n_fds@entry=1) at ../../../glib/gmain.c:3698
#5  0x00007f999aa8ffc0 in g_main_context_iterate (context=context@entry=0x7f9988000bf0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:3917
#6  0x00007f999aa9013c in g_main_context_iteration (context=0x7f9988000bf0, may_block=may_block@entry=1) at ../../../glib/gmain.c:3981
#7  0x00007f999ca2f16b in QEventDispatcherGlib::processEvents (this=0x7f9988000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#8  0x00007f999c9dc14b in QEventLoop::exec (this=this@entry=0x7f998f888d30, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:140
#9  0x00007f999c82b106 in QThread::exec (this=this@entry=0x7f999c14dd60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at ../../include/QtCore/../../src/corelib/global/qflags.h:120
#10 0x00007f999c0d3545 in QDBusConnectionManager::run (this=0x7f999c14dd60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:178
#11 0x00007f999c834cd7 in QThreadPrivate::start (arg=0x7f999c14dd60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:367
#12 0x00007f999b4bdfa3 in start_thread (arg=<optimized out>) at pthread_create.c:486
#13 0x00007f999e3517ef in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f999531b700 (LWP 12295)):
#0  0x00007f999e346b39 in __GI___poll (fds=fds@entry=0x7f999531ac78, nfds=nfds@entry=1, timeout=timeout@entry=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f999b6e6cf7 in poll (__timeout=-1, __nfds=1, __fds=0x7f999531ac78) at /usr/include/x86_64-linux-gnu/bits/poll2.h:46
#2  _xcb_conn_wait (c=c@entry=0x55d8ea122d50, cond=cond@entry=0x55d8ea122d90, vector=vector@entry=0x0, count=count@entry=0x0) at ../../src/xcb_conn.c:479
#3  0x00007f999b6e891a in xcb_wait_for_event (c=0x55d8ea122d50) at ../../src/xcb_in.c:697
#4  0x00007f9995c84519 in QXcbEventReader::run (this=0x55d8ea12d110) at qxcbconnection.h:409
#5  0x00007f999c834cd7 in QThreadPrivate::start (arg=0x55d8ea12d110) at thread/qthread_unix.cpp:367
#6  0x00007f999b4bdfa3 in start_thread (arg=<optimized out>) at pthread_create.c:486
#7  0x00007f999e3517ef in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f999612c840 (LWP 12293)):
[KCrash Handler]
#6  QWeakPointer<QObject>::data (this=0x50) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qsharedpointer_impl.h:565
#7  QPointer<Konsole::Session>::data (this=0x50) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qpointer.h:86
#8  QPointer<Konsole::Session>::operator Konsole::Session* (this=0x50) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qpointer.h:92
#9  Konsole::SessionController::isReadOnly (this=0x18) at ./src/SessionController.cpp:1579
#10 0x00007f999dff67f7 in Konsole::Vt102Emulation::sendKeyEvent (this=0x55d8eaaedf60, event=0x7ffc9150eb20) at ./src/Vt102Emulation.cpp:1049
#11 0x00007f999ca06820 in QtPrivate::QSlotObjectBase::call (a=0x7ffc9150eaa0, r=0x55d8eaaedf60, this=0x55d8eabfbe80) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:376
#12 QMetaObject::activate (sender=0x55d8ebbf6e90, signalOffset=<optimized out>, local_signal_index=<optimized out>, argv=<optimized out>) at kernel/qobject.cpp:3754
#13 0x00007f999e00139f in Konsole::TerminalDisplay::keyPressedSignal (this=this@entry=0x55d8ebbf6e90, _t1=<optimized out>, _t1@entry=0x7ffc9150eb20) at ./obj-x86_64-linux-gnu/src/konsoleprivate_autogen/EWIEGA46WW/moc_TerminalDisplay.cpp:396
#14 0x00007f999dfe0a44 in Konsole::TerminalDisplay::doPaste (this=0x55d8ebbf6e90, text=..., appendReturn=<optimized out>) at ./src/TerminalDisplay.cpp:3185
#15 0x00007f999dfe0e51 in Konsole::TerminalDisplay::pasteFromX11Selection (this=0x55d8ebbf6e90, appendEnter=<optimized out>) at ./src/TerminalDisplay.cpp:3263
#16 0x00007f999dfe0ffb in Konsole::TerminalDisplay::processMidButtonClick (this=0x55d8ebbf6e90, ev=<optimized out>) at ./src/TerminalDisplay.cpp:2610
#17 0x00007f999dfe14fb in Konsole::TerminalDisplay::mousePressEvent (this=0x55d8ebbf6e90, ev=0x7ffc9150f0e0) at ./src/TerminalDisplay.cpp:2184
#18 0x00007f999d43227f in QWidget::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#19 0x00007f999dfe1f7a in Konsole::TerminalDisplay::event (this=0x55d8ebbf6e90, event=0x7ffc9150f0e0) at ./src/TerminalDisplay.cpp:3559
#20 0x00007f999d3f3491 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#21 0x00007f999d3fad18 in QApplication::notify(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#22 0x00007f999c9dd479 in QCoreApplication::notifyInternal2 (receiver=0x55d8ebbf6e90, event=0x7ffc9150f0e0) at ../../include/QtCore/5.11.3/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:307
#23 0x00007f999d3fa019 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#24 0x00007f999d44c304 in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#25 0x00007f999d44ee8e in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#26 0x00007f999d3f3491 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#27 0x00007f999d3faad0 in QApplication::notify(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#28 0x00007f999c9dd479 in QCoreApplication::notifyInternal2 (receiver=receiver@entry=0x55d8ea452910, event=event@entry=0x7ffc9150f4e0) at ../../include/QtCore/5.11.3/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:307
#29 0x00007f999ce24b1b in QCoreApplication::sendSpontaneousEvent (event=0x7ffc9150f4e0, receiver=0x55d8ea452910) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:237
#30 QGuiApplicationPrivate::processMouseEvent (e=0x55d8eabd2670) at kernel/qguiapplication.cpp:2082
#31 0x00007f999ce26a15 in QGuiApplicationPrivate::processWindowSystemEvent (e=e@entry=0x55d8eabd2670) at kernel/qguiapplication.cpp:1817
#32 0x00007f999ce00d7b in QWindowSystemInterface::sendWindowSystemEvents (flags=...) at kernel/qwindowsysteminterface.cpp:1032
#33 0x00007f9995d1786b in QPAEventDispatcherGlib::processEvents (this=0x55d8ea158450, flags=...) at qeventdispatcher_glib.cpp:70
#34 0x00007f999c9dc14b in QEventLoop::exec (this=this@entry=0x7ffc9150f760, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:140
#35 0x00007f999c9e42c2 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:120
#36 0x00007f999e441827 in kdemain () from /lib/x86_64-linux-gnu/libkdeinit5_konsole.so
#37 0x00007f999e27c09b in __libc_start_main (main=0x55d8e9a3f730, argc=1, argv=0x7ffc9150fa18, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffc9150fa08) at ../csu/libc-start.c:308
#38 0x000055d8e9a3f76a in _start ()
[Inferior 1 (process 12293) detached]

Possible duplicates by query: bug 393414.

Reported using DrKonqi
Comment 1 Justin Zobel 2020-12-01 23:58:30 UTC
Thanks for the report, Adrian.

As it's been a while since this was reported, can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved.

I've set the bug status to "needsinfo" pending your response, please change back to "reported" or "resolved" when you respond, thanks.
Comment 2 Adrian Friedli 2020-12-06 22:38:12 UTC
Hi Justin,
Thanks for your reply. Indeed it has been long time since my report. I could not reproduce this issue and I have not experienced something similar since then. I'm putting this to resolved.