Bug 193833 - Kate crushed when try to open index.html
Summary: Kate crushed when try to open index.html
Status: RESOLVED DUPLICATE of bug 178789
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-24 03:29 UTC by Andrey
Modified: 2009-05-24 18:08 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 Andrey 2009-05-24 03:29:52 UTC
Version:           3.2.2 (using 4.2.2 (KDE 4.2.2), Kubuntu packages)
Compiler:          cc
OS:                Linux (i686) release 2.6.28-11-generic

It seems like Kate crashes when try to open a file called "index.html" which is in cp1251 incoding and contained russian letters.
Comment 1 Dario Andres 2009-05-24 14:52:05 UTC
I think I have fixed this bug some days ago. 

Just to be sure: If you can reproduce the crash at will, may you read http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports and post a complete backtrace here? 
You need to install the "kdelibs5-dbg" package.
Thanks
Comment 2 Andrey 2009-05-24 17:22:45 UTC
How did you fix it?
I can't even run kate now. 
And the backtrce crushes too.
------------------------

This backtrace appears to be of no use.
This is probably because your packages are built in a way which prevents creation of proper backtraces, or the stack frame was seriously corrupted in the crash

(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 0xb59bf700 (LWP 4769)]
(no debugging symbols found)
(no debugging symbols found)
0xb7f7b430 in __kernel_vsyscall ()
[Current thread is 0 (process 4769)]

Thread 1 (Thread 0xb59bf700 (LWP 4769)):
#0  0xb7f7b430 in __kernel_vsyscall ()
#1  0xb6656780 in nanosleep () from /lib/tls/i686/cmov/libc.so.6
#2  0xb66565be in sleep () from /lib/tls/i686/cmov/libc.so.6
#3  0xb7aee8b2 in ?? () from /usr/lib/libkdeui.so.5
#4  0xb7aef274 in KCrash::defaultCrashHandler () from /usr/lib/libkdeui.so.5
#5  <signal handler called>
#6  0xb417dc73 in ?? () from /usr/lib/kde4/katepart.so
#7  0xb417969d in ?? () from /usr/lib/kde4/katepart.so
#8  0xb415fcb5 in ?? () from /usr/lib/kde4/katepart.so
#9  0xb7eb596a in KParts::ReadOnlyPart::openUrl () from /usr/lib/libkparts.so.4
#10 0xb41614f3 in ?? () from /usr/lib/kde4/katepart.so
#11 0xb7f0a7f1 in ?? () from /usr/lib/libkateinterfaces.so.4
#12 0xb7f314ff in ?? () from /usr/lib/libkateinterfaces.so.4
#13 0xb7f37d20 in ?? () from /usr/lib/libkateinterfaces.so.4
#14 0xb7efdbec in KateApp::startupKate () from /usr/lib/libkateinterfaces.so.4
#15 0xb7efed53 in KateApp::initKate () from /usr/lib/libkateinterfaces.so.4
#16 0xb7eff05c in KateApp::KateApp () from /usr/lib/libkateinterfaces.so.4
#17 0xb7f5d421 in kdemain () from /usr/lib/libkdeinit4_kate.so
#18 0x08048672 in _start ()
#0  0xb7f7b430 in __kernel_vsyscall ()
Comment 3 Dario Andres 2009-05-24 17:47:48 UTC
I fixed it in the development branch of the KDE code. The fix should be in KDE4.2.4 and 4.3. 

Please install the "kdelibs5-dbg" package to get a better backtrace. Thanks
Comment 4 Andrey 2009-05-24 18:03:49 UTC
Here is what I have after installing kdelibs5-dbg.
This is when I try to run kate from terminal. (It can't be open at all from K-menu.)

Application: Kate (kate), signal SIGSEGV

Thread 1 (Thread 0xb5989700 (LWP 5662)):
[KCrash Handler]
#6  0xb4147c73 in KateFileLoader::open (this=0xbf861c74) at /build/buildd/kde4libs-4.2.2/kate/document/katebuffer.cpp:180
#7  0xb414369d in KateBuffer::openFile (this=0x97895f8, m_file=@0xbf861f94) at /build/buildd/kde4libs-4.2.2/kate/document/katebuffer.cpp:529
#8  0xb4129cb5 in KateDocument::openFile (this=0x9789398) at /build/buildd/kde4libs-4.2.2/kate/document/katedocument.cpp:3376
#9  0xb7e7f96a in KParts::ReadOnlyPart::openUrl (this=0x9789398, url=@0xbf862108) at /build/buildd/kde4libs-4.2.2/kparts/part.cpp:558
#10 0xb412b4f3 in KateDocument::readSessionConfig (this=0x9789398, kconfig=@0xbf8621dc) at /build/buildd/kde4libs-4.2.2/kate/document/katedocument.cpp:3081
#11 0xb7ed47f1 in ?? () from /usr/lib/libkateinterfaces.so.4
#12 0xb7efb4ff in ?? () from /usr/lib/libkateinterfaces.so.4
#13 0xb7f01d20 in ?? () from /usr/lib/libkateinterfaces.so.4
#14 0xb7ec7bec in KateApp::startupKate () from /usr/lib/libkateinterfaces.so.4
#15 0xb7ec8d53 in KateApp::initKate () from /usr/lib/libkateinterfaces.so.4
#16 0xb7ec905c in KateApp::KateApp () from /usr/lib/libkateinterfaces.so.4
#17 0xb7f27421 in kdemain () from /usr/lib/libkdeinit4_kate.so
#18 0x08048672 in _start ()




Also I think that bug is about opening saved sessions, not just "index.html" 
In principal I can run kate when I specify filename to open:

~$ kate Web/index.html &
[2] 5873
~$ Calling appendChild() on a null node does nothing.
Comment 5 Dario Andres 2009-05-24 18:08:30 UTC
Indeed, it is the same crash I fixed some days ago, the fix will be on KDE4.2.4 and 4.3
Marking as duplicate of bug 178789
Thanks

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