Bug 415762 - Exiting the session in a Yakuake tab sometimes crash Yakuake
Summary: Exiting the session in a Yakuake tab sometimes crash Yakuake
Status: RESOLVED FIXED
Alias: None
Product: yakuake
Classification: Applications
Component: general (show other bugs)
Version: 3.0.5
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Eike Hein
URL:
Keywords: drkonqi
: 418264 420674 420719 420777 421006 421060 421138 421194 421226 421324 422646 423491 424006 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-01-01 13:21 UTC by Oded Arbel
Modified: 2020-07-11 19:43 UTC (History)
40 users (show)

See Also:
Latest Commit:
Version Fixed In: 20.04.2


Attachments
Noah's crash report with backtrace (7.28 KB, text/plain)
2020-01-21 01:14 UTC, Noah Davis
Details
New crash information added by DrKonqi (35.26 KB, patch)
2020-03-20 19:55 UTC, Andreas Sturmlechner
Details
New crash information added by DrKonqi (5.60 KB, text/plain)
2020-04-24 07:26 UTC, Sergei Gureev
Details
New crash information added by DrKonqi (6.74 KB, text/plain)
2020-04-27 04:17 UTC, p d
Details
New crash information added by DrKonqi (5.57 KB, text/plain)
2020-05-03 13:30 UTC, Siddhartha
Details
yakuake-20.04.1-w-konsolepart-fdfae256-applied.crash.txt (6.75 KB, text/plain)
2020-05-28 20:11 UTC, Andreas Sturmlechner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oded Arbel 2020-01-01 13:21:54 UTC
Application: yakuake (3.0.5+)

Qt Version: 5.12.4
Frameworks Version: 5.66.0
Operating System: Linux 5.3.0-25-generic x86_64
Distribution: Ubuntu 19.10

-- Information about the crash:
- What I was doing when the application crashed:
using CTRL+d to log out of one of the tabs in Yakuake, with the purpose of closing that tab.

Using KCI unstable yakuake 19.12.0+p19.10+git20191226.2305-0 and konsole-kpart  4:19.12.0+p19.10+git20191226.2307-0

The crash reporting assistant suggested a lot of duplicates for this behavior, but all I saw were fixed in KDE/Qt 4. This is a new one for me, and I haven't seen it before, so I'm guessing its a regression in current git master.

The crash can be reproduced sometimes.

-- Backtrace:
Application: Yakuake (yakuake), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f386ee39e00 (LWP 19974))]

