Bug 400591 - konsole crashed when pasting text
Summary: konsole crashed when pasting text
Status: RESOLVED WORKSFORME
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 18.08.2
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2018-11-02 13:52 UTC by Vadym Krevs
Modified: 2020-12-02 10:34 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vadym Krevs 2018-11-02 13:52:01 UTC
Application: konsole (18.08.2)

Qt Version: 5.11.2
Frameworks Version: 5.51.0
Operating System: Linux 4.12.14-lp150.12.22-default x86_64
Distribution: "openSUSE Leap 15.0"

-- Information about the crash:
- What I was doing when the application crashed:

Selected some text in Kate and attempted to paste it into a KOnsole tab via Ctrl-mouse wheel click.

-- Backtrace:
Application: Konsole (konsole), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
27	  return SYSCALL_CANCEL (nanosleep, requested_time, remaining);
[Current thread is 1 (Thread 0x7efec1435540 (LWP 2743))]

Thread 3 (Thread 0x7efea3fff700 (LWP 2746)):
#0  0x00007efec0d6607b in __GI___poll (fds=0x7efe9c002de0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007efeb6565109 in g_main_context_poll (priority=<optimized out>, n_fds=1, fds=0x7efe9c002de0, timeout=<optimized out>, context=0x7efe9c000be0) at gmain.c:4169
#2  g_main_context_iterate (context=context@entry=0x7efe9c000be0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3863
#3  0x00007efeb656521c in g_main_context_iteration (context=0x7efe9c000be0, may_block=may_block@entry=1) at gmain.c:3929
#4  0x00007efebd25e3cb in QEventDispatcherGlib::processEvents (this=0x7efe9c000b10, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#5  0x00007efebd20270a in QEventLoop::exec (this=this@entry=0x7efea3ffecc0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:214
#6  0x00007efebd02daaa in QThread::exec (this=this@entry=0x7efebb3a0d60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread.cpp:525
#7  0x00007efebb128b75 in QDBusConnectionManager::run (this=0x7efebb3a0d60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:178
#8  0x00007efebd0389cb in QThreadPrivate::start (arg=0x7efebb3a0d60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:367
#9  0x00007efeb8587559 in start_thread (arg=0x7efea3fff700) at pthread_create.c:465
#10 0x00007efec0d7081f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7efeac338700 (LWP 2745)):
#0  0x00007efec0d71904 in __libc_recvmsg (fd=3, msg=msg@entry=0x7efeac337b00, flags=flags@entry=0) at ../sysdeps/unix/sysv/linux/recvmsg.c:28
#1  0x00007efeb89b0518 in _xcb_in_read (c=c@entry=0x5650efa5dc40) at xcb_in.c:1000
#2  0x00007efeb89ae648 in _xcb_conn_wait (c=c@entry=0x5650efa5dc40, cond=cond@entry=0x5650efa5dc80, vector=vector@entry=0x0, count=count@entry=0x0) at xcb_conn.c:515
#3  0x00007efeb89affba in xcb_wait_for_event (c=0x5650efa5dc40) at xcb_in.c:697
#4  0x00007efeaf0f5bd9 in QXcbEventReader::run (this=0x5650efa5d190) at qxcbconnection.cpp:1391
#5  0x00007efebd0389cb in QThreadPrivate::start (arg=0x5650efa5d190) at thread/qthread_unix.cpp:367
#6  0x00007efeb8587559 in start_thread (arg=0x7efeac338700) at pthread_create.c:465
#7  0x00007efec0d7081f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7efec1435540 (LWP 2743)):
[KCrash Handler]
#6  QWeakPointer<QObject>::isNull (this=0x5300450054005a) at /usr/include/qt5/QtCore/qsharedpointer_impl.h:566
#7  QPointer<Konsole::Session>::isNull (this=0x5300450054005a) at /usr/include/qt5/QtCore/qpointer.h:95
#8  Konsole::SessionController::isReadOnly (this=0x53004500540022) at /usr/src/debug/konsole-18.08.2-lp150.1.3.x86_64/src/SessionController.cpp:1568
#9  0x00007efec0a16eb7 in Konsole::Vt102Emulation::sendKeyEvent (this=0x5650f04a1a50, event=0x7ffc596e8c30) at /usr/src/debug/konsole-18.08.2-lp150.1.3.x86_64/src/Vt102Emulation.cpp:1130
#10 0x00007efebd23350f in QtPrivate::QSlotObjectBase::call (a=0x7ffc596e8bb0, r=0x5650f04a1a50, this=0x5650f0d86b20) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:376
#11 QMetaObject::activate (sender=sender@entry=0x5650f074c200, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffc596e8bb0) at kernel/qobject.cpp:3754
#12 0x00007efebd233ac7 in QMetaObject::activate (sender=sender@entry=0x5650f074c200, m=m@entry=0x7efec0c6fe60 <Konsole::TerminalDisplay::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffc596e8bb0) at kernel/qobject.cpp:3633
#13 0x00007efec0a21def in Konsole::TerminalDisplay::keyPressedSignal (this=this@entry=0x5650f074c200, _t1=<optimized out>, _t1@entry=0x7ffc596e8c30) at /usr/src/debug/konsole-18.08.2-lp150.1.3.x86_64/build/src/konsoleprivate_autogen/EWIEGA46WW/moc_TerminalDisplay.cpp:401
#14 0x00007efec0a01674 in Konsole::TerminalDisplay::doPaste (this=0x5650f074c200, text=..., appendReturn=<optimized out>) at /usr/src/debug/konsole-18.08.2-lp150.1.3.x86_64/src/TerminalDisplay.cpp:3295
#15 0x00007efec0a018a1 in Konsole::TerminalDisplay::pasteFromX11Selection (this=0x5650f074c200, appendEnter=<optimized out>) at /usr/src/debug/konsole-18.08.2-lp150.1.3.x86_64/src/TerminalDisplay.cpp:3373
#16 0x00007efec0a01a4b in Konsole::TerminalDisplay::processMidButtonClick (this=this@entry=0x5650f074c200, ev=ev@entry=0x7ffc596e9200) at /usr/src/debug/konsole-18.08.2-lp150.1.3.x86_64/src/TerminalDisplay.cpp:2713
#17 0x00007efec0a01f2b in Konsole::TerminalDisplay::mousePressEvent (this=0x5650f074c200, ev=0x7ffc596e9200) at /usr/src/debug/konsole-18.08.2-lp150.1.3.x86_64/src/TerminalDisplay.cpp:2311
#18 0x00007efebe01a57f in QWidget::event (this=this@entry=0x5650f074c200, event=event@entry=0x7ffc596e9200) at kernel/qwidget.cpp:8903
#19 0x00007efec0a02afa in Konsole::TerminalDisplay::event (this=0x5650f074c200, event=0x7ffc596e9200) at /usr/src/debug/konsole-18.08.2-lp150.1.3.x86_64/src/TerminalDisplay.cpp:3672
#20 0x00007efebdfdaf9c in QApplicationPrivate::notify_helper (this=this@entry=0x5650efa49b90, receiver=receiver@entry=0x5650f074c200, e=e@entry=0x7ffc596e9200) at kernel/qapplication.cpp:3728
#21 0x00007efebdfe3117 in QApplication::notify (this=<optimized out>, receiver=0x5650f074c200, e=0x7ffc596e9200) at kernel/qapplication.cpp:3204
#22 0x00007efebd2043d8 in QCoreApplication::notifyInternal2 (receiver=receiver@entry=0x5650f074c200, event=event@entry=0x7ffc596e9200) at kernel/qcoreapplication.cpp:1048
#23 0x00007efebdfe1a62 in QCoreApplication::sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:234
#24 QApplicationPrivate::sendMouseEvent (receiver=receiver@entry=0x5650f074c200, event=event@entry=0x7ffc596e9200, alienWidget=alienWidget@entry=0x5650f074c200, nativeWidget=0x7efea4019cc0, buttonDown=buttonDown@entry=0x7efebe6d4870 <qt_button_down>, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:2696
#25 0x00007efebe034da3 in QWidgetWindow::handleMouseEvent (this=this@entry=0x5650f03bd4f0, event=event@entry=0x7ffc596e9600) at kernel/qwidgetwindow.cpp:658
#26 0x00007efebe0373b9 in QWidgetWindow::event (this=0x5650f03bd4f0, event=0x7ffc596e9600) at kernel/qwidgetwindow.cpp:280
#27 0x00007efebdfdaf9c in QApplicationPrivate::notify_helper (this=this@entry=0x5650efa49b90, receiver=receiver@entry=0x5650f03bd4f0, e=e@entry=0x7ffc596e9600) at kernel/qapplication.cpp:3728
#28 0x00007efebdfe257f in QApplication::notify (this=0x5650efa48cc0, receiver=0x5650f03bd4f0, e=0x7ffc596e9600) at kernel/qapplication.cpp:3487
#29 0x00007efebd2043d8 in QCoreApplication::notifyInternal2 (receiver=receiver@entry=0x5650f03bd4f0, event=event@entry=0x7ffc596e9600) at kernel/qcoreapplication.cpp:1048
#30 0x00007efebd7b13db in QCoreApplication::sendSpontaneousEvent (event=0x7ffc596e9600, receiver=0x5650f03bd4f0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:237
#31 QGuiApplicationPrivate::processMouseEvent (e=0x5650f0d2a5c0) at kernel/qguiapplication.cpp:2081
#32 0x00007efebd7b2f55 in QGuiApplicationPrivate::processWindowSystemEvent (e=e@entry=0x5650f0d2a5c0) at kernel/qguiapplication.cpp:1816
#33 0x00007efebd78bbcb in QWindowSystemInterface::sendWindowSystemEvents (flags=...) at kernel/qwindowsysteminterface.cpp:1032
#34 0x00007efeaf18362b in QPAEventDispatcherGlib::processEvents (this=0x5650efabc510, flags=...) at qeventdispatcher_glib.cpp:70
#35 0x00007efebd20270a in QEventLoop::exec (this=this@entry=0x7ffc596e9870, flags=..., flags@entry=...) at kernel/qeventloop.cpp:214
#36 0x00007efebd20b8c0 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1336
#37 0x00007efebd7a76ac in QGuiApplication::exec () at kernel/qguiapplication.cpp:1761
#38 0x00007efebdfdaef5 in QApplication::exec () at kernel/qapplication.cpp:2902
#39 0x00007efec105b837 in kdemain (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/konsole-18.08.2-lp150.1.3.x86_64/src/main.cpp:207
#40 0x00007efec0c98f4a in __libc_start_main (main=0x5650eea0d7c0 <main>, argc=1, argv=0x7ffc596e9b28, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffc596e9b18) at ../csu/libc-start.c:308
#41 0x00005650eea0d7fa in _start () at ../sysdeps/x86_64/start.S:120
[Inferior 1 (process 2743) detached]

Possible duplicates by query: bug 398157, bug 397814.

Reported using DrKonqi
Comment 1 Justin Zobel 2020-12-02 00:30:39 UTC
Thanks for the report, Vadym.

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 Vadym Krevs 2020-12-02 10:34:45 UTC
Does not happen anymore in Konsole 20.11.90, KDE Frameworks 5.76.0, Qt 5.15.2 (built against 5.15.2).