Bug 391506 - Konsole sometimes crashes on exit
Summary: Konsole sometimes crashes on exit
Status: RESOLVED DUPLICATE of bug 389272
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 17.12.2
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2018-03-07 08:48 UTC by Paulus
Modified: 2018-03-12 13:54 UTC (History)
1 user (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 Paulus 2018-03-07 08:48:20 UTC
Application: kdeinit5 (17.12.2)

Qt Version: 5.10.0
Frameworks Version: 5.43.0
Operating System: Linux 4.13.0-36-generic x86_64
Distribution: KDE neon User Edition 5.12

-- Information about the crash:
- What I was doing when the application crashed:
Exiting konsole using kwin's close actions. Sometimes konsole has several tabs opened.

- Additional Infos:
Updated to KDE SC 5.12.2 from Neon repository.
This is a USB bootable KDE neon workspace. This error only happens on any PC with nvidia graphics card.
All konsole settings are in their default vanilla values, except for (of course) window size and location.
Also, sometimes konsole uses 100% single core CPU after exit (after the window is gone). When this happens, opening another konsole window still works normally.

The crash can be reproduced sometimes.

-- Backtrace:
Application: Konsole (kdeinit5), signal: Aborted
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f328169c780 (LWP 9783))]

Thread 3 (Thread 0x7f326395a700 (LWP 9785)):
#0  0x00007f327fd1ec5b in QTimerInfoList::timerWait(timespec&) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#1  0x00007f327fd2033e in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007f327bd5e91d in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f327bd5f2bb in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f327bd5f49c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f327fd205cb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f327fcc764a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f327fae7554 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f32763aa2c5 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#9  0x00007f327faec6eb in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007f327dbd66ba in start_thread (arg=0x7f326395a700) at pthread_create.c:333
#11 0x00007f327f77b41d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7f326b1e5700 (LWP 9784)):
#0  0x00007f327f76f74d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f3280b03c62 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f3280b058d7 in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f326df7fce9 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007f327faec6eb in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f327dbd66ba in start_thread (arg=0x7f326b1e5700) at pthread_create.c:333
#6  0x00007f327f77b41d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7f328169c780 (LWP 9783)):
[KCrash Handler]
#6  0x00007f327f6a9428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
#7  0x00007f327f6ab02a in __GI_abort () at abort.c:89
#8  0x00007f327fad6311 in QMessageLogger::fatal(char const*, ...) const () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007f32763b6a04 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#10 0x00007f327fcf74c9 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#11 0x00007f327e148acc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#12 0x00007f327e150417 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#13 0x00007f327fcc93c8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#14 0x00007f327fccbfcb in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#15 0x00007f327fd20fa3 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#16 0x00007f327bd5f197 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#17 0x00007f327bd5f3f0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#18 0x00007f327bd5f49c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#19 0x00007f327fd205af in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#20 0x00007f326e0021a1 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#21 0x00007f327fcc764a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#22 0x00007f327fcd0854 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#23 0x00007f326f074347 in kdemain () from /usr/lib/x86_64-linux-gnu/libkdeinit5_konsole.so
#24 0x0000000000408679 in ?? ()
#25 0x0000000000409c71 in ?? ()
#26 0x000000000040a307 in ?? ()
#27 0x0000000000404ee4 in ?? ()
#28 0x00007f327f694830 in __libc_start_main (main=0x4045f0, argc=5, argv=0x7ffe06732c08, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffe06732bf8) at ../csu/libc-start.c:291
#29 0x0000000000405c69 in _start ()

Possible duplicates by query: bug 389875, bug 389801, bug 388864, bug 384983, bug 382788.

Reported using DrKonqi
Comment 1 luca 2018-03-10 11:32:08 UTC
I can reproduce a similar bug every time.
Dolphin->Open Konsole(shift+f4)->Close Konsole.

Can You?