Thread 4 (Thread 0x7f3865dd0700 (LWP 19977)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55dad26373c8) at ../sysdeps/unix/sysv/linux/futex-internal.h:80
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55dad2637378, cond=0x55dad26373a0) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55dad26373a0, mutex=0x55dad2637378) at pthread_cond_wait.c:638
#3  0x00007f386640b97b in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#4  0x00007f386640b59b in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#5  0x00007f3872642669 in start_thread (arg=<optimized out>) at pthread_create.c:479
#6  0x00007f3872786323 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f3867fff700 (LWP 19976)):
#0  g_mutex_unlock (mutex=0x7f3860000c30) at ../../../glib/gthread-posix.c:1375
#1  0x00007f38714bd400 in g_main_context_check (context=context@entry=0x7f3860000c30, max_priority=2147483647, fds=fds@entry=0x7f38600029e0, n_fds=n_fds@entry=1) at ../../../glib/gmain.c:3821
#2  0x00007f38714bd9e2 in g_main_context_iterate (context=context@entry=0x7f3860000c30, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:3914
#3  0x00007f38714bdb73 in g_main_context_iteration (context=0x7f3860000c30, may_block=may_block@entry=1) at ../../../glib/gmain.c:3978
#4  0x00007f3872d206c3 in QEventDispatcherGlib::processEvents (this=0x7f3860000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#5  0x00007f3872cc763b in QEventLoop::exec (this=this@entry=0x7f3867ffed70, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:140
#6  0x00007f3872b00a75 in QThread::exec (this=this@entry=0x7f3873ca3d80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at ../../include/QtCore/../../src/corelib/global/qflags.h:120
#7  0x00007f3873c20efa in QDBusConnectionManager::run (this=0x7f3873ca3d80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:178
#8  0x00007f3872b01cc2 in QThreadPrivate::start (arg=0x7f3873ca3d80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:361
#9  0x00007f3872642669 in start_thread (arg=<optimized out>) at pthread_create.c:479
#10 0x00007f3872786323 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f386df8a700 (LWP 19975)):
#0  0x00007f3872779c2f in __GI___poll (fds=fds@entry=0x7f386df89ca8, nfds=nfds@entry=1, timeout=timeout@entry=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f38721ad917 in poll (__timeout=-1, __nfds=1, __fds=0x7f386df89ca8) at /usr/include/x86_64-linux-gnu/bits/poll2.h:46
#2  _xcb_conn_wait (c=c@entry=0x55dad24c4ad0, cond=cond@entry=0x55dad24c4b10, vector=vector@entry=0x0, count=count@entry=0x0) at ../../src/xcb_conn.c:479
#3  0x00007f38721af53a in xcb_wait_for_event (c=0x55dad24c4ad0) at ../../src/xcb_in.c:697
#4  0x00007f386e772288 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#5  0x00007f3872b01cc2 in QThreadPrivate::start (arg=0x55dad24b4140) at thread/qthread_unix.cpp:361
#6  0x00007f3872642669 in start_thread (arg=<optimized out>) at pthread_create.c:479
#7  0x00007f3872786323 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f386ee39e00 (LWP 19974)):
[KCrash Handler]
#6  QListData::size (this=0x55dad33aa030) at ../../include/QtCore/../../src/corelib/tools/qlist.h:113
#7  QList<QAction*>::indexOf (from=0, t=@0x7ffc0b096448: 0x55dad28bb0f0, this=0x55dad33aa030) at ../../include/QtCore/../../src/corelib/tools/qlist.h:975
#8  QList<QAction*>::removeAll (this=0x55dad33aa030, _t=@0x7ffc0b096448: 0x55dad28bb0f0) at ../../include/QtCore/../../src/corelib/tools/qlist.h:883
#9  0x00007f387371420b in QWidget::removeAction (this=0x55dad29c0f50, action=<optimized out>) at kernel/qwidget.cpp:3352
#10 0x00007f38743f68c9 in KActionCollection::removeAssociatedWidget(QWidget*) () from /usr/lib/x86_64-linux-gnu/libKF5XmlGui.so.5
#11 0x00007f387443ec8f in KXMLGUIClient::prepareXMLUnplug(QWidget*) () from /usr/lib/x86_64-linux-gnu/libKF5XmlGui.so.5
#12 0x00007f38744460b7 in KXMLGUIFactory::removeClient(KXMLGUIClient*) () from /usr/lib/x86_64-linux-gnu/libKF5XmlGui.so.5
#13 0x00007f385ff64754 in Konsole::SessionController::~SessionController() () from /usr/lib/x86_64-linux-gnu/libkonsoleprivate.so.20
#14 0x00007f385ff6499d in Konsole::SessionController::~SessionController() () from /usr/lib/x86_64-linux-gnu/libkonsoleprivate.so.20
#15 0x00007f3872cf4cd4 in QObject::event (this=0x55dad27075f0, e=<optimized out>) at kernel/qobject.cpp:1251
#16 0x00007f38736daa86 in QApplicationPrivate::notify_helper (this=this@entry=0x55dad24b1a60, receiver=receiver@entry=0x55dad27075f0, e=e@entry=0x55dad353ebf0) at kernel/qapplication.cpp:3737
#17 0x00007f38736e3e00 in QApplication::notify (this=0x7ffc0b096c60, receiver=0x55dad27075f0, e=0x55dad353ebf0) at kernel/qapplication.cpp:3483
#18 0x00007f3872cc8a9a in QCoreApplication::notifyInternal2 (receiver=0x55dad27075f0, event=0x55dad353ebf0) at ../../include/QtCore/../../src/corelib/kernel/qobject.h:142
#19 0x00007f3872ccb718 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x55dad24af520) at kernel/qcoreapplication.cpp:1821
#20 0x00007f3872d210a7 in postEventSourceDispatch (s=0x55dad24febb0) at kernel/qeventdispatcher_glib.cpp:276
#21 0x00007f38714bd84d in g_main_dispatch (context=0x7f3868005010) at ../../../glib/gmain.c:3179
#22 g_main_context_dispatch (context=context@entry=0x7f3868005010) at ../../../glib/gmain.c:3844
#23 0x00007f38714bdad0 in g_main_context_iterate (context=context@entry=0x7f3868005010, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:3917
#24 0x00007f38714bdb73 in g_main_context_iteration (context=0x7f3868005010, may_block=may_block@entry=1) at ../../../glib/gmain.c:3978
#25 0x00007f3872d206a5 in QEventDispatcherGlib::processEvents (this=0x55dad250e610, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#26 0x00007f3872cc763b in QEventLoop::exec (this=this@entry=0x7ffc0b096b90, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:140
#27 0x00007f3872ccf3a6 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:120
#28 0x000055dad155ab9a in ?? ()
#29 0x00007f387268b1e3 in __libc_start_main (main=0x55dad155a490, argc=1, argv=0x7ffc0b096eb8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffc0b096ea8) at ../csu/libc-start.c:308
#30 0x000055dad155ac2e in _start ()
[Inferior 1 (process 19974) detached]

