Bug 91248 - kate crashes if I open a diff file
Summary: kate crashes if I open a diff file
Status: RESOLVED DUPLICATE of bug 85938
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: 2.3
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-13 16:35 UTC by Rolf Eike Beer
Modified: 2004-10-14 19:17 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
my diff that crashes kate (68.94 KB, application/octet-stream)
2004-10-13 16:36 UTC, Rolf Eike Beer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rolf Eike Beer 2004-10-13 16:35:15 UTC
Version:           2.3 (using KDE 3.3.0, SuSE)
Compiler:          gcc version 3.3.1 (SuSE Linux)
OS:                Linux (i686) release 2.6.8-rc4

I tried to edit a long diff with Kate. It crashes every time I open the diff. It has something to do with the binary data at the end of the file (my make clean missed one object file) but kate does not crash if the diff only contains this file.
Comment 1 Rolf Eike Beer 2004-10-13 16:36:28 UTC
Created attachment 7860 [details]
my diff that crashes kate
Comment 2 Anders Lund 2004-10-13 20:29:35 UTC
Could you provide a backtrace please?
Comment 3 Dik Takken 2004-10-13 23:50:59 UTC
This file crashes Kate 100% reproducably on KDE 3.3.0, Gentoo. Unfortunately I don't have a debug build, but anyone should be able to reproduce this one.
Comment 4 Wilbert Berendsen 2004-10-14 08:32:10 UTC
my build got this (I think the crash occurs even before the highlighting kicks in):

Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 1819)]
[KCrash handler]
#4  0x40f24a60 in QLatin15Codec::toUnicode ()
   from /usr/lib/qt/lib/libqt-mt.so.3
#5  0x40f221ef in QTextStatelessDecoder::toUnicode ()
   from /usr/lib/qt/lib/libqt-mt.so.3
#6  0x4198c055 in KateFileLoader::open ()
   from /opt/kde3/lib/kde3/libkatepart.so
#7  0x419865bd in KateBuffer::openFile ()
   from /opt/kde3/lib/kde3/libkatepart.so
#8  0x419b3223 in KateDocument::openFile ()
   from /opt/kde3/lib/kde3/libkatepart.so
#9  0x419b308e in KateDocument::openFile ()
   from /opt/kde3/lib/kde3/libkatepart.so
#10 0x419b28cb in KateDocument::openURL ()
   from /opt/kde3/lib/kde3/libkatepart.so
#11 0x41747702 in KWrite::loadURL () from /opt/kde3/lib/libkdeinit_kwrite.so
#12 0x41749cd2 in kdemain () from /opt/kde3/lib/libkdeinit_kwrite.so
#13 0x41738976 in kdeinitmain () from /opt/kde3/lib/kde3/kwrite.so
#14 0x0804cbfb in launch ()
#15 0x0804e104 in handle_launcher_request ()
#16 0x0804e647 in handle_requests ()
#17 0x0804f688 in main ()
Comment 5 Dominik Haumann 2004-10-14 19:17:42 UTC
Ok, true. Switch to UTF-8 encoding and it won't crash anymore afaik.
Btw: I saw it with my own eyes at akademy - on cullmanns notebook kate does not crash *strange*

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