Bug 397014

Summary: Konsole crashed when switching tabs
Product: [Applications] konsole Reporter: Alex Fiestas <afiestas>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED WORKSFORME    
Severity: crash CC: gilberto.diaz, justin.zobel
Priority: NOR Keywords: drkonqi
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Alex Fiestas 2018-07-31 14:52:12 UTC
Application: konsole (18.11.70)
 (Compiled from sources)
Qt Version: 5.11.1
Frameworks Version: 5.48.0
Operating System: Linux 4.17.10-1-ARCH x86_64
Distribution (Platform): Archlinux Packages

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

I was switching tabs using the shortcuts and after a few hours using konsole it crashed.

This has happened before.

The crash can be reproduced sometimes.

-- Backtrace:
Application: Konsole (konsole), signal: Segmentation fault
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f8b810c3840 (LWP 7292))]

Thread 3 (Thread 0x7f8b5b9e5700 (LWP 7296)):
#0  0x00007f8b77683ffc in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007f8b606c1124 in ?? () from /usr/lib/dri/i965_dri.so
#2  0x00007f8b606c0e18 in ?? () from /usr/lib/dri/i965_dri.so
#3  0x00007f8b7767e075 in start_thread () from /usr/lib/libpthread.so.0
#4  0x00007f8b7905553f in clone () from /usr/lib/libc.so.6

Thread 2 (Thread 0x7f8b63534700 (LWP 7295)):
#0  0x00007f8b7904afa6 in ppoll () from /usr/lib/libc.so.6
#1  0x00007f8b79f09e19 in qt_ppoll (timeout_ts=0x0, nfds=1, fds=0x7f8b5c00f988) at /home/afiestas/Projects/qt5/qtbase/src/corelib/kernel/qcore_unix.cpp:133
#2  qt_safe_poll (fds=0x7f8b5c00f988, nfds=nfds@entry=1, timeout_ts=timeout_ts@entry=0x0) at /home/afiestas/Projects/qt5/qtbase/src/corelib/kernel/qcore_unix.cpp:133
#3  0x00007f8b79f0b289 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at ../../include/QtCore/../../../../qtbase/src/corelib/tools/qarraydata.h:209
#4  0x00007f8b79ebab9b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at ../../include/QtCore/../../../../qtbase/src/corelib/global/qflags.h:140
#5  0x00007f8b79d09ae6 in QThread::exec() () at ../../include/QtCore/../../../../qtbase/src/corelib/global/qflags.h:120
#6  0x00007f8b7ba5ba25 in QDBusConnectionManager::run (this=0x7f8b7bcd3d60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at /home/afiestas/Projects/qt5/qtbase/src/dbus/qdbusconnection.cpp:178
#7  0x00007f8b79d136b7 in QThreadPrivate::start(void*) () at /home/afiestas/Projects/qt5/qtbase/src/corelib/thread/qthread_unix.cpp:367
#8  0x00007f8b7767e075 in start_thread () from /usr/lib/libpthread.so.0
#9  0x00007f8b7905553f in clone () from /usr/lib/libc.so.6