Possible duplicates by query: bug 280822, bug 280414, bug 262249, bug 259165, bug 258071.

Reported using DrKonqi
Comment 1 Christophe Marin 2020-01-02 13:51:27 UTC
Confirmed and reproducible.

Test #1:
- Open different terminal tabs
- Click in the konsole window
- CTRL-D closes the terminal, yakuake is still running

Test #2:
- Open a couple tabs
- Click on the terminal tab bar
- CTRL-D
- Crash with the same bt as the reporter:
#0  0x00007f0bed9450eb in QtPrivate::indexOf<QAction*, QAction*> (from=0, u=@0x7ffe1cb52768: 0x2131560, list=...) at ../../include/QtCore/../../src/corelib/tools/qlist.h:1015
#1  QList<QAction*>::indexOf (from=0, t=@0x7ffe1cb52768: 0x2131560, this=0x45454545454546cd) at ../../include/QtCore/../../src/corelib/tools/qlist.h:1009
#2  QList<QAction*>::removeAll (this=0x45454545454546cd, _t=@0x7ffe1cb52768: 0x2131560) at ../../include/QtCore/../../src/corelib/tools/qlist.h:919
#3  0x00007f0bed980577 in QWidget::removeAction (this=0x210d8c0, action=<optimized out>) at kernel/qwidget.cpp:3173
#4  0x00007f0bee85e8d0 in KActionCollection::removeAssociatedWidget (this=0x2130bd0, widget=0x210d8c0) at /data/kde/src/kxmlgui/src/kactioncollection.cpp:830
#5  0x00007f0bee8bf4ed in KXMLGUIClient::prepareXMLUnplug (this=0x21309a8, w=0x210d8c0) at /data/kde/src/kxmlgui/src/kxmlguiclient.cpp:796
#6  0x00007f0bee8c28cb in KXMLGUIFactory::removeClient (this=0x2170230, client=0x21309a8) at /data/kde/src/kxmlgui/src/kxmlguifactory.cpp:464
#7  0x00007f0be2d38741 in Konsole::SessionController::~SessionController (this=0x2130980) at /data/kde/src/konsole/src/SessionController.cpp:238
Comment 2 Noah Davis 2020-01-21 01:14:32 UTC
Created attachment 125271 [details]
Noah's crash report with backtrace

I can confirm this as well. I'm not sure what happens or how long one needs to wait, but this crash doesn't seem to happen to recently opened instances of Yakuake.
Comment 3 Andreas Sturmlechner 2020-03-20 19:55:34 UTC
Created attachment 126915 [details]
New crash information added by DrKonqi

yakuake (3.0.5+) using Qt 5.14.1

- What I was doing when the application crashed:

Accidentally clicked on the close button in yakuake while it had maybe two or three active tabs, and it crashed.

