Application: kate (17.07.70) Qt Version: 5.7.1 Frameworks Version: 5.31.0 Operating System: Linux 4.10.0-22-generic x86_64 Distribution: Ubuntu 17.04 -- Information about the crash: - What I was doing when the application crashed: Opening Kate, whether from launcher or CLI, presents the "choose session" dialog but crashes as soon as a session (or "new session") is chosen. This happens every time, and started happening immediately after the Kubuntu 17.04 distribution upgrade (which reported no errors). Initially Kate crashed immediately when launching, but removing user preference files allows it to present the "choose session" dialog before crashing. The error persists after building Kate from source. The crash can be reproduced every time. -- Backtrace: Application: Kate (kate), signal: Segmentation fault Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [Current thread is 1 (Thread 0x7f1f56b4a900 (LWP 19537))] Thread 10 (Thread 0x7f1f0b7fe700 (LWP 19547)): #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185 #1 0x00007f1f51d00b4b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #2 0x00007f1f294a3240 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #3 0x00007f1f294a7478 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #4 0x00007f1f294a23bd in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #5 0x00007f1f294a5289 in ThreadWeaver::Thread::run() () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #6 0x00007f1f51cffc98 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #7 0x00007f1f4dd776da in start_thread (arg=0x7f1f0b7fe700) at pthread_create.c:456 #8 0x00007f1f51303d7f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105 Thread 9 (Thread 0x7f1f0bfff700 (LWP 19546)): #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185 #1 0x00007f1f51d00b4b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #2 0x00007f1f294a3240 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #3 0x00007f1f294a7478 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #4 0x00007f1f294a23bd in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #5 0x00007f1f294a5289 in ThreadWeaver::Thread::run() () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #6 0x00007f1f51cffc98 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #7 0x00007f1f4dd776da in start_thread (arg=0x7f1f0bfff700) at pthread_create.c:456 #8 0x00007f1f51303d7f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105 Thread 8 (Thread 0x7f1f208de700 (LWP 19545)): #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185 #1 0x00007f1f51d00b4b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #2 0x00007f1f294a3240 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #3 0x00007f1f294a7478 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #4 0x00007f1f294a23bd in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #5 0x00007f1f294a5289 in ThreadWeaver::Thread::run() () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #6 0x00007f1f51cffc98 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #7 0x00007f1f4dd776da in start_thread (arg=0x7f1f208de700) at pthread_create.c:456 #8 0x00007f1f51303d7f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105 Thread 7 (Thread 0x7f1f210df700 (LWP 19544)): #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185 #1 0x00007f1f51d00b4b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #2 0x00007f1f294a3240 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #3 0x00007f1f294a7478 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #4 0x00007f1f294a23bd in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #5 0x00007f1f294a5289 in ThreadWeaver::Thread::run() () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #6 0x00007f1f51cffc98 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #7 0x00007f1f4dd776da in start_thread (arg=0x7f1f210df700) at pthread_create.c:456 #8 0x00007f1f51303d7f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105 Thread 6 (Thread 0x7f1f218e0700 (LWP 19543)): #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185 #1 0x00007f1f51d00b4b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #2 0x00007f1f294a3240 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #3 0x00007f1f294a7478 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #4 0x00007f1f294a23bd in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #5 0x00007f1f294a5289 in ThreadWeaver::Thread::run() () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #6 0x00007f1f51cffc98 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #7 0x00007f1f4dd776da in start_thread (arg=0x7f1f218e0700) at pthread_create.c:456 #8 0x00007f1f51303d7f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105 Thread 5 (Thread 0x7f1f220e1700 (LWP 19542)): #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185 #1 0x00007f1f51d00b4b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #2 0x00007f1f294a3240 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #3 0x00007f1f294a7478 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #4 0x00007f1f294a23bd in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #5 0x00007f1f294a5289 in ThreadWeaver::Thread::run() () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #6 0x00007f1f51cffc98 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #7 0x00007f1f4dd776da in start_thread (arg=0x7f1f220e1700) at pthread_create.c:456 #8 0x00007f1f51303d7f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105 Thread 4 (Thread 0x7f1f23fff700 (LWP 19541)): #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185 #1 0x00007f1f51d00b4b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #2 0x00007f1f294a3240 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #3 0x00007f1f294a7478 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #4 0x00007f1f294a23bd in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #5 0x00007f1f294a5289 in ThreadWeaver::Thread::run() () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #6 0x00007f1f51cffc98 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #7 0x00007f1f4dd776da in start_thread (arg=0x7f1f23fff700) at pthread_create.c:456 #8 0x00007f1f51303d7f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105 Thread 3 (Thread 0x7f1f28faa700 (LWP 19540)): #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185 #1 0x00007f1f51d00b4b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #2 0x00007f1f294a3240 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #3 0x00007f1f294a7478 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #4 0x00007f1f294a23bd in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #5 0x00007f1f294a5289 in ThreadWeaver::Thread::run() () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #6 0x00007f1f51cffc98 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #7 0x00007f1f4dd776da in start_thread (arg=0x7f1f28faa700) at pthread_create.c:456 #8 0x00007f1f51303d7f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105 Thread 2 (Thread 0x7f1f4152b700 (LWP 19538)): #0 0x00007f1f512f7d8d in poll () at ../sysdeps/unix/syscall-template.S:84 #1 0x00007f1f4bc46576 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #2 0x00007f1f4bc4668c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #3 0x00007f1f51f23f2b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #4 0x00007f1f51ecd88a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #5 0x00007f1f51cfafe3 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #6 0x00007f1f523365c5 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5 #7 0x00007f1f51cffc98 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #8 0x00007f1f4dd776da in start_thread (arg=0x7f1f4152b700) at pthread_create.c:456 #9 0x00007f1f51303d7f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105 Thread 1 (Thread 0x7f1f56b4a900 (LWP 19537)): [KCrash Handler] #6 0x00007f1f53491810 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #7 0x0000557dc2a2e214 in KateViewManager::removeViewSpace (this=this@entry=0x557dc4aa7920, viewspace=<optimized out>) at /home/jim/kde/kate/kate/kateviewmanager.cpp:917 #8 0x0000557dc2a2e6e2 in KateViewManager::removeHiddenViewSpaces (this=this@entry=0x557dc4aa7920) at /home/jim/kde/kate/kate/kateviewmanager.cpp:1073 #9 0x0000557dc2a30024 in KateViewManager::restoreViewConfiguration (this=0x557dc4aa7920, config=...) at /home/jim/kde/kate/kate/kateviewmanager.cpp:1024 #10 0x0000557dc2a20f6f in KateMainWindow::KateMainWindow (this=0x557dc482e580, sconfig=0x557dc4a47440, sgroup=..., __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /home/jim/kde/kate/kate/katemainwindow.cpp:158 #11 0x0000557dc2a0ba52 in KateApp::newMainWindow (this=<optimized out>, sconfig_=sconfig_@entry=0x557dc4a47440, sgroup_=...) at /home/jim/kde/kate/kate/kateapp.cpp:335 #12 0x0000557dc2a41c35 in KateSessionManager::loadSession (this=this@entry=0x7ffeb77f2640, session=...) at /home/jim/kde/kate/kate/session/katesessionmanager.cpp:200 #13 0x0000557dc2a42c3b in KateSessionManager::activateSession (this=this@entry=0x7ffeb77f2640, session=..., closeAndSaveLast=closeAndSaveLast@entry=false, loadNew=loadNew@entry=true) at /home/jim/kde/kate/kate/session/katesessionmanager.cpp:161 #14 0x0000557dc2a430b6 in KateSessionManager::activateSession (this=this@entry=0x7ffeb77f2640, name=..., closeAndSaveLast=closeAndSaveLast@entry=false, loadNew=loadNew@entry=true) at /home/jim/kde/kate/kate/session/katesessionmanager.cpp:223 #15 0x0000557dc2a43151 in KateSessionManager::activateAnonymousSession (this=this@entry=0x7ffeb77f2640) at /home/jim/kde/kate/kate/session/katesessionmanager.cpp:228 #16 0x0000557dc2a435cb in KateSessionManager::chooseSession (this=this@entry=0x7ffeb77f2640) at /home/jim/kde/kate/kate/session/katesessionmanager.cpp:392 #17 0x0000557dc2a0e420 in KateApp::startupKate (this=0x7ffeb77f2580) at /home/jim/kde/kate/kate/kateapp.cpp:146 #18 0x0000557dc2a0e7d5 in KateApp::init (this=0x7ffeb77f2580) at /home/jim/kde/kate/kate/kateapp.cpp:98 #19 0x0000557dc2a06f38 in main (argc=<optimized out>, argv=<optimized out>) at /home/jim/kde/kate/kate/main.cpp:562 Possible duplicates by query: bug 367861. Reported using DrKonqi
Could you share the config file of the session?
Git commit 34e61eda173a3e2db5b8d4f0ba86c3b2eb05f5df by Christoph Cullmann. Committed on 23/07/2017 at 13:31. Pushed by cullmann into branch 'master'. fix crash during load of view manager state export only visible splitter parts avoid cleanups during loading M +33 -50 kate/kateviewmanager.cpp M +1 -2 kate/kateviewmanager.h https://commits.kde.org/kate/34e61eda173a3e2db5b8d4f0ba86c3b2eb05f5df
*** Bug 378426 has been marked as a duplicate of this bug. ***
Just confirming that commit 34e61eda173a3e2db5b8d4f0ba86c3b2eb05f5df by Christoph Cullmann largely resolved the reported issue, with a few caveats detailed below. Thank you Christoph, and sorry for the lack of response earlier. Let me know if you'd still like a sample session config. ------------------------------------ (Built from master branch at commit c7d3c9bbc77aff60223603c3acfb087226081627) - Starting Kate and selecting "New Session" from the initial Session chooser correctly creates a new, fully-functional session. - Saving a new session and reloading it works as expected However: - Trying to load an older session from the initial Session chooser dialog (before Kate is loaded) causes a crash similar to the initial bug report - Creating a new session and then attempting to switch to an older session similarly crashed (via both session dialogue and quick-open menu) ------------------------------------ I'm happy enough to just delete my old/pre-existing sessions, but will refrain from doing so for now in case there's useful info in them. Let me know if I can supply configs/backtraces/other info, otherwise I'm happy for this to remain as RESOLVED FIXED.
UPDATE (Ignore a lot of the preceding comment) Some of the preceding tests were inadvertently run against the packaged binary (16.12.3) NOT against the fresh locally-built version (17.11.70). All tests are working against the locally-built binary (and opening/saving a session renders that session open-able in the packaged binary). Thank you again!
*** Bug 386197 has been marked as a duplicate of this bug. ***