Bug 194091 - Kate crashes on changing encoding on certain file
Summary: Kate crashes on changing encoding on certain file
Status: RESOLVED DUPLICATE of bug 178789
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-25 23:10 UTC by Alexey Chernov
Modified: 2009-05-25 23:24 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
The file causes crash (19.67 KB, application/octet-stream)
2009-05-25 23:11 UTC, Alexey Chernov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Chernov 2009-05-25 23:10:13 UTC
Version:            (using KDE 4.2.3)
Compiler:          GCC 4.3.2 Target: x86_64-unknown-linux-gnu Configured with:  ../gcc-4.3.2/configure --prefix=/usr --libexecdir=/usr/lib --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++,fortran,objc,treelang --disable-multilib --enable-c99 --enable-long-long Thread model: posix
OS:                Linux
Installed from:    Compiled From Sources

Kate crashes on changing encoding of the file. It is opened in the wrong encoding and when I change it to Cyrillic - cp1251 Kate crashes. 100% reproducible for me. Crash report will follow and file will be attached.
Comment 1 Alexey Chernov 2009-05-25 23:10:45 UTC
Приложение: Kate (kate), сигнал SIGSEGV
Using host libthread_db library "/lib/libthread_db.so.1".
0x00007f798928b640 in __nanosleep_nocancel () from /lib/libc.so.6

Thread 1 (Thread 0x7f798cd4c700 (LWP 4829)):
[KCrash Handler]
#5  0x00007f79798bf99f in KateFileLoader::errorsIfUtf8 (this=0x7fff94d89210, 
    data=0x14a1668 "    #\r\n    # ��������!\r\n    #\r\n    # ������ ���� ��� ������������ �������������. ����� ���������, ��������� � \r\n    # ����, ���������� ����� ����������� ���������. ���� �� ������ ��������\r\n    # �����"..., length=20142) at /usr/src/packages/kde4/4.2.3/kdelibs-4.2.3/kate/document/katebuffer.cpp:180
#6  0x00007f79798c1879 in KateFileLoader::open (this=0x7fff94d89210) at /usr/src/packages/kde4/4.2.3/kdelibs-4.2.3/kate/document/katebuffer.cpp:126
#7  0x00007f79798bddd8 in KateBuffer::openFile (this=0xfbb260, m_file=@0x7fff94d89690) at /usr/src/packages/kde4/4.2.3/kdelibs-4.2.3/kate/document/katebuffer.cpp:529
#8  0x00007f79798a8d97 in KateDocument::openFile (this=0xfb71a0) at /usr/src/packages/kde4/4.2.3/kdelibs-4.2.3/kate/document/katedocument.cpp:3376
#9  0x00007f798c5ae5a7 in KParts::ReadOnlyPart::openUrl (this=0xfb71a0, url=@0x7fff94d89890) at /usr/src/packages/kde4/4.2.3/kdelibs-4.2.3/kparts/part.cpp:558
#10 0x00007f797989ece0 in KateDocument::documentReload (this=0xfb71a0) at /usr/src/packages/kde4/4.2.3/kdelibs-4.2.3/kate/document/katedocument.cpp:5297
#11 0x00007f797992921e in KateViewEncodingAction::qt_metacall (this=0x129b3e0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff94d89d80)
    at /usr/src/packages/kde4/4.2.3/kdelibs-4.2.3/build/kate/kateviewhelpers.moc:232
#12 0x00007f7989d58582 in QMetaObject::activate (sender=0x129b3e0, from_signal_index=<value optimized out>, to_signal_index=32, argv=0x134a680) at kernel/qobject.cpp:3111
#13 0x00007f7979927691 in KateViewEncodingAction::triggered (this=0x0, _t1=KEncodingProber::Universal) at /usr/src/packages/kde4/4.2.3/kdelibs-4.2.3/build/kate/kateviewhelpers.moc:287
#14 0x00007f798bc38074 in KSelectAction::qt_metacall (this=0x129b3e0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff94d89f10)
    at /usr/src/packages/kde4/4.2.3/kdelibs-4.2.3/build/kdeui/kselectaction.moc:109
#15 0x00007f79799290d5 in KateViewEncodingAction::qt_metacall (this=0x0, _c=21632616, _id=20142, _a=0x134a680) at /usr/src/packages/kde4/4.2.3/kdelibs-4.2.3/build/kate/kateviewhelpers.moc:221
#16 0x00007f7989d58582 in QMetaObject::activate (sender=0x129baa0, from_signal_index=<value optimized out>, to_signal_index=4, argv=0x134a680) at kernel/qobject.cpp:3111
#17 0x00007f798a8bd95f in QActionGroup::triggered (this=0x0, _t1=0x12aecb0) at .moc/release-shared/moc_qactiongroup.cpp:140
#18 0x00007f798a8be167 in QActionGroupPrivate::_q_actionTriggered (this=<value optimized out>) at kernel/qactiongroup.cpp:87
#19 0x00007f798a8be3b1 in QActionGroup::qt_metacall (this=0x129baa0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff94d8a060) at .moc/release-shared/moc_qactiongroup.cpp:95
#20 0x00007f7989d58582 in QMetaObject::activate (sender=0x12aecb0, from_signal_index=<value optimized out>, to_signal_index=6, argv=0x134a680) at kernel/qobject.cpp:3111
#21 0x00007f798a8b8e67 in QAction::triggered (this=0x0, _t1=true) at .moc/release-shared/moc_qaction.cpp:236
#22 0x00007f798a8ba2d4 in QAction::activate (this=0x12aecb0, event=<value optimized out>) at kernel/qaction.cpp:1160
#23 0x00007f798bc3741b in KSelectAction::actionTriggered (this=0x12aecb0, action=0x12b4380) at /usr/src/packages/kde4/4.2.3/kdelibs-4.2.3/kdeui/actions/kselectaction.cpp:309
#24 0x00007f798bc38074 in KSelectAction::qt_metacall (this=0x12aecb0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff94d8a250)
    at /usr/src/packages/kde4/4.2.3/kdelibs-4.2.3/build/kdeui/kselectaction.moc:109
