Bug 423984

Summary: Konsole crashes when closing tabs
Product: [Applications] konsole Reporter: mrDoctorWho <mrdoctorwho>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED DUPLICATE    
Severity: crash CC: nate
Priority: NOR Keywords: drkonqi
Version: 20.04.1   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description mrDoctorWho 2020-07-08 05:34:18 UTC
Application: konsole (20.04.1)

Qt Version: 5.14.2
Frameworks Version: 5.70.0
Operating System: Linux 5.7.7-200.fc32.x86_64 x86_64
Windowing system: X11
Distribution: "Fedora release 32 (Thirty Two)"

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

So I had several tabs open on Konsole. Some tabs had programs running in them. Sometimes when I close tabs with Ctrl+Shift+W or switch b/w them with Shift+arrow key it just crashes and brings all processes with it.

The crash can be reproduced sometimes.

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

Thread 7 (Thread 0x7f6769988700 (LWP 2538)):
#0  0x00007f6784563e92 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f676ae3d2ab in util_queue_thread_func () from /usr/lib64/dri/iris_dri.so
#2  0x00007f676ae3cd7b in impl_thrd_routine () from /usr/lib64/dri/iris_dri.so
#3  0x00007f678455d432 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f6786d4f9d3 in clone () from /lib64/libc.so.6

Thread 6 (Thread 0x7f676a189700 (LWP 2537)):
#0  0x00007f6784563e92 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f676ae3d2ab in util_queue_thread_func () from /usr/lib64/dri/iris_dri.so
#2  0x00007f676ae3cd7b in impl_thrd_routine () from /usr/lib64/dri/iris_dri.so
#3  0x00007f678455d432 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f6786d4f9d3 in clone () from /lib64/libc.so.6

Thread 5 (Thread 0x7f676a98a700 (LWP 2536)):
#0  0x00007f6784563e92 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f676ae3d2ab in util_queue_thread_func () from /usr/lib64/dri/iris_dri.so
#2  0x00007f676ae3cd7b in impl_thrd_routine () from /usr/lib64/dri/iris_dri.so
#3  0x00007f678455d432 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f6786d4f9d3 in clone () from /lib64/libc.so.6

Thread 4 (Thread 0x7f6770ae7700 (LWP 2535)):
#0  0x00007f6784563e92 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f676ae3d2ab in util_queue_thread_func () from /usr/lib64/dri/iris_dri.so
#2  0x00007f676ae3cd7b in impl_thrd_routine () from /usr/lib64/dri/iris_dri.so
#3  0x00007f678455d432 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f6786d4f9d3 in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7f6772865700 (LWP 2534)):
#0  0x00007f6786d44b6f in poll () from /lib64/libc.so.6
#1  0x00007f6783c69ace in g_main_context_iterate.constprop () from /lib64/libglib-2.0.so.0
#2  0x00007f6783c69c03 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#3  0x00007f678567ab8b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#4  0x00007f678562d91b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#5  0x00007f6785499427 in QThread::exec() () from /lib64/libQt5Core.so.5
#6  0x00007f6784c8451b in QDBusConnectionManager::run() () from /lib64/libQt5DBus.so.5
#7  0x00007f678549a690 in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#8  0x00007f678455d432 in start_thread () from /lib64/libpthread.so.0
#9  0x00007f6786d4f9d3 in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f6774020700 (LWP 2533)):
#0  0x00007f6786d44b6f in poll () from /lib64/libc.so.6
#1  0x00007f678458838a in _xcb_conn_wait () from /lib64/libxcb.so.1
#2  0x00007f678458a71a in xcb_wait_for_event () from /lib64/libxcb.so.1
#3  0x00007f67741c7c78 in QXcbEventQueue::run() () from /lib64/libQt5XcbQpa.so.5
#4  0x00007f678549a690 in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#5  0x00007f678455d432 in start_thread () from /lib64/libpthread.so.0
#6  0x00007f6786d4f9d3 in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f67812be0c0 (LWP 2532)):
[KCrash Handler]
#4  0x00007f6786007360 in QWidget::setFocus(Qt::FocusReason) () from /lib64/libQt5Widgets.so.5
#5  0x00007f678565df76 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#6  0x00007f6786b4ad96 in Konsole::TabbedViewContainer::activeViewChanged(Konsole::TerminalDisplay*) () from /lib64/libkonsoleprivate.so.20
#7  0x00007f6786be358d in Konsole::TabbedViewContainer::currentTabChanged(int) () from /lib64/libkonsoleprivate.so.20
#8  0x00007f678565df76 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#9  0x00007f678619b682 in QTabWidget::currentChanged(int) () from /lib64/libQt5Widgets.so.5
#10 0x00007f678565dfb0 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#11 0x00007f678617b292 in QTabBar::currentChanged(int) () from /lib64/libQt5Widgets.so.5
#12 0x00007f678565df76 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#13 0x00007f6785fc5876 in QAction::triggered(bool) () from /lib64/libQt5Widgets.so.5
#14 0x00007f6785fc8161 in QAction::activate(QAction::ActionEvent) () from /lib64/libQt5Widgets.so.5
#15 0x00007f6785fc8d3f in QAction::event(QEvent*) () from /lib64/libQt5Widgets.so.5
#16 0x00007f6785fcc063 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#17 0x00007f678562efc0 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#18 0x00007f6785a3b896 in QShortcutMap::dispatchEvent(QKeyEvent*) () from /lib64/libQt5Gui.so.5
#19 0x00007f6785a3b973 in QShortcutMap::tryShortcut(QKeyEvent*) () from /lib64/libQt5Gui.so.5
#20 0x00007f67859fa5e7 in QWindowSystemInterface::handleShortcutEvent(QWindow*, unsigned long, int, QFlags<Qt::KeyboardModifier>, unsigned int, unsigned int, unsigned int, QString const&, bool, unsigned short) () from /lib64/libQt5Gui.so.5
#21 0x00007f6785a118cf in QGuiApplicationPrivate::processKeyEvent(QWindowSystemInterfacePrivate::KeyEvent*) () from /lib64/libQt5Gui.so.5
#22 0x00007f67859f715b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Gui.so.5
#23 0x00007f67741c8c9e in xcbSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib64/libQt5XcbQpa.so.5
#24 0x00007f6783c697af in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#25 0x00007f6783c69b38 in g_main_context_iterate.constprop () from /lib64/libglib-2.0.so.0
#26 0x00007f6783c69c03 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#27 0x00007f678567ab73 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#28 0x00007f678562d91b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#29 0x00007f67856355a6 in QCoreApplication::exec() () from /lib64/libQt5Core.so.5
#30 0x00007f6786e4337f in kdemain () from /lib64/libkdeinit5_konsole.so
#31 0x00007f6786c75042 in __libc_start_main () from /lib64/libc.so.6
#32 0x00005626a29fa0ae in _start ()
[Inferior 1 (process 2532) detached]

Possible duplicates by query: bug 423729, bug 423681, bug 423675, bug 423557, bug 423136.

Reported using DrKonqi
Comment 1 mrDoctorWho 2020-09-20 02:15:23 UTC
Some tabs take longer time to close, so Konsole would crash when you close such tab with Ctrl+Shift+W and press Shift+arrow right away to switch a tab.
Comment 2 Nate Graham 2021-08-02 18:37:02 UTC

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