-- Backtrace (Reduced):
#7  QListData::size (this=0x5569f2ca8438) at ../../include/QtCore/../../src/corelib/tools/qlist.h:115
#8  QtPrivate::indexOf<QAction*, QAction*> (from=0, u=@0x7ffd9ca660a8: 0x5569f2b8b490, list=...) at ../../include/QtCore/../../src/corelib/tools/qlist.h:1021
#9  QList<QAction*>::indexOf (from=0, t=@0x7ffd9ca660a8: 0x5569f2b8b490, this=0x5569f2ca8438) at ../../include/QtCore/../../src/corelib/tools/qlist.h:1009
#10 QList<QAction*>::removeAll (this=0x5569f2ca8438, _t=@0x7ffd9ca660a8: 0x5569f2b8b490) at ../../include/QtCore/../../src/corelib/tools/qlist.h:919
#11 0x00007f9fec7bad97 in QWidget::removeAction (this=0x5569f2d76e20, action=<optimized out>) at kernel/qwidget.cpp:3173
Comment 4 JanKusanagi 2020-04-22 20:34:04 UTC
I get a crash that looks mostly like "Thread 1" in the original report, and I can reproduce consistently after a second of launching Yakuake with this simple procedure:

- Press the shortcut to show Yakuake.
- Right-click somewhere in the "console area" to get the context menu.
- Dismiss the context menu by clicking in any other empty area of the "console area".
- Press Ctrl+D to exit the Bash shell, which closes the only tab, and crashes Yakuake.


Operating System: Mageia 8
KDE Plasma Version: 5.18.3
KDE Frameworks Version: 5.69.0
Qt Version: 5.14.1

Yakuake reports itself as "Version 3.0.5+".
The "package version" is 20.04.0, same as Konsole.
Comment 5 Sergei Gureev 2020-04-24 07:26:45 UTC
Created attachment 127816 [details]
New crash information added by DrKonqi

yakuake (3.0.5+) using Qt 5.14.2

- What I was doing when the application crashed:

Exit the last session using Ctrl+D.
The bug is reporoduced even if no other sessions were opened.

-- Backtrace (Reduced):
#7  0x00007f8f43e4e171 in QObject::disconnect(QObject const*, char const*, QObject const*, char const*) () from /usr/lib/libQt5Core.so.5
#8  0x00007f8f455dc31e in KActionCollection::removeAssociatedWidget(QWidget*) () from /usr/lib/libKF5XmlGui.so.5
#9  0x00007f8f45624ebc in KXMLGUIClient::prepareXMLUnplug(QWidget*) () from /usr/lib/libKF5XmlGui.so.5
#10 0x00007f8f4562c440 in KXMLGUIFactory::removeClient(KXMLGUIClient*) () from /usr/lib/libKF5XmlGui.so.5
#11 0x00007f8f344f3053 in Konsole::SessionController::~SessionController() () from /usr/lib/libkonsoleprivate.so.20
Comment 6 p d 2020-04-27 04:17:33 UTC
Created attachment 127910 [details]
New crash information added by DrKonqi

yakuake (3.0.5+) using Qt 5.13.2

New crash with latest version of yakuake ( yakuake-20.04.0-1.fc32.x86_64 ) on Fedora 32 with zawertun's kde copr repo.

- What I was doing when the application crashed:

Closing a tab with the "X" button on the right side of yakuake.

-- Backtrace (Reduced):
#6  0x00007f1aaa327442 in QList<QAction*>::removeAll(QAction* const&) () from /lib64/libQt5Widgets.so.5
#7  0x00007f1aaa36229b in QWidget::removeAction(QAction*) () from /lib64/libQt5Widgets.so.5
#8  0x00007f1aaaf50f79 in KActionCollection::removeAssociatedWidget(QWidget*) () from /lib64/libKF5XmlGui.so.5
#9  0x00007f1aaaf8a34f in KXMLGUIClient::prepareXMLUnplug(QWidget*) () from /lib64/libKF5XmlGui.so.5
#10 0x00007f1aaaf8dd4f in KXMLGUIFactory::removeClient(KXMLGUIClient*) () from /lib64/libKF5XmlGui.so.5
Comment 7 Antonio Rojas 2020-04-28 19:14:49 UTC
*** Bug 420674 has been marked as a duplicate of this bug. ***
Comment 8 Antonio Rojas 2020-04-28 19:15:08 UTC
*** Bug 420719 has been marked as a duplicate of this bug. ***
Comment 9 Antonio Rojas 2020-04-30 08:28:21 UTC
*** Bug 420777 has been marked as a duplicate of this bug. ***
Comment 10 Ricardo J. Barberis 2020-05-02 18:09:52 UTC
Happens to me too, seeminlgy randomly.

