Bug 360433 - konsole crashes when the window is closed
Summary: konsole crashes when the window is closed
Status: RESOLVED UPSTREAM
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 15.12.2
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-12 10:27 UTC by bluelupo
Modified: 2016-06-28 19:25 UTC (History)
2 users (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 bluelupo 2016-03-12 10:27:40 UTC
The KDE console crashes reproducibly when they stopped using the menu or by pressing CTRL-D. So you can console not leave without a crash.

Here the trace report:

Application: Konsole (konsole), signal: Floating point exception
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[KCrash Handler]
#5  0x00007f312c4eec19 in pthread_barrier_destroy () from /usr/lib/libpthread.so.0
#6  0x00007f311d74196f in ?? () from /usr/lib/xorg/modules/dri/swrast_dri.so
#7  0x00007f311d74d441 in ?? () from /usr/lib/xorg/modules/dri/swrast_dri.so
#8  0x00007f311d3ec54f in ?? () from /usr/lib/xorg/modules/dri/swrast_dri.so
#9  0x00007f311d3ec5f5 in ?? () from /usr/lib/xorg/modules/dri/swrast_dri.so
#10 0x00007f311d3eaa2f in ?? () from /usr/lib/xorg/modules/dri/swrast_dri.so
#11 0x00007f312b467522 in ?? () from /usr/lib/libGL.so.1
#12 0x00007f312b443506 in ?? () from /usr/lib/libGL.so.1
#13 0x00007f312b443589 in ?? () from /usr/lib/libGL.so.1
#14 0x00007f312b4436de in ?? () from /usr/lib/libGL.so.1
#15 0x00007f312e096c52 in XCloseDisplay () from /usr/lib/libX11.so.6
#16 0x00007f3120e0edd6 in QXcbConnection::~QXcbConnection() () from /usr/lib/libQt5XcbQpa.so.5
#17 0x00007f3120e0f139 in QXcbConnection::~QXcbConnection() () from /usr/lib/libQt5XcbQpa.so.5
#18 0x00007f3120e10bd6 in QXcbIntegration::~QXcbIntegration() () from /usr/lib/libQt5XcbQpa.so.5
#19 0x00007f3120e10ce9 in QXcbIntegration::~QXcbIntegration() () from /usr/lib/libQt5XcbQpa.so.5
#20 0x00007f3130fb7983 in QGuiApplicationPrivate::~QGuiApplicationPrivate() () from /usr/lib/libQt5Gui.so.5
#21 0x00007f313156e029 in QApplicationPrivate::~QApplicationPrivate() () from /usr/lib/libQt5Widgets.so.5
#22 0x00007f3130cb7408 in QObject::~QObject() () from /usr/lib/libQt5Core.so.5
#23 0x00007f313156fe19 in QApplication::~QApplication() () from /usr/lib/libQt5Widgets.so.5
#24 0x00007f31344c7468 in kdemain () from /usr/lib/libkdeinit5_konsole.so
#25 0x00007f313411c710 in __libc_start_main () from /usr/lib/libc.so.6
#26 0x0000000000400779 in _start ()

Konsole version: 15.12.2-1
Kernel version:  4.4.5-1-MANJARO
Linux Distribution: Manjaro (unstable)

Reproducible: Always

Steps to Reproduce:
1. start konsole
2. close konsole 
3. crash



If I can still more are required on the system that still choose to be happy here.
Comment 1 Torin 2016-03-17 13:53:35 UTC
I am getting the same issue running on Arch Linux 64-bit as a VirtualBox guest.

Konsole crashes upon exit, and when I close the crash handler, the crash handler (drkonqi) crashes with the same error. All Qt applications appear to crash in the same way. When I shut the virtual machine down, KDE reports a cascade of similar errors.

The issue has also been reported here: https://forum.manjaro.org/index.php?topic=32066.0

A sample backtrace (incomplete - I know) is below.

Application: drkonqi (drkonqi), signal: Floating point exception
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[KCrash Handler]
#5  0x00007fd92a7fbc19 in pthread_barrier_destroy () from /usr/lib/libpthread.so.0
#6  0x00007fd915a2796f in ?? () from /usr/lib/xorg/modules/dri/swrast_dri.so
#7  0x00007fd915a33441 in ?? () from /usr/lib/xorg/modules/dri/swrast_dri.so
#8  0x00007fd9156d254f in ?? () from /usr/lib/xorg/modules/dri/swrast_dri.so
#9  0x00007fd9156d25f5 in ?? () from /usr/lib/xorg/modules/dri/swrast_dri.so
#10 0x00007fd9156d0a2f in ?? () from /usr/lib/xorg/modules/dri/swrast_dri.so
#11 0x00007fd929523522 in ?? () from /usr/lib/libGL.so.1
#12 0x00007fd9294ff506 in ?? () from /usr/lib/libGL.so.1
#13 0x00007fd9294ff589 in ?? () from /usr/lib/libGL.so.1
#14 0x00007fd9294ff6de in ?? () from /usr/lib/libGL.so.1
#15 0x00007fd92af36c52 in XCloseDisplay () from /usr/lib/libX11.so.6
#16 0x00007fd921b36dd6 in QXcbConnection::~QXcbConnection() () from /usr/lib/libQt5XcbQpa.so.5
#17 0x00007fd921b37139 in QXcbConnection::~QXcbConnection() () from /usr/lib/libQt5XcbQpa.so.5
#18 0x00007fd921b38bd6 in QXcbIntegration::~QXcbIntegration() () from /usr/lib/libQt5XcbQpa.so.5
#19 0x00007fd921b38ce9 in QXcbIntegration::~QXcbIntegration() () from /usr/lib/libQt5XcbQpa.so.5
#20 0x00007fd92cd6a983 in QGuiApplicationPrivate::~QGuiApplicationPrivate() () from /usr/lib/libQt5Gui.so.5
#21 0x00007fd92d321029 in QApplicationPrivate::~QApplicationPrivate() () from /usr/lib/libQt5Widgets.so.5
#22 0x00007fd92ca6a408 in QObject::~QObject() () from /usr/lib/libQt5Core.so.5
#23 0x00007fd92d322e19 in QApplication::~QApplication() () from /usr/lib/libQt5Widgets.so.5
#24 0x000000000043a58d in main ()
Comment 2 Peter Mattern 2016-03-31 12:51:28 UTC
This problem seems to be due to some incompatibility of the swrast DRI drivers in Mesa 3D 11.1.2 with glibc 2.23.

It does not affect either Konsole or KDE as a whole only but among other all Qt applications and the X server.
FWIW I've been posting some detailed findings on Arch Linux at https://bbs.archlinux.org/viewtopic.php?id=209466. Note attributing these to QEMU was probably wrong. Meanwhile I saw the findings including the traces are e. g. the very same on a laptop featuring some VIA IGP making use of the swrast driver, too.

A workaround and test is downgrading glibc to 2.22. The solution is to upgrade the DRI driver to latest VCS. On Arch Linux the latter is provided by the packages of pkgbase mesa-git which rely on the ones of pkgbase llvm-svn, all from the AUR.
You may want to check this out.

All these findings were trial and error on Arch Linux after running into the problem and looking through the logs, glancing through the Git log of Mesa 3D since release 11.1.2 didn't yield a commit addressing the problem directly.
So any technical information what exactly is going on here would be much appreciated.
Comment 3 Christoph Feck 2016-06-28 19:25:59 UTC
Thanks for the analysis. It does not make much sense to track this here in the KDE bug tracker.