Bug 353798

Summary: Kate crashes while opening an empty file crated with dolphin
Product: [Applications] kate Reporter: Alfredo <infos>
Component: applicationAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: christoph
Priority: NOR    
Version First Reported In: 3.14.3   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Alfredo 2015-10-11 17:42:08 UTC
Using opensuse 13.2
Qt: 4.8.7
KDE: 4.14.9

Using Dolphin 15.04.0
press right mouse button -> New -> textfile
Opening this file with Kate 3.14.9
Kate crashes
Kwrite also

Reproducible: Always

Steps to Reproduce:
1. see Details
2.
3.
Comment 1 Alfredo 2015-10-18 14:33:27 UTC
additional some more infos:
Kate crashes when ever a white space is the first character in a file
Crash info:
Application: Kate (kate), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f605a150780 (LWP 4857))]

Thread 2 (Thread 0x7f603d5f6700 (LWP 4858)):
#0  0x00007f6058a1c05f in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f604b27149b in  () at /usr/lib64/libQtScript.so.4
#2  0x00007f604b2714d9 in  () at /usr/lib64/libQtScript.so.4
#3  0x00007f6058a180a4 in start_thread () at /lib64/libpthread.so.0
#4  0x00007f605778008d in clone () at /lib64/libc.so.6

Thread 1 (Thread 0x7f605a150780 (LWP 4857)):
[KCrash Handler]
#5  0x00007f6059309df1 in KSycocaEntry::name() const () at /usr/lib64/libkdecore.so.5
#6  0x00007f603eddc79f in Kate::TextBuffer::load(QString const&, bool&, bool&, bool) () at /usr/lib64/libkatepartinterfaces.so.4
#7  0x00007f603ee4dfce in KateBuffer::openFile(QString const&, bool) () at /usr/lib64/libkatepartinterfaces.so.4
#8  0x00007f603ee43502 in KateDocument::openFile() () at /usr/lib64/libkatepartinterfaces.so.4
#9  0x00007f604e28d0b7 in  () at /usr/lib64/libkparts.so.4
#10 0x00007f604e28e69e in KParts::ReadOnlyPart::openUrl(KUrl const&) () at /usr/lib64/libkparts.so.4
#11 0x00007f603ee3157e in KateDocument::openUrl(KUrl const&) () at /usr/lib64/libkatepartinterfaces.so.4
#12 0x00007f6044c15dff in  () at /usr/lib64/libkateinterfaces.so.4
#13 0x00007f6044c1616c in  () at /usr/lib64/libkateinterfaces.so.4
#14 0x00007f6044c245a1 in  () at /usr/lib64/libkateinterfaces.so.4
#15 0x00007f6044c0e9a9 in KateApp::startupKate() () at /usr/lib64/libkateinterfaces.so.4
#16 0x00007f6044c0f625 in KateApp::initKate() () at /usr/lib64/libkateinterfaces.so.4
#17 0x00007f6044c0f7f0 in KateApp::KateApp(KCmdLineArgs*) () at /usr/lib64/libkateinterfaces.so.4
#18 0x00007f6044e69abc in kdemain () at /usr/lib64/libkdeinit4_kate.so
#19 0x0000000000408815 in _start ()
Comment 2 Christoph Cullmann 2016-01-31 17:26:58 UTC
This is fixed with recent kf5 versions.