I didn’t experience crashes yesterday nor today but I'm being careful not to leave any text selected with the mouse (X selection) before closing the session, which was my gut feeling.

My second difference between crashes/no crashes would be a secondary display connected, which I didn't have yesterday or today.

My system:

Operating System: Slackware 14.2+ (-current)
KDE Plasma Version: 5.18.4
KDE Frameworks Version: 5.69.0
Qt Version: 5.13.2
Kernel Version: 5.4.35
OS Type: 64-bit
Processors: 4 × Intel® Core™ i5-4200U CPU @ 1.60GHz
Memory: 7,7 GiB
Comment 11 JanKusanagi 2020-05-02 18:25:57 UTC
(In reply to Ricardo J. Barberis from comment #10)
> Happens to me too, seeminlgy randomly.
> 
> I didn’t experience crashes yesterday nor today but I'm being careful not to
> leave any text selected with the mouse (X selection) before closing the
> session, which was my gut feeling.

See https://bugs.kde.org/show_bug.cgi?id=415762#c4
Comment 12 Siddhartha 2020-05-03 13:30:29 UTC
Created attachment 128112 [details]
New crash information added by DrKonqi

yakuake (3.0.5+) using Qt 5.14.2

- What I was doing when the application crashed:

Same as the other reports, yakuake crashes sometimes when a shell is closed using ctrl+d.

-- Backtrace (Reduced):
#6  0x00007ff40ca2916f in QObject::disconnect(QObject const*, char const*, QObject const*, char const*) () from /usr/lib/libQt5Core.so.5
#7  0x00007ff40e1b731e in KActionCollection::removeAssociatedWidget(QWidget*) () from /usr/lib/libKF5XmlGui.so.5
#8  0x00007ff40e1ffebc in KXMLGUIClient::prepareXMLUnplug(QWidget*) () from /usr/lib/libKF5XmlGui.so.5
#9  0x00007ff40e207440 in KXMLGUIFactory::removeClient(KXMLGUIClient*) () from /usr/lib/libKF5XmlGui.so.5
#10 0x00007ff3fc506053 in Konsole::SessionController::~SessionController() () from /usr/lib/libkonsoleprivate.so.20
Comment 13 Thilo 2020-05-04 13:41:46 UTC
Application: yakuake (3.0.5+)

Qt Version: 5.14.2
Frameworks Version: 5.69.0
Operating System: Linux 5.3.0-46-generic x86_64
Windowing system: X11
Distribution: KDE neon User Edition 5.18

-- Information about the crash:
- What I was doing when the application crashed:
closed a couple of tabs using ctrl+d (in some tabs I did multiple ctrl+d in a row in order to exit sub-shells and ssh sessions before closing the local shell/tab). Had like eight tabs open and wanted to reduce it to one tab. ctrl+d frequency was very fast.

The crash can be reproduced sometimes.

-- Backtrace:
Application: Yakuake (yakuake), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fdb71f93d80 (LWP 9887))]

