Bug 369655 - Text editor Kate ALWAYS crashes under Slackware
Summary: Text editor Kate ALWAYS crashes under Slackware
Status: RESOLVED DUPLICATE of bug 336195
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Slackware Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2016-10-02 23:32 UTC by slakware
Modified: 2016-10-03 16:30 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Fix crash (3.18 KB, patch)
2016-10-03 13:22 UTC, Dominik Haumann
Details
Patch that fixes this crash (5.15 KB, patch)
2016-10-03 16:30 UTC, Dominik Haumann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description slakware 2016-10-02 23:32:00 UTC
Application: kate (3.14.21)
KDE Platform Version: 4.14.21
Qt Version: 4.8.7
Operating System: Linux 4.4.14 x86_64
Distribution (Platform): Slackware Packages

-- Information about the crash:
The text editor called Kate crashes every approximately 20 minutus when I use it under Slackware 14.1. But of course, you will say this is not a bug, because when I open the document again, it can recover the text perfectly, no data is lost. Neverytheless, for me it is somehow fucking annoying every time to stop typing, take the mouse and click the file again. It was a simple text file, quite short, in Russian. God will bless you guys.

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 0x7fad0e34c780 (LWP 4158))]

Thread 2 (Thread 0x7faceda2b700 (LWP 4159)):
#0  0x00007fad0c93c36f in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007facfe6dc5aa in  () at /usr/lib64/qt/lib/libQtScript.so.4
#2  0x00007facfe6dc5d9 in  () at /usr/lib64/qt/lib/libQtScript.so.4
#3  0x00007fad0c936684 in start_thread () at /lib64/libpthread.so.0
#4  0x00007fad0ae7defd in clone () at /lib64/libc.so.6

Thread 1 (Thread 0x7fad0e34c780 (LWP 4158)):
[KCrash Handler]
#6  0x00007fad0c097fbf in QTextFormat::property(int) const () at /usr/lib64/qt/lib/libQtGui.so.4
#7  0x00007facef3a0170 in KateScriptDocument::anchor(int, int, QChar) () at /usr/lib64/libkatepartinterfaces.so.4
#8  0x00007facef315a53 in  () at /usr/lib64/libkatepartinterfaces.so.4
#9  0x00007facef3168a3 in KateScriptDocument::qt_metacall(QMetaObject::Call, int, void**) () at /usr/lib64/libkatepartinterfaces.so.4
#10 0x00007facfe74eb9a in  () at /usr/lib64/qt/lib/libQtScript.so.4
#11 0x00007facfe75096a in  () at /usr/lib64/qt/lib/libQtScript.so.4
#12 0x00007facfe750baa in  () at /usr/lib64/qt/lib/libQtScript.so.4
#13 0x00007facfe649438 in  () at /usr/lib64/qt/lib/libQtScript.so.4
#14 0x00007facfe61ef8f in  () at /usr/lib64/qt/lib/libQtScript.so.4
#15 0x00007fac6d1c63dd in  ()
#16 0x0000000002e590d0 in  ()
#17 0x00007fac6aeca540 in  ()
#18 0x00007fac0000001a in  ()
#19 0xffffffffffffffff in  ()#20 0x00007fac6aec3ec0 in  ()
#21 0x0000023000000002 in  ()
#22 0x0000000000000040 in  ()
#23 0x0000000000000031 in  ()
#24 0x000000760000009b in  ()
#25 0x00007fac6d19c8f0 in  ()
#26 0x00007fac6c8d0c78 in  ()
#27 0x00007fac6af42208 in  ()
#28 0x00007fac6c874688 in  ()
#29 0x00007facfe9de588 in __bss_start () at /usr/lib64/qt/lib/libQtScript.so.4
#30 0x00007fac6c873400 in  ()
#31 0x00007fac6af42000 in  ()
#32 0x00007fac6c873400 in  ()
#33 0x00007facfe9de588 in __bss_start () at /usr/lib64/qt/lib/libQtScript.so.4
#34 0x0000000002e48198 in  ()
#35 0x00007fac6af42060 in  ()
#36 0x00007fac6c8d0c60 in  ()
#37 0x00007facfe5d634a in  () at /usr/lib64/qt/lib/libQtScript.so.4
#38 0x00007facfe67761b in  () at /usr/lib64/qt/lib/libQtScript.so.4
#39 0x00007facfe64947f in  () at /usr/lib64/qt/lib/libQtScript.so.4
#40 0x00007facfe737acf in QScriptValue::call(QScriptValue const&, QList<QScriptValue> const&) () at /usr/lib64/qt/lib/libQtScript.so.4
#41 0x00007facef39579a in  () at /usr/lib64/libkatepartinterfaces.so.4
#42 0x00007facef48f002 in  () at /usr/lib64/libkatepartinterfaces.so.4
#43 0x00007facef48f260 in  () at /usr/lib64/libkatepartinterfaces.so.4
#44 0x00007facef385608 in KateDocument::newLine(KateView*) () at /usr/lib64/libkatepartinterfaces.so.4
#45 0x00007facef3ff3b4 in  () at /usr/lib64/libkatepartinterfaces.so.4
#46 0x00007facef400578 in  () at /usr/lib64/libkatepartinterfaces.so.4
#47 0x00007facef405d87 in  () at /usr/lib64/libkatepartinterfaces.so.4
#48 0x00007fad0ccdcd76 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () at /usr/lib64/qt/lib/libQtCore.so.4
#49 0x00007fad0be3246c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib64/qt/lib/libQtGui.so.4
#50 0x00007fad0be39b53 in QApplication::notify(QObject*, QEvent*) () at /usr/lib64/qt/lib/libQtGui.so.4
#51 0x00007fad0dd3d8ea in KApplication::notify(QObject*, QEvent*) () at /usr/lib64/libkdeui.so.5
#52 0x00007fad0ccdcc0d in QCoreApplication::notifyInternal(QObject*, QEvent*) () at /usr/lib64/qt/lib/libQtCore.so.4
#53 0x00007fad0bed2c10 in  () at /usr/lib64/qt/lib/libQtGui.so.4
#54 0x00007fad0bed30ef in  () at /usr/lib64/qt/lib/libQtGui.so.4
#55 0x00007fad0beae166 in QApplication::x11ProcessEvent(_XEvent*) () at /usr/lib64/qt/lib/libQtGui.so.4
#56 0x00007fad0bed5942 in  () at /usr/lib64/qt/lib/libQtGui.so.4
#57 0x00007fad0759a787 in g_main_context_dispatch () at /usr/lib64/libglib-2.0.so.0
#58 0x00007fad0759a9b8 in  () at /usr/lib64/libglib-2.0.so.0
#59 0x00007fad0759aa5c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#60 0x00007fad0cd0b0ae in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/qt/lib/libQtCore.so.4
#61 0x00007fad0bed59e6 in  () at /usr/lib64/qt/lib/libQtGui.so.4
#62 0x00007fad0ccdb5d1 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/qt/lib/libQtCore.so.4
#63 0x00007fad0ccdb8e5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/qt/lib/libQtCore.so.4
#64 0x00007fad0cce0ec9 in QCoreApplication::exec() () at /usr/lib64/qt/lib/libQtCore.so.4
#65 0x00007facf5bbbf85 in kdemain () at /usr/lib64/libkdeinit4_kate.so
#66 0x0000000000408c21 in  ()
#67 0x00000000004099f7 in  ()
#68 0x000000000040a13a in  ()
#69 0x0000000000405952 in  ()
#70 0x00007fad0ad977d0 in __libc_start_main () at /lib64/libc.so.6
#71 0x00000000004067b9 in _start ()

