Bug 351232 - Konsole crashed after exiting
Summary: Konsole crashed after exiting
Status: RESOLVED DUPLICATE of bug 345712
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2015-08-12 22:29 UTC by Rick Alther
Modified: 2016-08-13 17:18 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (3.25 KB, text/plain)
2016-01-23 08:34 UTC, wladypauly
Details
New crash information added by DrKonqi (6.49 KB, text/plain)
2016-02-22 19:38 UTC, Pawel Kraszewski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rick Alther 2015-08-12 22:29:21 UTC
Application: kdeinit5 (15.04.0)

Qt Version: 5.4.2
Operating System: Linux 4.1.3-201.fc22.x86_64 x86_64
Distribution: "Fedora release 22 (Twenty Two)"

-- Information about the crash:
I had just closed down several tabs in Konsole (by typing the 'exit' command).  When I closed the last tab, Konsole crashed.

-- Backtrace:
Application: Konsole (kdeinit5), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[KCrash Handler]
#5  0x00007f7eb04aa310 in free_reply_list () from /lib64/libxcb.so.1
#6  0x00007f7eb04abf4c in _xcb_map_delete () from /lib64/libxcb.so.1
#7  0x00007f7eb04aa86d in _xcb_in_destroy () from /lib64/libxcb.so.1
#8  0x00007f7eb04a8d95 in xcb_disconnect () from /lib64/libxcb.so.1
#9  0x00007f7eb370bde7 in XCloseDisplay () from /lib64/libX11.so.6
#10 0x00007f7e94ffae04 in QXcbConnection::~QXcbConnection() () from /usr/lib64/qt5/plugins/platforms/libqxcb.so
#11 0x00007f7e94ffb1a9 in QXcbConnection::~QXcbConnection() () from /usr/lib64/qt5/plugins/platforms/libqxcb.so
#12 0x00007f7e94ffeaae in QXcbIntegration::~QXcbIntegration() () from /usr/lib64/qt5/plugins/platforms/libqxcb.so
#13 0x00007f7e94ffeba9 in QXcbIntegration::~QXcbIntegration() () from /usr/lib64/qt5/plugins/platforms/libqxcb.so
#14 0x00007f7eb25bfaee in QGuiApplicationPrivate::~QGuiApplicationPrivate() () from /lib64/libQt5Gui.so.5
#15 0x00007f7eb2d668a9 in QApplicationPrivate::~QApplicationPrivate() () from /lib64/libQt5Widgets.so.5
#16 0x00007f7eb20e1f58 in QObject::~QObject() () from /lib64/libQt5Core.so.5
#17 0x00007f7eb2d6860b in QApplication::~QApplication() () from /lib64/libQt5Widgets.so.5
#18 0x00007f7e96f4cb94 in kdemain () from /lib64/libkdeinit5_konsole.so
#19 0x00000000004085e0 in launch(int, char const*, char const*, char const*, int, char const*, bool, char const*, bool, char const*) ()
#20 0x0000000000409f2e in handle_launcher_request(int, char const*) [clone .isra.23] ()
#21 0x000000000040a52b in handle_requests(int) ()
#22 0x0000000000404f53 in main ()

Reported using DrKonqi
Comment 1 Michael 2015-10-05 06:52:21 UTC
Crash on exit occurs for me as well, with the same call stack.
Comment 2 Jan Wiele 2015-12-08 16:42:50 UTC
I'm on Kubuntu 15.10 with KDE Frameworks 5.15.0, Qt 5.4.2, Konsole version 15.08.0 (nvidia-352)

Also happens sometimes to me with a very similar backtrace