Thread 5 (Thread 0x7fdb3d0b2700 (LWP 14429)):
#0  0x00007fdb6c2e6bf9 in __GI___poll (fds=0x7fdb38007030, nfds=3, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fdb65401481 in ?? () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#2  0x00007fdb653f2e40 in pa_mainloop_poll () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#3  0x00007fdb653f34d0 in pa_mainloop_iterate () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#4  0x00007fdb653f3560 in pa_mainloop_run () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#5  0x00007fdb654013c9 in ?? () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#6  0x00007fdb618e9318 in ?? () from /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-11.1.so
#7  0x00007fdb680c86db in start_thread (arg=0x7fdb3d0b2700) at pthread_create.c:463
#8  0x00007fdb6c2f388f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7fdb4bfd8700 (LWP 9890)):
#0  0x00007fdb680ce9f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x56119a6e4c48) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x56119a6e4bf8, cond=0x56119a6e4c20) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x56119a6e4c20, mutex=0x56119a6e4bf8) at pthread_cond_wait.c:655
#3  0x00007fdb4d31aecb in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#4  0x00007fdb4d31aac7 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#5  0x00007fdb680c86db in start_thread (arg=0x7fdb4bfd8700) at pthread_create.c:463
#6  0x00007fdb6c2f388f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7fdb550dd700 (LWP 9889)):
#0  0x00007fdb6c2e20b4 in __GI___libc_read (fd=7, buf=0x7fdb550dcb60, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:27
#1  0x00007fdb665992b0 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fdb665540b7 in g_main_context_check () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fdb66554570 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fdb665546dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fdb6cc4d44b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007fdb6cbec9aa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fdb6c9fd3d7 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007fdb6e204555 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#9  0x00007fdb6c9fe8ac in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007fdb680c86db in start_thread (arg=0x7fdb550dd700) at pthread_create.c:463
#11 0x00007fdb6c2f388f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7fdb5cb62700 (LWP 9888)):
#0  0x00007fdb6c2e6bf9 in __GI___poll (fds=0x7fdb5cb61ca8, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fdb6a5e6747 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007fdb6a5e836a in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007fdb5f737fd0 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007fdb6c9fe8ac in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fdb680c86db in start_thread (arg=0x7fdb5cb62700) at pthread_create.c:463
#6  0x00007fdb6c2f388f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7fdb71f93d80 (LWP 9887)):
[KCrash Handler]
#6  0x000056119af113d0 in ?? ()
#7  0x00007fdb6cc22a36 in QObject::disconnect(QObject const*, char const*, QObject const*, char const*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007fdb7092f54c in KActionCollection::removeAssociatedWidget(QWidget*) () from /usr/lib/x86_64-linux-gnu/libKF5XmlGui.so.5
#9  0x00007fdb7097890b in KXMLGUIClient::prepareXMLUnplug(QWidget*) () from /usr/lib/x86_64-linux-gnu/libKF5XmlGui.so.5
#10 0x00007fdb7097d0a1 in KXMLGUIFactory::removeClient(KXMLGUIClient*) () from /usr/lib/x86_64-linux-gnu/libKF5XmlGui.so.5
#11 0x00007fdb42d17614 in Konsole::SessionController::~SessionController() () from /usr/lib/x86_64-linux-gnu/libkonsoleprivate.so.20
#12 0x00007fdb42d177c9 in Konsole::SessionController::~SessionController() () from /usr/lib/x86_64-linux-gnu/libkonsoleprivate.so.20
#13 0x00007fdb6cc21225 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#14 0x00007fdb6dadc9ac in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#15 0x00007fdb6dae3bb0 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#16 0x00007fdb6cbee128 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#17 0x00007fdb6cbf0da1 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#18 0x00007fdb6cc4dd83 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#19 0x00007fdb66554417 in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#20 0x00007fdb66554650 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#21 0x00007fdb665546dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#22 0x00007fdb6cc4d42c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#23 0x00007fdb6cbec9aa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#24 0x00007fdb6cbf6120 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#25 0x000056119940ba94 in ?? ()
#26 0x00007fdb6c1f3b97 in __libc_start_main (main=0x56119940b3a0, argc=1, argv=0x7ffd5933feb8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffd5933fea8) at ../csu/libc-start.c:310
#27 0x000056119940bb1a in _start ()

Possible duplicates by query: bug 420777, bug 420719, bug 420674, bug 415762, bug 400970.