Application: kdeinit5 (kdeinit5), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[KCrash Handler]
#6  0x00007f769ee9eabc in ?? () from /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.340.106
#7  0x00007f769ee9dccf in ?? () from /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.340.106
#8  0x00007f76a27430a0 in ?? () from /usr/lib/x86_64-linux-gnu/libGL.so.1
#9  0x00007f76a62b62d3 in _dl_fini () at dl-fini.c:143
#10 0x00007f76a44c7831 in __run_exit_handlers (status=0, listp=0x7f76a4844718 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true, run_dtors=run_dtors@entry=true) at exit.c:108
#11 0x00007f76a44c792a in __GI_exit (status=<optimized out>) at exit.c:139
#12 0x000055fd831da6a4 in launch (argc=2, _name=0x55fd84f8e138 "konsole", args=<optimized out>, cwd=<optimized out>, envc=0, envs=<optimized out>, reset_env=false, tty=0x0, avoid_loops=false, startup_id_str=0x55fd831dd527 "0") at ./src/kdeinit/kinit.cpp:705
#13 0x000055fd831dbc8b in handle_launcher_request (sock=8, who=<optimized out>) at ./src/kdeinit/kinit.cpp:1145
#14 0x000055fd831dc51b in handle_requests (waitForPid=0) at ./src/kdeinit/kinit.cpp:1338
#15 0x000055fd831d700c in main (argc=5, argv=<optimized out>) at ./src/kdeinit/kinit.cpp:1784
Comment 2 Paulus 2018-03-10 13:34:20 UTC
(In reply to luca from comment #1)
> I can reproduce a similar bug every time.
> Dolphin->Open Konsole(shift+f4)->Close Konsole.
> 
> Can You?
> 
> 
> Application: kdeinit5 (kdeinit5), signal: Segmentation fault
> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
> [KCrash Handler]
> #6  0x00007f769ee9eabc in ?? () from
> /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.340.106
> #7  0x00007f769ee9dccf in ?? () from
> /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.340.106
> #8  0x00007f76a27430a0 in ?? () from /usr/lib/x86_64-linux-gnu/libGL.so.1
> #9  0x00007f76a62b62d3 in _dl_fini () at dl-fini.c:143
> #10 0x00007f76a44c7831 in __run_exit_handlers (status=0,
> listp=0x7f76a4844718 <__exit_funcs>,
> run_list_atexit=run_list_atexit@entry=true, run_dtors=run_dtors@entry=true)
> at exit.c:108
> #11 0x00007f76a44c792a in __GI_exit (status=<optimized out>) at exit.c:139
> #12 0x000055fd831da6a4 in launch (argc=2, _name=0x55fd84f8e138 "konsole",
> args=<optimized out>, cwd=<optimized out>, envc=0, envs=<optimized out>,
> reset_env=false, tty=0x0, avoid_loops=false, startup_id_str=0x55fd831dd527
> "0") at ./src/kdeinit/kinit.cpp:705
> #13 0x000055fd831dbc8b in handle_launcher_request (sock=8, who=<optimized
> out>) at ./src/kdeinit/kinit.cpp:1145
> #14 0x000055fd831dc51b in handle_requests (waitForPid=0) at
> ./src/kdeinit/kinit.cpp:1338
> #15 0x000055fd831d700c in main (argc=5, argv=<optimized out>) at
> ./src/kdeinit/kinit.cpp:1784

It can be reproduced that way, but also not every time (but it is pretty frequent). No matter how I open Konsole (using global shortcut, from kickstart, or from dolphin's Shift+F4), sometimes, but not always, either this bug or 100% core CPU bug is triggered. This only happens on my PC with NVidia hardware.

Also, when the Konsole hogs 100% core CPU, it can be closed instantly by issuing SIGINT (no need for SIGKILL) to the offending process.
Comment 3 luca 2018-03-10 13:40:07 UTC
thanks for the reply.
I have the crash only when konsole is started via kdeinit5.
dolphin or konqueror f4.
even 
$ kdeinit5 konsole 
in konsole crash on exit

and yes only with nvidia

i'll file a proper bugreport.
Comment 4 Kurt Hindenburg 2018-03-12 13:54:13 UTC

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