Application: Konsole (konsole), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[KCrash Handler]
#6  free_reply_list (head=0x1) at ../../src/xcb_in.c:358
#7  0x00007fd287f3c85c in _xcb_map_delete (list=0x192cb30, do_free=do_free@entry=0x7fd287f3ad40 <free_reply_list>) at ../../src/xcb_list.c:69
#8  0x00007fd287f3b34d in _xcb_in_destroy (in=in@entry=0x193fee0) at ../../src/xcb_in.c:825
#9  0x00007fd287f397e5 in xcb_disconnect (c=0x193fea0) at ../../src/xcb_conn.c:363
#10 0x00007fd289478677 in XCloseDisplay (dpy=0x193eb10) at ../../src/ClDisplay.c:71
#11 0x00007fd27c481e84 in QXcbConnection::~QXcbConnection (this=0x193e750, __in_chrg=<optimized out>) at qxcbconnection.cpp:444
#12 0x00007fd27c482229 in QXcbConnection::~QXcbConnection (this=0x193e750, __in_chrg=<optimized out>) at qxcbconnection.cpp:450
#13 0x00007fd27c485a4e in qDeleteAll<QList<QXcbConnection*>::const_iterator> (end=..., begin=...) at ../../../../include/QtCore/../../src/corelib/tools/qalgorithms.h:315
#14 qDeleteAll<QList<QXcbConnection*> > (c=...) at ../../../../include/QtCore/../../src/corelib/tools/qalgorithms.h:323
#15 QXcbIntegration::~QXcbIntegration (this=0x192b910, __in_chrg=<optimized out>) at qxcbintegration.cpp:189
#16 0x00007fd27c485b49 in QXcbIntegration::~QXcbIntegration (this=0x192b910, __in_chrg=<optimized out>) at qxcbintegration.cpp:190
#17 0x00007fd28c2c213e in QGuiApplicationPrivate::~QGuiApplicationPrivate (this=0x191fe30, __in_chrg=<optimized out>) at kernel/qguiapplication.cpp:1374
#18 0x00007fd28c871c49 in QApplicationPrivate::~QApplicationPrivate (this=0x191fe30, __in_chrg=<optimized out>) at kernel/qapplication.cpp:183
#19 0x00007fd28bfe1668 in QScopedPointerDeleter<QObjectData>::cleanup (pointer=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qscopedpointer.h:54
#20 QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> >::~QScopedPointer (this=0x7ffe676679c8, __in_chrg=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qscopedpointer.h:101
#21 QObject::~QObject (this=<optimized out>, __in_chrg=<optimized out>) at kernel/qobject.cpp:882
#22 0x00007fd28c8739ab in QApplication::~QApplication (this=0x7ffe676679c0, __in_chrg=<optimized out>) at kernel/qapplication.cpp:803
#23 0x00007fd28f6aabe5 in kdemain (argc=10, argv=0x7ffe67667b08) at ../../src/main.cpp:110
#24 0x00007fd28f2dfa40 in __libc_start_main (main=0x400730 <main(int, char**)>, argc=10, argv=0x7ffe67667b08, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffe67667af8) at libc-start.c:289
#25 0x0000000000400769 in _start ()
Comment 3 wladypauly 2016-01-23 08:34:30 UTC
Created attachment 96791 [details]
New crash information added by DrKonqi

konsole (15.08.0) using Qt 5.5.1

- What I was doing when the application crashed:
I updated the system and then tried to close Konsole by clicking on the X button in the window bar. Apart from crashing each time I try to close it, konsole keeps my CPU at 100% no matter what, even when it is just open and not running any tasks like apt-get update or something.

-- Backtrace (Reduced):
#6  free_reply_list (head=0x1) at ../../src/xcb_in.c:363
#7  0x00007f113fd00bac in _xcb_map_delete (list=0x16f0600, do_free=do_free@entry=0x7f113fcfee00 <free_reply_list>) at ../../src/xcb_list.c:69
#8  0x00007f113fcff46d in _xcb_in_destroy (in=in@entry=0x1705190) at ../../src/xcb_in.c:901
#9  0x00007f113fcfd875 in xcb_disconnect (c=0x1705150) at ../../src/xcb_conn.c:363
#10 0x00007f114123d677 in XCloseDisplay (dpy=0x1703f00) at ../../src/ClDisplay.c:71
Comment 4 wladypauly 2016-01-23 08:36:00 UTC
Sorry, I forgot to mention that I am running Kubuntu 16.04 with all the updates.
Comment 5 Pawel Kraszewski 2016-02-22 19:38:43 UTC
Created attachment 97360 [details]
New crash information added by DrKonqi

