Bug 349055 - Kate crashes at startup
Summary: Kate crashes at startup
Status: RESOLVED DUPLICATE of bug 349558
Alias: None
Product: kate
Classification: Applications
Component: general (other bugs)
Version First Reported In: 5.0.0
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords: drkonqi
: 350715 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-06-12 09:53 UTC by jacopo1.farina
Modified: 2015-10-09 17:37 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jacopo1.farina 2015-06-12 09:53:07 UTC
Application: kate (5.0.0)

Qt Version: 5.4.1
Operating System: Linux 3.19.0-20-generic x86_64
Distribution: Ubuntu 15.04

-- Information about the crash:
- What I was doing when the application crashed:
I started Kate, it doesn't open but crashes, it worked until yesterday. I'm using XFCE but have KDE packets installed too.

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 0x7fe46cb067c0 (LWP 12059))]

Thread 7 (Thread 0x7fe45926b700 (LWP 12060)):
#0  0x00007fe46c5548dd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007fe46640db72 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007fe46640f64f in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007fe45b7b6099 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so
#4  0x00007fe4686a2b0e in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fe4651516aa in start_thread (arg=0x7fe45926b700) at pthread_create.c:333
#6  0x00007fe46c55feed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 6 (Thread 0x7fe44ba39700 (LWP 12062)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fe4686a3c6b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007fe44bd3a36f in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#3  0x00007fe44bd3e408 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#4  0x00007fe44bd3948f in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#5  0x00007fe44bd3c333 in ThreadWeaver::Thread::run() () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#6  0x00007fe4686a2b0e in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fe4651516aa in start_thread (arg=0x7fe44ba39700) at pthread_create.c:333
#8  0x00007fe46c55feed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 5 (Thread 0x7fe44b238700 (LWP 12063)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fe4686a3c6b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007fe44bd3a36f in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#3  0x00007fe44bd3e408 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#4  0x00007fe44bd3948f in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#5  0x00007fe44bd3c333 in ThreadWeaver::Thread::run() () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#6  0x00007fe4686a2b0e in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fe4651516aa in start_thread (arg=0x7fe44b238700) at pthread_create.c:333
#8  0x00007fe46c55feed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 4 (Thread 0x7fe44aa37700 (LWP 12064)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fe4686a3c6b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007fe44bd3a36f in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#3  0x00007fe44bd3e408 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#4  0x00007fe44bd3948f in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#5  0x00007fe44bd3c333 in ThreadWeaver::Thread::run() () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#6  0x00007fe4686a2b0e in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fe4651516aa in start_thread (arg=0x7fe44aa37700) at pthread_create.c:333
#8  0x00007fe46c55feed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 3 (Thread 0x7fe44a236700 (LWP 12065)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fe4686a3c6b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007fe44bd3a36f in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#3  0x00007fe44bd3e408 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#4  0x00007fe44bd3948f in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#5  0x00007fe44bd3c333 in ThreadWeaver::Thread::run() () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#6  0x00007fe4686a2b0e in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fe4651516aa in start_thread (arg=0x7fe44a236700) at pthread_create.c:333
#8  0x00007fe46c55feed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7fe42e371700 (LWP 12075)):
#0  0x00007fe46c55049d in read () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007fe464a602f0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fe464a1c96c in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fe464a1ce60 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fe464a1d242 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fe452cedae6 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#6  0x00007fe464a43955 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007fe4651516aa in start_thread (arg=0x7fe42e371700) at pthread_create.c:333
#8  0x00007fe46c55feed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7fe46cb067c0 (LWP 12059)):
[KCrash Handler]
#6  0x00007fe469217e10 in QWidget::hide() () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#7  0x00007fe46c87e530 in KateTabBar::removeTab (this=0x15e2130, id=0) at ../../../kate/src/katetabbar.cpp:178
#8  0x00007fe46c875196 in KateViewSpace::removeTab (this=this@entry=0x1483460, doc=0x1552a40, documentDestroyed=documentDestroyed@entry=false) at ../../../kate/src/kateviewspace.cpp:367
#9  0x00007fe46c8756ce in KateViewSpace::showView (this=this@entry=0x1483460, document=0x1391fd0) at ../../../kate/src/kateviewspace.cpp:282
#10 0x00007fe46c875e6f in showView (view=0x166b8b0, this=0x1483460) at ../../../kate/src/kateviewspace.h:64
#11 KateViewSpace::createView (this=0x1483460, doc=0x1391fd0) at ../../../kate/src/kateviewspace.cpp:234
#12 0x00007fe46c86d223 in KateViewManager::createView (this=this@entry=0x166ea80, doc=<optimized out>, vs=vs@entry=0x1483460) at ../../../kate/src/kateviewmanager.cpp:449
#13 0x00007fe46c86d51e in KateViewManager::createView (this=this@entry=0x166ea80, doc=<optimized out>, vs=vs@entry=0x1483460) at ../../../kate/src/kateviewmanager.cpp:436
#14 0x00007fe46c876e5f in KateViewSpace::restoreConfig (this=0x1483460, viewMan=viewMan@entry=0x166ea80, config=config@entry=0x1365c40, groupname=...) at ../../../kate/src/kateviewspace.cpp:662
#15 0x00007fe46c87076b in KateViewManager::restoreSplitter (this=this@entry=0x166ea80, configBase=0x1365c40, group=..., parent=parent@entry=0x166ea80, viewConfGrp=...) at ../../../kate/src/kateviewmanager.cpp:1110
#16 0x00007fe46c870adf in KateViewManager::restoreViewConfiguration (this=0x166ea80, config=...) at ../../../kate/src/kateviewmanager.cpp:1013
#17 0x00007fe46c863527 in KateMainWindow::KateMainWindow (this=0x13ae220, sconfig=0x1365c40, sgroup=..., __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at ../../../kate/src/katemainwindow.cpp:157
#18 0x00007fe46c84e6d7 in KateApp::newMainWindow (this=<optimized out>, sconfig_=sconfig_@entry=0x1365c40, sgroup_=...) at ../../../kate/src/kateapp.cpp:354
#19 0x00007fe46c883835 in KateSessionManager::loadSession (this=<optimized out>, session=...) at ../../../kate/src/session/katesessionmanager.cpp:200
#20 0x00007fe46c88495b in KateSessionManager::activateSession (this=0x13be3e0, session=..., closeAndSaveLast=closeAndSaveLast@entry=false, loadNew=160, loadNew@entry=true) at ../../../kate/src/session/katesessionmanager.cpp:161
#21 0x00007fe46c884de6 in KateSessionManager::activateSession (this=this@entry=0x13be3e0, name=..., closeAndSaveLast=closeAndSaveLast@entry=false, loadNew=loadNew@entry=true) at ../../../kate/src/session/katesessionmanager.cpp:223
#22 0x00007fe46c8854d4 in KateSessionManager::chooseSession (this=0x13be3e0) at ../../../kate/src/session/katesessionmanager.cpp:358
#23 0x00007fe46c850a31 in KateApp::startupKate (this=0x7fff8b7befa0) at ../../../kate/src/kateapp.cpp:153
#24 0x00007fe46c850e4d in KateApp::init (this=0x7fff8b7befa0) at ../../../kate/src/kateapp.cpp:108
#25 0x00007fe46c8998ba in kdemain (argc=2, argv=0x0) at ../../../kate/src/main.cpp:414
#26 0x00007fe46c479a40 in __libc_start_main (main=0x400720 <main(int, char**)>, argc=2, argv=0x7fff8b7bf108, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff8b7bf0f8) at libc-start.c:289
#27 0x0000000000400759 in _start ()