Reported using DrKonqi
Comment 1 slakware 2016-10-03 00:03:11 UTC
After the previous message was posted, before I started to type this one KDE crashed 2 times, and in the last time - without any offer to recover the text. Good bye, I am compiling Geany.
Comment 2 Dominik Haumann 2016-10-03 13:22:55 UTC
Created attachment 101392 [details]
Fix crash

Can you please test with the attached patch and follow https://kate-editor.org/get-it-kde-4-x/ with this patch?

Two things:
1. the crash should be fixed
2. `make test` should still work

Can you confirm?

PS: I cannot test this here, since I don't have a KDE 4 version of Kate anymore. So please test.
Comment 3 Dominik Haumann 2016-10-03 16:08:45 UTC
Thread 1 (Thread 0x7f5280c52880 (LWP 22049)):
[KCrash Handler]
#5  0x00007f527c8144c9 in raise () from /lib64/libc.so.6
#6  0x00007f527c815958 in abort () from /lib64/libc.so.6
#7  0x00007f527d8c1204 in qt_message_output(QtMsgType, char const*) () from /usr/lib64/libQtCore.so.4
#8  0x00007f527d8c1389 in ?? () from /usr/lib64/libQtCore.so.4
#9  0x00007f527d8c1b94 in qFatal(char const*, ...) () from /usr/lib64/libQtCore.so.4
#10 0x00007f527d8c1bfe in qt_assert_x(char const*, char const*, char const*, int) () from /usr/lib64/libQtCore.so.4
#11 0x00007f526d39dcbf in QList<KSharedPtr<KTextEditor::Attribute> >::operator[] (this=this@entry=0x7fffa8690580, i=3) at /usr/include/QtCore/qlist.h:477
#12 0x00007f526d3b1bb8 in KateScriptDocument::anchor (this=this@entry=0x1890bf0, line=<optimized out>, column=<optimized out>, character=...) at /home/dh/kde/kate/part/script/katescriptdocument.cpp:254
Comment 4 Dominik Haumann 2016-10-03 16:09:41 UTC
This is fixed in the Kate5 version, see https://bugs.kde.org/show_bug.cgi?id=336195
Please update to Kate5.

*** This bug has been marked as a duplicate of bug 336195 ***
Comment 5 Dominik Haumann 2016-10-03 16:30:17 UTC
Created attachment 101396 [details]
Patch that fixes this crash

This patch should work, but it breaks the Pascal indenter. That's why we will not add this change to the KDE 4 line. If you want, you can use the patch yourself, though.

Please update to Kate5, and the issue is resolved.