Bug 345602 - kate crashes in projects plugin
Summary: kate crashes in projects plugin
Status: RESOLVED DUPLICATE of bug 352627
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: 5.0.0
Platform: Other Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-28 07:26 UTC by Franz Trischberger
Modified: 2015-09-13 08:31 UTC (History)
0 users

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 Franz Trischberger 2015-03-28 07:26:23 UTC
Opening any file controlled by git or activating projects plugin while a git-controlled file is open crashes kate.
There seems to be an error about config file not found, but I have no idea which file that should be...
"The global/xdg file 'config' doesn't exist: file or directory not found."

Reproducible: Always


Actual Results:  
Kate crashes in libgit:
Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7fffdc602700 (LWP 14136)]
0x00007ffff77d5a57 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:55
55      ../sysdeps/unix/sysv/linux/raise.c: Datei oder Verzeichnis nicht gefunden.
(gdb) bt
#0  0x00007ffff77d5a57 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:55
#1  0x00007ffff77d6dea in __GI_abort () at abort.c:89
#2  0x00007ffff78151e0 in __libc_message (do_abort=do_abort@entry=2, 
    fmt=fmt@entry=0x7ffff79095f8 "*** Error in `%s': %s: 0x%s ***\n") at ../sysdeps/posix/libc_fatal.c:175
#3  0x00007ffff781a6ce in malloc_printerr (action=3, str=0x7ffff7905847 "free(): invalid pointer", ptr=<optimized out>)
    at malloc.c:4958
#4  0x00007ffff781aebb in _int_free (av=<optimized out>, p=<optimized out>, have_lock=0) at malloc.c:3829
#5  0x00007fffdc83790a in git__free (ptr=<optimized out>)
    at /var/tmp/portage/dev-libs/libgit2-0.22.2/work/libgit2-0.22.2/src/util.h:98
#6  set_error (error_class=error_class@entry=2, 
    string=0x7fffd4003a40 "The global/xdg file 'config' doesn't exist: Datei oder Verzeichnis nicht gefunden")
    at /var/tmp/portage/dev-libs/libgit2-0.22.2/work/libgit2-0.22.2/src/errors.c:26
#7  0x00007fffdc837a55 in giterr_set (error_class=error_class@entry=2, 
    string=string@entry=0x7fffdc8acc00 "The %s file '%s' doesn't exist")
    at /var/tmp/portage/dev-libs/libgit2-0.22.2/work/libgit2-0.22.2/src/errors.c:76
#8  0x00007fffdc885949 in git_sysdir_find_in_dirlist (path=path@entry=0x7fffdc6017d0, 
    name=name@entry=0x7fffdc8af734 "config", which=which@entry=GIT_SYSDIR_XDG, 
    label=label@entry=0x7fffdc8afeb4 "global/xdg")
    at /var/tmp/portage/dev-libs/libgit2-0.22.2/work/libgit2-0.22.2/src/sysdir.c:225
#9  0x00007fffdc885c81 in git_sysdir_find_xdg_file (path=path@entry=0x7fffdc6017d0, 
    filename=filename@entry=0x7fffdc8af734 "config")
    at /var/tmp/portage/dev-libs/libgit2-0.22.2/work/libgit2-0.22.2/src/sysdir.c:243
#10 0x00007fffdc872099 in git_config_find_xdg (path=path@entry=0x7fffdc6017d0)
    at /var/tmp/portage/dev-libs/libgit2-0.22.2/work/libgit2-0.22.2/src/config.c:992
#11 0x00007fffdc88e353 in git_repository_config__weakptr (out=out@entry=0x7fffdc601870, repo=repo@entry=0x7fffd4003830)
    at /var/tmp/portage/dev-libs/libgit2-0.22.2/work/libgit2-0.22.2/src/repository.c:592
#12 0x00007fffdc88e9d0 in git_repository_config_snapshot (out=out@entry=0x7fffdc601890, repo=repo@entry=0x7fffd4003830)
    at /var/tmp/portage/dev-libs/libgit2-0.22.2/work/libgit2-0.22.2/src/repository.c:637
#13 0x00007fffdc88eb33 in git_repository_open_ext (repo_ptr=0x7fffdc6019b0, start_path=<optimized out>, 
    flags=<optimized out>, ceiling_dirs=<optimized out>)
    at /var/tmp/portage/dev-libs/libgit2-0.22.2/work/libgit2-0.22.2/src/repository.c:469
#14 0x00007fffdcd73ee2 in KateProjectWorker::filesFromGit (this=<optimized out>, dir=..., recursive=<optimized out>)
    at /var/tmp/portage/kde-apps/kate-14.12.3/work/kate-14.12.3/addons/project/kateprojectworker.cpp:277
#15 0x00007fffdcd73650 in KateProjectWorker::findFiles (this=0x3738, dir=..., filesEntry=...)
    at /var/tmp/portage/kde-apps/kate-14.12.3/work/kate-14.12.3/addons/project/kateprojectworker.cpp:224
#16 0x00007fffdcd72eed in KateProjectWorker::loadFilesEntry (this=0x1215cb0, parent=0x7fffd40034a0, filesEntry=..., 
    file2Item=0x7fffd40034e0)
    at /var/tmp/portage/kde-apps/kate-14.12.3/work/kate-14.12.3/addons/project/kateprojectworker.cpp:168
#17 0x00007fffdcd72c11 in KateProjectWorker::loadProject (this=<optimized out>, parent=<optimized out>, project=..., 
    file2Item=0x7fffd40034e0)
    at /var/tmp/portage/kde-apps/kate-14.12.3/work/kate-14.12.3/addons/project/kateprojectworker.cpp:99
#18 0x00007fffdcd725ac in KateProjectWorker::run (this=0x1215cb0)
    at /var/tmp/portage/kde-apps/kate-14.12.3/work/kate-14.12.3/addons/project/kateprojectworker.cpp:56
#19 0x00007fffdc8eb4e4 in ThreadWeaver::Executor::run (this=0x3732, job=..., thread=0x6)
    at /var/tmp/portage/kde-frameworks/threadweaver-5.8.0/work/threadweaver-5.8.0/src/executor.cpp:52
#20 0x00007fffdc8ea24f in ThreadWeaver::Job::execute (this=<optimized out>, self=..., th=0x123d6c0)
    at /var/tmp/portage/kde-frameworks/threadweaver-5.8.0/work/threadweaver-5.8.0/src/job.cpp:83
#21 0x00007fffdc8e9e9d in ThreadWeaver::Thread::run (this=0x123d6c0)
    at /var/tmp/portage/kde-frameworks/threadweaver-5.8.0/work/threadweaver-5.8.0/src/thread.cpp:114
#22 0x00007ffff3c6716e in QThreadPrivate::start (arg=0x123d6c0) at thread/qthread_unix.cpp:337
#23 0x00007ffff0b3d2c4 in start_thread (arg=0x7fffdc602700) at pthread_create.c:310
#24 0x00007ffff788c2dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
Comment 1 Dominik Haumann 2015-09-13 08:31:50 UTC

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