Reported using DrKonqi
Comment 1 Andrew 2015-06-17 12:40:07 UTC
See it on Fedora 22 x64. Crash happens while restoring previous session. "kate --startanon" launches fine.

kate-15.04.0-1.fc22.x86_64
qt5-qtbase-gui-5.4.2-2.fc22.x86_64

  GDB backtrace:
[New Thread 0x7ffff76a5700 (LWP 9979)]
Program received signal SIGSEGV, Segmentation fault.
0x000000361c77f720 in QWidget::hide() () from /lib64/libQt5Widgets.so.5
(gdb) bt
#0  0x000000361c77f720 in QWidget::hide() () from /lib64/libQt5Widgets.so.5
#1  0x000000362786a096 in KateTabBar::removeTab(int) () from /lib64/libkdeinit5_kate.so
#2  0x000000362785bcd9 in KateViewSpace::removeTab(KTextEditor::Document*, bool) [clone .constprop.75] () from /lib64/libkdeinit5_kate.so
#3  0x000000362785f420 in KateViewSpace::registerDocument(KTextEditor::Document*, bool) () from /lib64/libkdeinit5_kate.so
#4  0x0000003627861102 in KateViewSpace::restoreConfig(KateViewManager*, KConfigBase const*, QString const&) () from /lib64/libkdeinit5_kate.so
#5  0x0000003627858d78 in KateViewManager::restoreSplitter(KConfigBase const*, QString const&, QSplitter*, QString const&) () from /lib64/libkdeinit5_kate.so
#6  0x00000036278591f8 in KateViewManager::restoreViewConfiguration(KConfigGroup const&) () from /lib64/libkdeinit5_kate.so
#7  0x0000003627846ef3 in KateMainWindow::KateMainWindow(KConfig*, QString const&) () from /lib64/libkdeinit5_kate.so
#8  0x000000362782cb08 in KateApp::newMainWindow(KConfig*, QString const&) () from /lib64/libkdeinit5_kate.so
#9  0x000000362786f9ad in KateSessionManager::loadSession(QExplicitlySharedDataPointer<KateSession> const&) const () from /lib64/libkdeinit5_kate.so
#10 0x0000003627870c2b in KateSessionManager::activateSession(QExplicitlySharedDataPointer<KateSession>, bool, bool) () from /lib64/libkdeinit5_kate.so
#11 0x0000003627871376 in KateSessionManager::activateSession(QString const&, bool, bool) () from /lib64/libkdeinit5_kate.so
#12 0x0000003627871ac3 in KateSessionManager::chooseSession() () from /lib64/libkdeinit5_kate.so
#13 0x000000362782ee19 in KateApp::startupKate() () from /lib64/libkdeinit5_kate.so
#14 0x000000362782f35d in KateApp::init() () from /lib64/libkdeinit5_kate.so
#15 0x0000003627889189 in kdemain () from /lib64/libkdeinit5_kate.so
#16 0x000000314ba20790 in __libc_start_main () from /lib64/libc.so.6
#17 0x0000000000400a09 in _start ()
Comment 2 Andrew 2015-07-09 18:02:56 UTC
Still happens with kate-15.04.3-1.fc22.x86_64
Also have periodical crashes while usual work in Kate (both with some manual activity and not).
Comment 3 Christoph Feck 2015-09-23 17:58:20 UTC
*** Bug 350715 has been marked as a duplicate of this bug. ***
Comment 4 Christoph Cullmann 2015-10-09 17:37:29 UTC
Fixed together with the other one.

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