Bug 315690 - Kate crashed when opening a file
Summary: Kate crashed when opening a file
Status: RESOLVED NOT A BUG
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
: 340920 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-02-23 14:52 UTC by Sandro Mani
Modified: 2014-11-14 20:11 UTC (History)
2 users (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 Sandro Mani 2013-02-23 14:52:28 UTC
Application: kate (3.10.0)
KDE Platform Version: 4.10.00
Qt Version: 4.8.4
Operating System: Linux 3.7.5-201.fc18.x86_64 x86_64
Distribution (Platform): Fedora RPMs

-- Information about the crash:
- What I was doing when the application crashed:
Opened a file

This is the first time I've seen this issue. Besides the fact that kate has been open for a number of days and that many documents were opened / closed in that time frame, I cannot think of anything else worth noting.

The crash does not seem to be reproducible.

-- Backtrace:
Application: Kate (kdeinit4), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
81	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[Current thread is 1 (Thread 0x7f64062e08c0 (LWP 22223))]

Thread 3 (Thread 0x7f63df6ae700 (LWP 22224)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f63eed1671b in memset (__len=48, __ch=0, __dest=<optimized out>) at /usr/include/bits/string3.h:84
#2  QTWTF::NewSpan (p=140067188330240, len=<optimized out>) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1094
#3  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f635acd8700 (LWP 26040)):
#0  0x00007f63ff68a492 in g_cond_impl_new () at gthread-posix.c:645
#1  0x00007f63ff64a819 in g_main_context_prepare (context=0x7f63ff68a739 <g_rec_mutex_trylock+9>, priority=0x7f635acd7ba8) at gmain.c:3326
#2  0x00007f63ff64b083 in g_main_context_iterate (context=0x7f634c0009a0, block=1, dispatch=1, self=<optimized out>) at gmain.c:3679
#3  0x00007f63ff64b26c in g_main_context_iteration (context=0x7f634c0009a0, may_block=1523415844) at gmain.c:3758
#4  0x00007f6404cbfdb6 in ?? () at kernel/qeventdispatcher_glib.cpp:272 from /lib64/libQtCore.so.4
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f64062e08c0 (LWP 22223)):
[KCrash Handler]
#6  d_func (this=0x0) at /usr/src/debug/kdelibs-4.10.0/kdecore/sycoca/ksycocaentry.h:154
#7  KSycocaEntry::name (this=0x0) at /usr/src/debug/kdelibs-4.10.0/kdecore/sycoca/ksycocaentry.cpp:159
#8  0x00007f63e121e7cf in TextLoader (proberType=<optimized out>, filename=..., this=0x7fff5382f660) at /usr/src/debug/kate-4.10.0/part/buffer/katetextloader.h:71
#9  Kate::TextBuffer::load (this=0x4f9bf60, filename=..., encodingErrors=@0x4f9c028: false, tooLongLinesWrapped=@0x4f9c029: false, enforceTextCodec=false) at /usr/src/debug/kate-4.10.0/part/buffer/katetextbuffer.cpp:534
#10 0x00007f63e128741c in KateBuffer::openFile (this=0x4f9bf60, m_file=..., enforceTextCodec=<optimized out>) at /usr/src/debug/kate-4.10.0/part/document/katebuffer.cpp:182
#11 0x00007f63e127cbe2 in KateDocument::openFile (this=0x4f67d10) at /usr/src/debug/kate-4.10.0/part/document/katedocument.cpp:1955
#12 0x00007f63f13aa957 in KParts::ReadOnlyPartPrivate::openLocalFile (this=this@entry=0x4bb66c0) at /usr/src/debug/kdelibs-4.10.0/kparts/part.cpp:591
#13 0x00007f63f13abf3e in KParts::ReadOnlyPart::openUrl (this=<optimized out>, url=...) at /usr/src/debug/kdelibs-4.10.0/kparts/part.cpp:555
#14 0x00007f63e70fd317 in KateDocManager::openUrl (this=0x1379e50, url=..., encoding=..., isTempFile=<optimized out>, docInfo=...) at /usr/src/debug/kate-4.10.0/kate/app/katedocmanager.cpp:284
#15 0x00007f63e710c18f in KateViewManager::openUrl (this=0x15d1840, url=..., encoding=..., activate=<optimized out>, isTempFile=<optimized out>, docInfo=...) at /usr/src/debug/kate-4.10.0/kate/app/kateviewmanager.cpp:292
#16 0x00007f63e70f5269 in KateApp::openDocUrl (this=0x7fff53830a20, url=..., encoding=..., isTempFile=<optimized out>) at /usr/src/debug/kate-4.10.0/kate/app/kateapp.cpp:345
#17 0x00007f63e70f21bb in KateAppAdaptor::tokenOpenUrl (this=0x150ddc0, url=..., encoding=..., isTempFile=<optimized out>) at /usr/src/debug/kate-4.10.0/kate/app/kateappadaptor.cpp:115
#18 0x00007f63e70f262c in KateAppAdaptor::qt_static_metacall (_o=0x7fff5382f5b0, _o@entry=0x150ddc0, _id=0, _id@entry=11, _a=0x7fff5382fec0, _c=<optimized out>) at /usr/src/debug/kate-4.10.0/x86_64-redhat-linux-gnu/kate/app/kateappadaptor.moc:106
#19 0x00007f63e70f26b3 in qt_static_metacall (_a=0x7fff5382fec0, _id=11, _c=QMetaObject::InvokeMetaMethod, _o=0x150ddc0) at /usr/src/debug/kate-4.10.0/x86_64-redhat-linux-gnu/kate/app/kateappadaptor.moc:152
#20 KateAppAdaptor::qt_metacall (this=0x150ddc0, _c=QMetaObject::InvokeMetaMethod, _id=11, _a=0x7fff5382fec0) at /usr/src/debug/kate-4.10.0/x86_64-redhat-linux-gnu/kate/app/kateappadaptor.moc:153
#21 0x00007f640501cea6 in QDBusConnectionPrivate::deliverCall (this=this@entry=0x1150940, object=object@entry=0x150ddc0, msg=..., metaTypes=..., slotIdx=15) at qdbusintegrator.cpp:951
#22 0x00007f640501e01b in QDBusConnectionPrivate::activateCall (this=0x1150940, object=0x150ddc0, flags=337, msg=...) at qdbusintegrator.cpp:863
#23 0x00007f640501ea8d in QDBusConnectionPrivate::activateObject (this=0x1152360, node=..., msg=..., pathStartPos=<optimized out>) at qdbusintegrator.cpp:1444
#24 0x00007f640501eb5b in QString (this=0x7fff53830260) at ../../src/corelib/tools/qstring.h:879
#25 ObjectTreeNode (this=0x7fff53830260) at qdbusconnection_p.h:141
#26 QDBusConnectionPrivate::handleObjectCall (this=0x7fff5382f5b0, msg=...) at qdbusintegrator.cpp:1469
#27 0x00007f6403e1e5dc in QApplication::topLevelWidgets () at kernel/qapplication.cpp:2162
#28 0x0000000004fd8a60 in ?? ()
#29 0x00007fff53830a20 in ?? ()
#30 0x00007fff53830a20 in ?? ()
#31 0x00000000010511d0 in ?? ()
#32 0x00007f6403e24a50 in QApplication::notify (this=0x7fff53830a20, receiver=0x7fff53830a20, e=0x4fd8a60) at kernel/qapplication.cpp:4348
#33 0x00007f6405cc3f0a in KApplication::notify (this=0x7fff53830a20, receiver=0x7fff53830a20, event=0x4fd8a60) at /usr/src/debug/kdelibs-4.10.0/kdeui/kernel/kapplication.cpp:311
#34 0x00007f6404c9305d in ?? () at kernel/qcoreapplication.cpp:881 from /lib64/libQtCore.so.4
#35 0x0000000000000001 in ?? ()
#36 0x0000000004a3cc30 in ?? ()
#37 0x00007fff53830a20 in ?? ()
#38 0x0000000004fd8a60 in ?? ()
#39 0x00007fff538304bf in ?? ()
#40 0x0000000004a3cc30 in ?? ()
#41 0x0000000004dc0cc0 in ?? ()
#42 0x0000000004fd8a60 in ?? ()
#43 0x0000000004dd5260 in ?? ()
#44 0x00000000010511d0 in ?? ()
#45 0x0000000000000000 in ?? ()

Reported using DrKonqi
Comment 1 Dominik Haumann 2013-02-24 20:26:13 UTC
Kate::TextLoader acesses in line 71:
        m_mimeType = KMimeType::findByPath (filename, 0, false)->name ();

So this call finally leads to the crash, since this = 0
KSycocaEntry::name (this=0x0).

I'd say this is a very strange issue and looks like a broken KDE installation. Did you just update?

I'll close this, as I don't think this is a bug in Kate, and probably not even in kdelibs.
If you get this again and if you then can provide further info, please let us know.
Comment 2 Sandro Mani 2013-02-24 23:27:39 UTC
I've had the system running for ca 2 weeks without reboots, so it might well be an issue related to a component having been updated, though the last series of updates was ca. a day before the crash occurred, and I've opened and closed a number of files between then and the crash. But yeah, this = 0x0 is definitely strange, I'll close the bug and report back if I encounter it again.
Comment 3 jeffrey.h.parker 2013-05-20 16:42:48 UTC
I've had kate crash repeatedly and it always seems to be when I hit Cntl-O to load a new file.
Comment 4 Dominik Haumann 2014-11-14 20:11:36 UTC
*** Bug 340920 has been marked as a duplicate of this bug. ***