Bug 348977 - Kate crashes trying to open file with <SPC><LF>
Summary: Kate crashes trying to open file with <SPC><LF>
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2015-06-10 13:49 UTC by bib
Modified: 2015-10-08 20:58 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Other file affected by this bug (517 bytes, text/plain)
2015-08-22 13:55 UTC, artghio
Details
New crash information added by DrKonqi (2.51 KB, text/plain)
2015-08-29 16:33 UTC, Andreas Karrenbauer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bib 2015-06-10 13:49:00 UTC
Application: kate (3.14.8)
KDE Platform Version: 4.14.8
Qt Version: 4.8.6
Operating System: Linux 3.16.7-21-desktop x86_64
Distribution: "openSUSE 13.2 (Harlequin) (x86_64)"

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

Trying to open a files which contains nothing more than a space & a LF...


b@eth7 ~/Arduino/snmp$ od -h r5.txt 
0000000 0a20
0000002

The crash can be reproduced every time.

-- Backtrace:
Application: Kate (kate), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f93d6a0c7c0 (LWP 9737))]

Thread 2 (Thread 0x7f93c1cd5700 (LWP 9738)):
#0  0x00007f93d3bb605f in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f93c39e48cb in  () at /usr/lib64/libQtScript.so.4
#2  0x00007f93c39e4909 in  () at /usr/lib64/libQtScript.so.4
#3  0x00007f93d3bb20a4 in start_thread () at /lib64/libpthread.so.0
#4  0x00007f93d638608d in clone () at /lib64/libc.so.6

Thread 1 (Thread 0x7f93d6a0c7c0 (LWP 9737)):
[KCrash Handler]
#5  0x00007f93d5308df1 in KSycocaEntry::name() const () at /usr/lib64/libkdecore.so.5
#6  0x00007f93c3fe979f in Kate::TextBuffer::load(QString const&, bool&, bool&, bool) () at /usr/lib64/libkatepartinterfaces.so.4
#7  0x00007f93c405afce in KateBuffer::openFile(QString const&, bool) () at /usr/lib64/libkatepartinterfaces.so.4
#8  0x00007f93c4050502 in KateDocument::openFile() () at /usr/lib64/libkatepartinterfaces.so.4
#9  0x00007f93d042d0b7 in  () at /usr/lib64/libkparts.so.4
#10 0x00007f93d042e69e in KParts::ReadOnlyPart::openUrl(KUrl const&) () at /usr/lib64/libkparts.so.4
#11 0x00007f93c403e57e in KateDocument::openUrl(KUrl const&) () at /usr/lib64/libkatepartinterfaces.so.4
#12 0x00007f93d4ec8dff in  () at /usr/lib64/libkateinterfaces.so.4
#13 0x00007f93d4ec916c in  () at /usr/lib64/libkateinterfaces.so.4
#14 0x00007f93d4ed75a1 in  () at /usr/lib64/libkateinterfaces.so.4
#15 0x00007f93d4ec19a9 in KateApp::startupKate() () at /usr/lib64/libkateinterfaces.so.4
#16 0x00007f93d4ec2625 in KateApp::initKate() () at /usr/lib64/libkateinterfaces.so.4
#17 0x00007f93d4ec27f0 in KateApp::KateApp(KCmdLineArgs*) () at /usr/lib64/libkateinterfaces.so.4
#18 0x00007f93d664dabc in kdemain () at /usr/lib64/libkdeinit4_kate.so
#19 0x00007f93d62c2b05 in __libc_start_main () at /lib64/libc.so.6
#20 0x000000000040075e in _start ()

Possible duplicates by query: bug 348406, bug 345189, bug 344826, bug 342286, bug 341680.

Reported using DrKonqi
Comment 2 artghio 2015-08-22 13:00:29 UTC
I'm affected by this bug too. The file can be created simply by doing "Create New" > "Text File..." in Dolphin. Trying to open other files does not crash Kate.

I'm running Debian testing, Kate 3.14.2, KDE Development Platform 4.14.2.
Comment 3 artghio 2015-08-22 13:55:14 UTC
Created attachment 94170 [details]
Other file affected by this bug

I discovered another file which crashes Kate. If I try to remove the file extension from the file name, in Dolphin the file is of type "unknown"; if I try to open its properties through the context menu, Dolphin crashes.
Comment 4 Andreas Karrenbauer 2015-08-29 16:33:34 UTC
Created attachment 94270 [details]
New crash information added by DrKonqi

kate (3.14.9) on KDE Platform 4.14.9 using Qt 4.8.6

- What I was doing when the application crashed:
I opened a file and it crashed. While reporting the bug and checking for duplicate reports, I found this one, created a file with a space plus a line feed and successfully reproduced the crash.

-- Backtrace (Reduced):
#5  0x00007f643c861df1 in KSycocaEntry::name() const () at /usr/lib64/libkdecore.so.5
#6  0x00007f642ae7b79f in Kate::TextBuffer::load(QString const&, bool&, bool&, bool) () at /usr/lib64/libkatepartinterfaces.so.4
#7  0x00007f642aeecfce in KateBuffer::openFile(QString const&, bool) () at /usr/lib64/libkatepartinterfaces.so.4
#8  0x00007f642aee2502 in KateDocument::openFile() () at /usr/lib64/libkatepartinterfaces.so.4
#9  0x00007f643797f0b7 in  () at /usr/lib64/libkparts.so.4
Comment 5 Christoph Cullmann 2015-10-08 20:58:17 UTC
Not reproducable any more with Kate/KWrite based on KF5