Application: konsole (2.11.2) KDE Platform Version: 4.11.2 Qt Version: 4.8.6 Operating System: Linux 3.10-3-amd64 x86_64 Distribution: Debian GNU/Linux testing (jessie) -- Information about the crash: - What I was doing when the application crashed: (This already happened in KDE 4.10.5.) Whenever I close a konsole tab, either in Konsole or Yakuake, there is a chance it (i.e. Konsole or Yakuake) will crash. I'm using ibus and have set the scrolling history ("Verlauf" in German) to infinite. I usually close tabs by pressing Ctrl-D. The crash happens less than half the time, but still often enough to cause a lot of annoyance. The crash can be reproduced sometimes. -- Backtrace: Application: Konsole (konsole), signal: Segmentation fault Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [Current thread is 1 (Thread 0x7f54773f4780 (LWP 19134))] Thread 2 (Thread 0x7f545b9fd700 (LWP 19164)): #0 g_mutex_get_impl (mutex=0x7f54540009a0) at /tmp/buildd/glib2.0-2.36.4/./glib/gthread-posix.c:123 #1 0x00007f5471b922b9 in g_mutex_unlock (mutex=mutex@entry=0x7f54540009a0) at /tmp/buildd/glib2.0-2.36.4/./glib/gthread-posix.c:229 #2 0x00007f5471b53189 in g_main_context_poll (priority=2147483647, n_fds=1, fds=0x7f5454002bb0, timeout=-1, context=0x7f54540009a0) at /tmp/buildd/glib2.0-2.36.4/./glib/gmain.c:3994 #3 g_main_context_iterate (context=context@entry=0x7f54540009a0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /tmp/buildd/glib2.0-2.36.4/./glib/gmain.c:3696 #4 0x00007f5471b5329c in g_main_context_iteration (context=0x7f54540009a0, may_block=1) at /tmp/buildd/glib2.0-2.36.4/./glib/gmain.c:3762 #5 0x00007f54760664d6 in QEventDispatcherGlib::processEvents (this=0x7f54540008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:427 #6 0x00007f5476037f9f in QEventLoop::processEvents (this=this@entry=0x7f545b9fcdb0, flags=...) at kernel/qeventloop.cpp:149 #7 0x00007f5476038295 in QEventLoop::exec (this=this@entry=0x7f545b9fcdb0, flags=...) at kernel/qeventloop.cpp:204 #8 0x00007f5475f3491f in QThread::exec (this=this@entry=0xe979b0) at thread/qthread.cpp:537 #9 0x00007f54760196c3 in QInotifyFileSystemWatcherEngine::run (this=0xe979b0) at io/qfilesystemwatcher_inotify.cpp:256 #10 0x00007f5475f36fef in QThreadPrivate::start (arg=0xe979b0) at thread/qthread_unix.cpp:349 #11 0x00007f5472434e0e in start_thread (arg=0x7f545b9fd700) at pthread_create.c:311 #12 0x00007f5474c4a9ed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113 Thread 1 (Thread 0x7f54773f4780 (LWP 19134)): [KCrash Handler] #6 0x00007f547544fada in QApplication::x11ProcessEvent (this=0x7fff56979a80, event=event@entry=0x7fff56979570) at kernel/qapplication_x11.cpp:3443 #7 0x00007f54754777e2 in x11EventSourceDispatch (s=s@entry=0xb498c0, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146 #8 0x00007f5471b52ea6 in g_main_dispatch (context=0xb49170) at /tmp/buildd/glib2.0-2.36.4/./glib/gmain.c:3054 #9 g_main_context_dispatch (context=context@entry=0xb49170) at /tmp/buildd/glib2.0-2.36.4/./glib/gmain.c:3630 #10 0x00007f5471b531f8 in g_main_context_iterate (context=context@entry=0xb49170, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /tmp/buildd/glib2.0-2.36.4/./glib/gmain.c:3701 #11 0x00007f5471b5329c in g_main_context_iteration (context=0xb49170, may_block=1) at /tmp/buildd/glib2.0-2.36.4/./glib/gmain.c:3762 #12 0x00007f54760664d6 in QEventDispatcherGlib::processEvents (this=0xb487b0, flags=...) at kernel/qeventdispatcher_glib.cpp:427 #13 0x00007f5475477896 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204 #14 0x00007f5476037f9f in QEventLoop::processEvents (this=this@entry=0x7fff56979950, flags=...) at kernel/qeventloop.cpp:149 #15 0x00007f5476038295 in QEventLoop::exec (this=this@entry=0x7fff56979950, flags=...) at kernel/qeventloop.cpp:204 #16 0x00007f547603d8db in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1221 #17 0x00007f5462fddc17 in kdemain () from /usr/lib/kde4/libkdeinit/libkdeinit4_konsole.so #18 0x00000000004083f5 in launch (argc=argc@entry=3, _name=_name@entry=0xa7d938 "konsole", args=<optimized out>, args@entry=0xa7d940 "--workdir", cwd=cwd@entry=0xa7d983 "/home/reini/tmp/jd/downloads/", envc=envc@entry=1, envs=<optimized out>, envs@entry=0xa7d970 "DISPLAY=:0", reset_env=false, tty=tty@entry=0x0, avoid_loops=false, startup_id_str=startup_id_str@entry=0x40ae96 "0") at ../../kinit/kinit.cpp:738 #19 0x000000000040950b in handle_launcher_request (sock=8, who=<optimized out>) at ../../kinit/kinit.cpp:1230 #20 0x0000000000409b6f in handle_requests (waitForPid=waitForPid@entry=0) at ../../kinit/kinit.cpp:1423 #21 0x000000000040535a in main (argc=4, argv=<optimized out>, envp=0x7fff5697a560) at ../../kinit/kinit.cpp:1911 The reporter indicates this bug may be a duplicate of or related to bug 326805, bug 323867, bug 319784, bug 317785. Possible duplicates by query: bug 326805, bug 324786, bug 324735, bug 323867, bug 323453. Reported using DrKonqi
Created attachment 84299 [details] New crash information added by DrKonqi konsole (2.12) on KDE Platform 4.12.0 using Qt 4.8.5 - What I was doing when the application crashed: Earlier i noticed crashes in yakuake and did bug reports on #327105. After a while i've started yakuake with valgrind to see what's exactly happening inside and started konsole for things where i need a fast shell as yakuake is as slow as hell when executed with valgrind. A few minutes ago i closed a tab which i used some hours in konsole and it happened again as it did the last few times in yakuake. - Unusual behavior I noticed: No unusual behavior noticed. It just crashed without any warning. - Custom settings of the application: Infinite scroll buffer. -- Backtrace (Reduced): #6 0x00007fd92797a63a in QApplication::x11ProcessEvent (this=0x7fff66e5e480, event=event@entry=0x7fff66e5df70) at kernel/qapplication_x11.cpp:3431 #7 0x00007fd9279a1882 in x11EventSourceDispatch (s=s@entry=0xff8c30, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146 #8 0x00007fd924062316 in g_main_dispatch (context=0xff48c0) at gmain.c:3066 #9 g_main_context_dispatch (context=context@entry=0xff48c0) at gmain.c:3642 #10 0x00007fd924062668 in g_main_context_iterate (context=context@entry=0xff48c0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3713
I think that #326805 and #323867 are definitely duplicates of this bug.
This bug is reproducable by opening about 200-300 Tabs and closing them again until konsole crashes. As it happens several times a day for me, this is really an odd issue and therefor i would really appreciate if someone could actually provide a patch or at least take care of us. :)
Created attachment 84388 [details] valgrind log
I was able to reproduce the bug in a few seconds with strace `strace -fo /var/tmp/konsole.strace konsole` and then pressing ctrl-shift-t, waiting for the command line to appear, pressing ctrl-d and repeating the loop until it crashes. (I can reproduce the bug all the time if you want me to try out things). The output contains about 333k lines, so i've split it up into 10k lines files. The list of the pastes: Skipped 00000 lines: http://sprunge.us/IILP Skipped 10000 lines: http://sprunge.us/dPeJ Skipped 20000 lines: http://sprunge.us/IUJj Skipped 30000 lines: http://sprunge.us/GXGN Skipped 40000 lines: http://sprunge.us/MgaT Skipped 50000 lines: http://sprunge.us/EWAH Skipped 60000 lines: http://sprunge.us/gRZJ Skipped 70000 lines: http://sprunge.us/YAie Skipped 80000 lines: http://sprunge.us/AgXA Skipped 90000 lines: http://sprunge.us/UEWO Skipped 100000 lines: http://sprunge.us/UOBJ Skipped 110000 lines: http://sprunge.us/dSGP Skipped 120000 lines: http://sprunge.us/MOZY Skipped 130000 lines: http://sprunge.us/diLa Skipped 140000 lines: http://sprunge.us/hXjT Skipped 150000 lines: http://sprunge.us/PhBY Skipped 160000 lines: http://sprunge.us/SFFC Skipped 170000 lines: http://sprunge.us/MPBX Skipped 180000 lines: http://sprunge.us/BQYT Skipped 190000 lines: http://sprunge.us/WMJC Skipped 200000 lines: http://sprunge.us/WFFC Skipped 210000 lines: http://sprunge.us/WeiI Skipped 220000 lines: http://sprunge.us/AfCP Skipped 230000 lines: http://sprunge.us/MVcd Skipped 240000 lines: http://sprunge.us/BViX Skipped 250000 lines: http://sprunge.us/WGZa Skipped 260000 lines: http://sprunge.us/KacW Skipped 270000 lines: http://sprunge.us/GCdi Skipped 280000 lines: http://sprunge.us/iXaW Skipped 290000 lines: http://sprunge.us/gKXH Skipped 300000 lines: http://sprunge.us/bZEA Skipped 310000 lines: http://sprunge.us/OKXQ Skipped 320000 lines: http://sprunge.us/VAQM Skipped 330000 lines: http://sprunge.us/cjfc You can simply download the strace with `wget http://sprunge.us/IILP http://sprunge.us/dPeJ http://sprunge.us/IUJj http://sprunge.us/GXGN http://sprunge.us/MgaT http://sprunge.us/EWAH http://sprunge.us/gRZJ http://sprunge.us/YAie http://sprunge.us/AgXA http://sprunge.us/UEWO http://sprunge.us/UOBJ http://sprunge.us/dSGP http://sprunge.us/MOZY http://sprunge.us/diLa http://sprunge.us/hXjT http://sprunge.us/PhBY http://sprunge.us/SFFC http://sprunge.us/MPBX http://sprunge.us/BQYT http://sprunge.us/WMJC http://sprunge.us/WFFC http://sprunge.us/WeiI http://sprunge.us/AfCP http://sprunge.us/MVcd http://sprunge.us/BViX http://sprunge.us/WGZa http://sprunge.us/KacW http://sprunge.us/GCdi http://sprunge.us/iXaW http://sprunge.us/gKXH http://sprunge.us/bZEA http://sprunge.us/OKXQ http://sprunge.us/VAQM http://sprunge.us/cjfc -O bug_326812_konsole_strace`
I'll have to look at install ibus and see what I can find. Currently, if I go over 100 tabs I start getting errors about too many open files open. Although konsole doesn't crash here.
Reopen if you can still reproduce this issue with a recent konsole version.