Report to https://bugs.kde.org/
Comment 14 Ricardo J. Barberis 2020-05-05 00:15:52 UTC
(In reply to JanKusanagi from comment #11)
> (In reply to Ricardo J. Barberis from comment #10)
> > Happens to me too, seeminlgy randomly.
> > 
> > I didn’t experience crashes yesterday nor today but I'm being careful not to
> > leave any text selected with the mouse (X selection) before closing the
> > session, which was my gut feeling.
> 
> See https://bugs.kde.org/show_bug.cgi?id=415762#c4

Ah, I missed that amongst all the backtraces :)

Thanks for pointing it up and let's hope a solution is found soon.
Comment 15 Ruben Kelevra 2020-05-06 11:27:45 UTC
This bug is open for 4 months now, is there even any active development on this project?!
Comment 16 Christoph Feck 2020-05-06 12:25:15 UTC
*** Bug 421060 has been marked as a duplicate of this bug. ***
Comment 17 Christoph Feck 2020-05-06 12:25:51 UTC
*** Bug 421006 has been marked as a duplicate of this bug. ***
Comment 18 Christoph Feck 2020-05-06 12:27:10 UTC
Different contributors make improvements to yakuake, see https://cgit.kde.org/yakuake.git/log/

This crash is not easy to investigate, because it actually crashes in the XmlGui framework used by the Konsole part.
Comment 19 JanKusanagi 2020-05-06 19:18:55 UTC
I just found out, thanks to certain updates in a Debian Sid machine, that I can't crash Yakuake 20.04 if it's run/built with Frameworks 5.62 (what Debian Sid has ATM). At least, not following my method that crashes every single time under Mageia with KF 5.69: https://bugs.kde.org/show_bug.cgi?id=415762#c4

Considering other bugs in Konsole related to recent changes in KBookmarks, could that be what's breaking Yakuake too? If so, I've read about some changes in KF5.70 that might help...



(In reply to Ruben Kelevra from comment #15)
> This bug is open for 4 months now, is there even any active development on
> this project?!
Relax...

And to be fair, I'd say most people (me included) didn't start to get this crash until ~2 weeks ago.
Comment 20 Juan Ases García 2020-05-09 17:44:57 UTC
(In reply to JanKusanagi from comment #19)

> And to be fair, I'd say most people (me included) didn't start to get this
> crash until ~2 weeks ago.

In KDE Neon worked fine until 2 weeks ago, now is pretty unusable.
Comment 21 Christoph Feck 2020-05-14 13:12:04 UTC
Duplicate of bug 420695?
Comment 22 kjift14 2020-05-15 00:02:18 UTC
Same crashing behaviour on Arch Linux and Artix: In about 1 of 5 cases of closing a yakuake tab, the complete application terminates and has to be restarted.

Noteworthy on my Arch system:

Qt 5.14.2-2
Operating System: Linux 5.6.11-arch1-1
Distribution: Arch Linux
Yakuake version: v3.0.5.1.g4d89450-1

This yakuake-git version was compiled from AUR in april 2018 and not updated since then. Though, the crashes started some two months ago (?), so it cannot be an issue of yakuake (alone).



Stack trace of thread 47782:
#0  0x00007f1a463ccce5 raise (libc.so.6 + 0x3bce5)
#1  0x00007f1a463b6857 abort (libc.so.6 + 0x25857)
#2  0x00007f1a467ce938 _ZNK14QMessageLogger5fatalEPKcz (libQt5Core.so.5 + 0x8e938)
#3  0x00007f1a46da4845 _ZN22QGuiApplicationPrivate25createPlatformIntegrationEv (libQt5Gui.so.5 + 0x12b845)
#4  0x00007f1a46da4ce1 _ZN22QGuiApplicationPrivate21createEventDispatcherEv (libQt5Gui.so.5 + 0x12bce1)
#5  0x00007f1a469ebea5 _ZN23QCoreApplicationPrivate4initEv (libQt5Core.so.5 + 0x2abea5)
#6  0x00007f1a46da7e80 _ZN22QGuiApplicationPrivate4initEv (libQt5Gui.so.5 + 0x12ee80)
#7  0x00007f1a47486d2f _ZN19QApplicationPrivate4initEv (libQt5Widgets.so.5 + 0x161d2f)
#8  0x000055dff8ee25cc n/a (yakuake + 0x155cc)
#9  0x00007f1a463b8023 __libc_start_main (libc.so.6 + 0x27023)
#10 0x000055dff8ee2d2a _start (yakuake + 0x15d2a)
Comment 23 Andreas Sturmlechner 2020-05-28 20:11:18 UTC
Created attachment 128879 [details]
yakuake-20.04.1-w-konsolepart-fdfae256-applied.crash.txt

(In reply to JanKusanagi from comment #4)
> I get a crash that looks mostly like "Thread 1" in the original report, and
> I can reproduce consistently after a second of launching Yakuake with this
> simple procedure:
> 
> - Press the shortcut to show Yakuake.
> - Right-click somewhere in the "console area" to get the context menu.
> - Dismiss the context menu by clicking in any other empty area of the
> "console area".
> - Press Ctrl+D to exit the Bash shell, which closes the only tab, and
> crashes Yakuake.

Indeed this can still be reproduced even after applying https://cgit.kde.org/konsole.git/commit/?id=fdfae25665731882687da8721e58c3c56a3babf8

(this is not the 'Set Encoding' crash, I am avoiding that context menu entry quite successfully by now)


Operating System: Gentoo 
KDE Plasma Version: 5.18.90
KDE Frameworks Version: 5.70.0
Qt Version: 5.15.0
Kernel Version: 5.6.15-gentoo
OS Type: 64-bit
Processors: 24 × AMD Ryzen 9 3900X 12-Core Processor
Memory: 62.7 GiB of RAM
Graphics Processor: AMD NAVI10
Comment 24 Kurt Hindenburg 2020-05-29 12:06:41 UTC
Git commit d40e3c72f2ad9262d6028bc62bc2837067b824a0 by Kurt Hindenburg, on behalf of Maximilian Schiller.
Committed on 29/05/2020 at 12:00.
Pushed by hindenburg into branch 'release/20.04'.

Fix konsolepart segfault when closing after showing context menu

Assign the _view as the parent to the KXMLGuiFactory because the
factory is referencing the view widget as its associated widget. Since
the TerminalDisplay gets destructed first this is now a dangling
pointer. If the view is set as the parent the factory gets cleaned up
correctly.  Also cleanup the created clientBuilder after destruction
because it can't have a parent and would probably leak memory.
FIXED-IN: 20.08.0
See also !87

(cherry picked from commit 1d7142ed24ef370ae984c0441d5b325b42656bd7)

M  +4    -2    src/SessionController.cpp

https://invent.kde.org/utilities/konsole/commit/d40e3c72f2ad9262d6028bc62bc2837067b824a0
Comment 25 Wolfgang Bauer 2020-05-29 14:15:25 UTC
*** Bug 421194 has been marked as a duplicate of this bug. ***
Comment 26 Wolfgang Bauer 2020-05-29 14:16:06 UTC
*** Bug 421226 has been marked as a duplicate of this bug. ***
Comment 27 Wolfgang Bauer 2020-05-29 14:17:54 UTC
*** Bug 421138 has been marked as a duplicate of this bug. ***
Comment 28 Wolfgang Bauer 2020-05-29 14:18:02 UTC
*** Bug 421324 has been marked as a duplicate of this bug. ***
Comment 29 Wolfgang Bauer 2020-05-29 14:23:54 UTC
*** Bug 418264 has been marked as a duplicate of this bug. ***
Comment 30 JanKusanagi 2020-05-30 15:23:34 UTC
I can confirm that since Mageia rebuilt Konsole with those 2 patches, I can't crash neither Yakuake nor Dolphin's terminal the way I used to (and Yakuake has been running without issue for over 24 hours).

THANKS!
Comment 31 Ricardo J. Barberis 2020-05-30 19:16:49 UTC
I applied this patch on top of konsole 20.04.1 and so far I haven't been able to make yakuake crash.

Thanks!
Comment 32 Maximilian Schiller 2020-06-28 18:15:09 UTC
*** Bug 423491 has been marked as a duplicate of this bug. ***
Comment 33 Christoph Feck 2020-07-05 13:11:59 UTC
*** Bug 422646 has been marked as a duplicate of this bug. ***
Comment 34 Maximilian Schiller 2020-07-11 19:43:16 UTC
*** Bug 424006 has been marked as a duplicate of this bug. ***