Thread 1 (Thread 0x7f8b810c3840 (LWP 7292)):
[KCrash Handler]
#6  0x00007f8b809e7112 in std::__atomic_base<int>::load (__m=std::memory_order_relaxed, this=0x51) at /usr/include/c++/8.1.1/bits/atomic_base.h:390
#7  QAtomicOps<int>::load<int> (_q_value=...) at /opt/qt5/include/QtCore/qatomic_cxx11.h:227
#8  QBasicAtomicInteger<int>::load (this=0x51) at /opt/qt5/include/QtCore/qbasicatomic.h:103
#9  QtPrivate::RefCount::isShared (this=0x51) at /opt/qt5/include/QtCore/qrefcount.h:101
#10 QVector<Konsole::Character>::isDetached (this=0x5600597a52c8) at /opt/qt5/include/QtCore/qvector.h:106
#11 QVector<Konsole::Character>::detach (this=0x5600597a52c8) at /opt/qt5/include/QtCore/qvector.h:383
#12 QVector<Konsole::Character>::data (this=0x5600597a52c8) at /opt/qt5/include/QtCore/qvector.h:127
#13 Konsole::Screen::copyLineToStream (this=this@entry=0x5600597dcfa0, line=line@entry=40, start=0, count=172, count@entry=-1, decoder=decoder@entry=0x7ffe9dd62b70, appendNewLine=appendNewLine@entry=true, options=...) at /home/afiestas/Projects/kde5/source/konsole/src/Screen.cpp:1346
#14 0x00007f8b809e74e1 in Konsole::Screen::writeToStream (this=this@entry=0x5600597dcfa0, decoder=decoder@entry=0x7ffe9dd62b70, startIndex=startIndex@entry=3677, endIndex=endIndex@entry=15530, options=...) at /home/afiestas/Projects/kde5/source/konsole/src/Screen.cpp:1270
#15 0x00007f8b809e89c2 in Konsole::Screen::text (this=0x5600597dcfa0, startIndex=3677, endIndex=15530, options=...) at /home/afiestas/Projects/kde5/source/konsole/src/Screen.cpp:1226
#16 0x00007f8b809e8a66 in Konsole::Screen::selectedText (this=<optimized out>, options=..., options@entry=...) at /home/afiestas/Projects/kde5/source/konsole/src/Screen.cpp:1207
#17 0x00007f8b809b5f9d in Konsole::Emulation::checkSelectedText (this=0x5600597dc660) at /opt/qt5/include/QtCore/qflags.h:120
#18 0x00007f8b79ee54d0 in QtPrivate::QSlotObjectBase::call (a=0x7ffe9dd62cf0, r=0x5600597dc660, this=0x560059882d10) at ../../include/QtCore/../../../../qtbase/src/corelib/kernel/qobjectdefs_impl.h:376
#19 QMetaObject::activate(QObject*, int, int, void**) () at /home/afiestas/Projects/qt5/qtbase/src/corelib/kernel/qobject.cpp:3754
#20 0x00007f8b79ee5997 in QMetaObject::activate (sender=<optimized out>, m=m@entry=0x7f8b80c86a40 <Konsole::ScreenWindow::staticMetaObject>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x0) at /home/afiestas/Projects/qt5/qtbase/src/corelib/kernel/qobject.cpp:3633
#21 0x00007f8b80a38893 in Konsole::ScreenWindow::selectionChanged (this=<optimized out>) at /home/afiestas/Projects/kde5/build/konsole/src/konsoleprivate_autogen/EWIEGA46WW/moc_ScreenWindow.cpp:188
#22 0x00007f8b809e9281 in Konsole::ScreenWindow::setSelectionEnd (this=<optimized out>, column=<optimized out>, line=<optimized out>) at /home/afiestas/Projects/kde5/source/konsole/src/ScreenWindow.cpp:159
#23 0x00007f8b80a18a67 in Konsole::TerminalDisplay::extendSelection (this=this@entry=0x56005968b2f0, position=...) at /opt/qt5/include/QtCore/qpoint.h:131
#24 0x00007f8b80a1bca8 in Konsole::TerminalDisplay::mousePressEvent (this=0x56005968b2f0, ev=0x7ffe9dd63280) at /opt/qt5/include/QtGui/qevent.h:121
#25 0x00007f8b7af1ceff in QWidget::event (this=this@entry=0x56005968b2f0, event=event@entry=0x7ffe9dd63280) at /home/afiestas/Projects/qt5/qtbase/src/widgets/kernel/qwidget.cpp:8897
#26 0x00007f8b80a1c680 in Konsole::TerminalDisplay::event (this=0x56005968b2f0, event=0x7ffe9dd63280) at /home/afiestas/Projects/kde5/source/konsole/src/TerminalDisplay.cpp:3675
#27 0x00007f8b7aede151 in QApplicationPrivate::notify_helper (this=this@entry=0x560058a31f90, receiver=receiver@entry=0x56005968b2f0, e=e@entry=0x7ffe9dd63280) at /home/afiestas/Projects/qt5/qtbase/src/widgets/kernel/qapplication.cpp:3727
#28 0x00007f8b7aee59d8 in QApplication::notify(QObject*, QEvent*) () at /home/afiestas/Projects/qt5/qtbase/src/widgets/kernel/qapplication.cpp:3203
#29 0x00007f8b79ebbec9 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at ../../include/QtCore/5.11.1/QtCore/private/../../../../../../../qtbase/src/corelib/thread/qthread_p.h:307
#30 0x00007f8b7aee4cd9 in QCoreApplication::sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../../../qtbase/src/corelib/kernel/qcoreapplication.h:234
#31 QApplicationPrivate::sendMouseEvent (receiver=receiver@entry=0x56005968b2f0, event=event@entry=0x7ffe9dd63280, alienWidget=alienWidget@entry=0x56005968b2f0, nativeWidget=0x560058aa6c40, buttonDown=buttonDown@entry=0x7f8b7b5d4870 <qt_button_down>, lastMouseReceiver=..., spontaneous=true) at /home/afiestas/Projects/qt5/qtbase/src/widgets/kernel/qapplication.cpp:2695
#32 0x00007f8b7af36fc4 in QWidgetWindow::handleMouseEvent(QMouseEvent*) () at /usr/include/c++/8.1.1/bits/atomic_base.h:390
#33 0x00007f8b7af39b4e in QWidgetWindow::event (this=0x560058b30bc0, event=0x7ffe9dd63680) at /home/afiestas/Projects/qt5/qtbase/src/widgets/kernel/qwidgetwindow.cpp:281
#34 0x00007f8b7aede151 in QApplicationPrivate::notify_helper (this=this@entry=0x560058a31f90, receiver=receiver@entry=0x560058b30bc0, e=e@entry=0x7ffe9dd63680) at /home/afiestas/Projects/qt5/qtbase/src/widgets/kernel/qapplication.cpp:3727
#35 0x00007f8b7aee5790 in QApplication::notify(QObject*, QEvent*) () at /home/afiestas/Projects/qt5/qtbase/src/widgets/kernel/qapplication.cpp:3486
#36 0x00007f8b79ebbec9 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at ../../include/QtCore/5.11.1/QtCore/private/../../../../../../../qtbase/src/corelib/thread/qthread_p.h:307
#37 0x00007f8b7a71fa23 in QCoreApplication::sendSpontaneousEvent (event=0x7ffe9dd63680, receiver=0x560058b30bc0) at ../../include/QtCore/../../../../qtbase/src/corelib/kernel/qcoreapplication.h:237
#38 QGuiApplicationPrivate::processMouseEvent (e=0x560059aac6d0) at /home/afiestas/Projects/qt5/qtbase/src/gui/kernel/qguiapplication.cpp:2081
#39 0x00007f8b7a71f81a in QGuiApplicationPrivate::processMouseEvent (e=0x560059aac6d0) at /home/afiestas/Projects/qt5/qtbase/src/gui/kernel/qguiapplication.cpp:1976
#40 0x00007f8b7a721955 in QGuiApplicationPrivate::processWindowSystemEvent (e=e@entry=0x560059aac6d0) at /home/afiestas/Projects/qt5/qtbase/src/gui/kernel/qguiapplication.cpp:1816
#41 0x00007f8b7a6fc09b in QWindowSystemInterface::sendWindowSystemEvents (flags=...) at /home/afiestas/Projects/qt5/qtbase/src/gui/kernel/qwindowsysteminterface.cpp:1032
#42 0x00007f8b6d843096 in QUnixEventDispatcherQPA::processEvents (this=<optimized out>, flags=...) at /home/afiestas/Projects/qt5/qtbase/src/platformsupport/eventdispatchers/qunixeventdispatcher.cpp:69
#43 0x00007f8b79ebab9b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at ../../include/QtCore/../../../../qtbase/src/corelib/global/qflags.h:140
#44 0x00007f8b79ec2d12 in QCoreApplication::exec() () at ../../include/QtCore/../../../../qtbase/src/corelib/global/qflags.h:120
#45 0x00007f8b80cb7f36 in kdemain (argc=<optimized out>, argv=<optimized out>) at /home/afiestas/Projects/kde5/source/konsole/src/main.cpp:198
#46 0x00007f8b78f8006b in __libc_start_main () from /usr/lib/libc.so.6
#47 0x0000560057d75a9a in _start ()

Possible duplicates by query: bug 393414, bug 390660, bug 387343, bug 384419.

Reported using DrKonqi
Comment 1 Kurt Hindenburg 2018-08-03 14:19:43 UTC
For reference, have you changed the shortcut or are you using Shift+arrows or Ctrl+Pg*
Comment 2 Alex Fiestas 2018-08-10 01:55:09 UTC
I am using Shift+arrows.
Comment 3 Kurt Hindenburg 2018-08-22 03:11:20 UTC
OK, I thought perhaps you were using something non-default - I can't get any crashes similar to this
Comment 4 Christoph Feck 2019-03-09 09:06:57 UTC
*** Bug 404394 has been marked as a duplicate of this bug. ***
Comment 5 Justin Zobel 2020-12-01 23:55:10 UTC
Thanks for the report.

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 6 Bug Janitor Service 2020-12-16 04:34:02 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Bug Janitor Service 2020-12-31 04:34:24 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!