konsole (15.08.0) using Qt 5.5.1

- What I was doing when the application crashed:

Closed Konsole via (X) button on frame.

- System info:

System: Gentoo ~amd64,

sh bash 4.3_p42-r2                                                                                      
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1                                                                   
ccache version 3.2.4 [enabled]                                                                          
app-shells/bash:          4.3_p42-r2::gentoo                                                            
dev-java/java-config:     2.2.0-r3::gentoo                                                              
dev-lang/perl:            5.22.1::gentoo                                                                
dev-lang/python:          2.7.11-r2::gentoo, 3.4.3-r7::gentoo                                           
dev-util/ccache:          3.2.4::gentoo                                                                 
dev-util/cmake:           3.4.3::gentoo                                                                 
dev-util/pkgconfig:       0.29::gentoo                                                                  
sys-apps/baselayout:      2.2::gentoo                                                                   
sys-apps/openrc:          0.20.5::gentoo                                                                
sys-apps/sandbox:         2.10-r1::gentoo                                                               
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo                                                 
sys-devel/automake:       1.11.6-r2::gentoo, 1.12.6-r1::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo                                                                                           
sys-devel/binutils:       2.25.1-r1::gentoo                                                             
sys-devel/gcc:            5.3.0::gentoo                                                                 
sys-devel/gcc-config:     1.8-r1::gentoo                                                                
sys-devel/libtool:        2.4.6-r2::gentoo                                                              
sys-devel/make:           4.1-r1::gentoo                                                                
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)                                              
sys-libs/glibc:           2.22-r2::gentoo                                                               

Konsole: kde-apps/konsole-15.08.3-r1

Flags effective for Konsole:
USE="X handbook -debug -test" ABI_X86="64"
CFLAGS="-O3 -pipe -march=native -ggdb"
CXXFLAGS="-O3 -pipe -march=native -ggdb"

-- Backtrace (Reduced):
#6  free_reply_list (head=0x1) at /usr/src/debug/x11-libs/libxcb-1.11.1/libxcb-1.11.1/src/xcb_in.c:363
#7  0x00000034a580e757 in _xcb_map_delete (list=0x1171f60, do_free=do_free@entry=0x34a580c3a0 <free_reply_list>) at /usr/src/debug/x11-libs/libxcb-1.11.1/libxcb-1.11.1/src/xcb_list.c:69
#8  0x00000034a580d49f in _xcb_in_destroy (in=in@entry=0x1185580) at /usr/src/debug/x11-libs/libxcb-1.11.1/libxcb-1.11.1/src/xcb_in.c:901
#9  0x00000034a580a735 in xcb_disconnect (c=0x1185540) at /usr/src/debug/x11-libs/libxcb-1.11.1/libxcb-1.11.1/src/xcb_conn.c:363
#10 0x00000034a5c1fea7 in XCloseDisplay (dpy=0x11842f0) at /usr/src/debug/x11-libs/libX11-1.6.3/libX11-1.6.3/src/ClDisplay.c:71
Comment 6 Pawel Kraszewski 2016-02-25 06:05:34 UTC
A, yes. And from to time (about as often/seldom as crashing), konsole at exit leaves its process running at 100% CPU. Window is destroyed properly, just an undead, hungry process. I'll try to attach to it today and see what's up.
Comment 7 Pawel Kraszewski 2016-02-26 13:44:23 UTC
Got it.

Hanging kosole dwells in NVidia tls cleanup code on libc's exit() (I have no debug symbols for NVidia, so no useful stacktrace). It appears to happen generally after konsole has done all the cleaning. OTOH, konsole is the ONLY app doing that.

It looks both cases (crash/hang) are somehow related to graphics subroutines.
Comment 8 Martin Sandsmark 2016-08-13 17:18:44 UTC

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