#25 0x00007f7989d58582 in QMetaObject::activate (sender=0x12b1be0, from_signal_index=<value optimized out>, to_signal_index=4, argv=0x134a680) at kernel/qobject.cpp:3111
#26 0x00007f798a8bd95f in QActionGroup::triggered (this=0x0, _t1=0x12b4380) at .moc/release-shared/moc_qactiongroup.cpp:140
#27 0x00007f798a8be167 in QActionGroupPrivate::_q_actionTriggered (this=<value optimized out>) at kernel/qactiongroup.cpp:87
#28 0x00007f798a8be3b1 in QActionGroup::qt_metacall (this=0x12b1be0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff94d8a3a0) at .moc/release-shared/moc_qactiongroup.cpp:95
#29 0x00007f7989d58582 in QMetaObject::activate (sender=0x12b4380, from_signal_index=<value optimized out>, to_signal_index=6, argv=0x134a680) at kernel/qobject.cpp:3111
#30 0x00007f798a8b8e67 in QAction::triggered (this=0x0, _t1=true) at .moc/release-shared/moc_qaction.cpp:236
#31 0x00007f798a8ba2d4 in QAction::activate (this=0x12b4380, event=<value optimized out>) at kernel/qaction.cpp:1160
#32 0x00007f798ace629d in QMenuPrivate::activateCausedStack (this=0x12b1e30, causedStack=@0x7fff94d8a4c0, action=0x12b4380, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:967
#33 0x00007f798acec26e in QMenuPrivate::activateAction (this=0x12b1e30, action=0x12b4380, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1060
#34 0x00007f798bd9a2e5 in KMenu::mouseReleaseEvent (this=0x12b1df0, e=0x7fff94d8b010) at /usr/src/packages/kde4/4.2.3/kdelibs-4.2.3/kdeui/widgets/kmenu.cpp:454
#35 0x00007f798a90fd8f in QWidget::event (this=0x12b1df0, event=0x7fff94d8b010) at kernel/qwidget.cpp:7521
#36 0x00007f798aceec0b in QMenu::event (this=0x12b1df0, e=0x7fff94d8b010) at widgets/qmenu.cpp:2353
#37 0x00007f798a8beead in QApplicationPrivate::notify_helper (this=0xcb1ee0, receiver=0x12b1df0, e=0x7fff94d8b010) at kernel/qapplication.cpp:4057
#38 0x00007f798a8c780c in QApplication::notify (this=<value optimized out>, receiver=0x12b1df0, e=0x7fff94d8b010) at kernel/qapplication.cpp:3759
#39 0x00007f798bce02b1 in KApplication::notify (this=0x7fff94d8ce60, receiver=0x12b1df0, event=0x7fff94d8b010) at /usr/src/packages/kde4/4.2.3/kdelibs-4.2.3/kdeui/kernel/kapplication.cpp:307
#40 0x00007f7989d42cbb in QCoreApplication::notifyInternal (this=0x7fff94d8ce60, receiver=0x12b1df0, event=0x7fff94d8b010) at kernel/qcoreapplication.cpp:610
#41 0x00007f798a8c6a58 in QApplicationPrivate::sendMouseEvent (receiver=0x12b1df0, event=0x7fff94d8b010, alienWidget=0x0, nativeWidget=0x12b1df0, buttonDown=<value optimized out>, 
    lastMouseReceiver=@0x7f798b322b50) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:216
#42 0x00007f798a930754 in QETWidget::translateMouseEvent (this=0x12b1df0, event=<value optimized out>) at kernel/qapplication_x11.cpp:4382
#43 0x00007f798a92f2dd in QApplication::x11ProcessEvent (this=0x7fff94d8ce60, event=0x7fff94d8c9e0) at kernel/qapplication_x11.cpp:3566
#44 0x00007f798a9565dc in x11EventSourceDispatch (s=0xcb5690, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#45 0x00007f79853ab2d1 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#46 0x00007f79853aea4d in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#47 0x00007f79853aec0b in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#48 0x00007f7989d6c09f in QEventDispatcherGlib::processEvents (this=0xc77360, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:324
#49 0x00007f798a955d8f in QGuiEventDispatcherGlib::processEvents (this=0x0, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#50 0x00007f7989d41562 in QEventLoop::processEvents (this=<value optimized out>, flags={i = -1797731120}) at kernel/qeventloop.cpp:149
#51 0x00007f7989d4192d in QEventLoop::exec (this=0x7fff94d8cd10, flags={i = -1797731040}) at kernel/qeventloop.cpp:200
#52 0x00007f7989d43be4 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#53 0x00007f798ca70fdd in kdemain (argc=2, argv=0x7fff94d8e0b8) at /usr/src/packages/kde4/4.2.3/kdesdk-4.2.3/kate/app/katemain.cpp:250
#54 0x00007f7989211e24 in __libc_start_main () from /lib/libc.so.6
#55 0x00000000004006e9 in _start ()
Comment 2 Alexey Chernov 2009-05-25 23:11:33 UTC
Created attachment 34007 [details]
The file causes crash
Comment 3 Dominik Haumann 2009-05-25 23:24:03 UTC

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