Bug 296177 - Edit HTML File lets kate crash
Summary: Edit HTML File lets kate crash
Status: RESOLVED DUPLICATE of bug 294241
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-16 20:46 UTC by Manfred Rebentisch
Modified: 2012-03-17 10:09 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 4.8.2
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Manfred Rebentisch 2012-03-16 20:46:17 UTC
Application: kate (3.8.1)
KDE Platform Version: 4.8.1 (4.8.1)
Qt Version: 4.8.0
Operating System: Linux 3.0.0-16-generic x86_64
Distribution: Ubuntu 11.10

-- Information about the crash:
- What I was doing when the application crashed:
Writing an open HTML tag (<input ... class="): crash while type the quote char.

There are many lines I wrote without a crash, but from now on it crash every time.

 (kubuntu 11.10 with oneiric backports)

The crash can be reproduced every time.

-- Backtrace:
Application: Kate (kate), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f4b316f37a0 (LWP 24905))]

Thread 5 (Thread 0x7f4b1f1f5700 (LWP 24907)):
#0  0x00007f4b3103d473 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f4b2e173f68 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f4b2e174792 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f4b24429516 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007f4b2e1992b6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f4b2e645efc in start_thread (arg=0x7f4b1f1f5700) at pthread_create.c:304
#6  0x00007f4b3104959d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f4b143c9700 (LWP 24908)):
#0  __libc_enable_asynccancel () at ../nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S:66
#1  0x00007f4b3103d458 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:85
#2  0x00007f4b2e173f68 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f4b2e174429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f4b2ef41c06 in QEventDispatcherGlib::processEvents (this=0x276b000, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:426
#5  0x00007f4b2ef113e2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007f4b2ef11637 in QEventLoop::exec (this=0x7f4b143c8db0, flags=...) at kernel/qeventloop.cpp:204
#7  0x00007f4b2ee11067 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#8  0x00007f4b2eef117f in QInotifyFileSystemWatcherEngine::run (this=0x246c4b0) at io/qfilesystemwatcher_inotify.cpp:248
#9  0x00007f4b2ee1408b in QThreadPrivate::start (arg=0x246c4b0) at thread/qthread_unix.cpp:298
#10 0x00007f4b2e645efc in start_thread (arg=0x7f4b143c9700) at pthread_create.c:304
#11 0x00007f4b3104959d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f4b10dbc700 (LWP 24909)):
#0  0x00007f4b3103d473 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f4b2e173f68 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f4b2e174429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f4b2ef41c06 in QEventDispatcherGlib::processEvents (this=0x2fad6c0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007f4b2ef113e2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f4b2ef11637 in QEventLoop::exec (this=0x7f4b10dbbdb0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f4b2ee11067 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007f4b2eef117f in QInotifyFileSystemWatcherEngine::run (this=0x2fc3200) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f4b2ee1408b in QThreadPrivate::start (arg=0x2fc3200) at thread/qthread_unix.cpp:298
#9  0x00007f4b2e645efc in start_thread (arg=0x7f4b10dbc700) at pthread_create.c:304
#10 0x00007f4b3104959d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f4b10569700 (LWP 24910)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f4b15422042 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#2  0x00007f4b15422079 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#3  0x00007f4b2e645efc in start_thread (arg=0x7f4b10569700) at pthread_create.c:304
#4  0x00007f4b3104959d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f4b316f37a0 (LWP 24905)):
[KCrash Handler]
#6  getStartMatching (endNode=0x39446f0, this=0x383a450) at ../../part/syntax/katecodefolding.cpp:151
#7  KateCodeFoldingTree::getLineDepth (this=<optimized out>, line=<optimized out>, validEndings=<optimized out>) at ../../part/syntax/katecodefolding.cpp:947
#8  0x00007f4b15ad84ba in KateCodeFoldingTree::getLineDepth (this=0x2a83870, line=186) at ../../part/syntax/katecodefolding.cpp:920
#9  0x00007f4b15ad8512 in KateCodeFoldingTree::getLineInfo (this=0x2a83870, info=0x7fff53b63680, line=186) at ../../part/syntax/katecodefolding.cpp:973
#10 0x00007f4b15b05bca in KateIconBorder::paintBorder (this=0x3815140, y=<optimized out>, height=<optimized out>) at ../../part/view/kateviewhelpers.cpp:1197
#11 0x00007f4b304b68c6 in QWidget::event (this=0x3815140, event=0x7fff53b63ff0) at kernel/qwidget.cpp:8507
#12 0x00007f4b30466104 in notify_helper (e=0x7fff53b63ff0, receiver=0x3815140, this=0x206ed60) at kernel/qapplication.cpp:4555
#13 QApplicationPrivate::notify_helper (this=0x206ed60, receiver=0x3815140, e=0x7fff53b63ff0) at kernel/qapplication.cpp:4527
#14 0x00007f4b3046af83 in QApplication::notify (this=0x7fff53b680a0, receiver=0x3815140, e=0x7fff53b63ff0) at kernel/qapplication.cpp:4416
#15 0x00007f4b2f7199a6 in KApplication::notify (this=0x7fff53b680a0, receiver=0x3815140, event=0x7fff53b63ff0) at ../../kdeui/kernel/kapplication.cpp:311
#16 0x00007f4b2ef125fc in QCoreApplication::notifyInternal (this=0x7fff53b680a0, receiver=0x3815140, event=0x7fff53b63ff0) at kernel/qcoreapplication.cpp:876
#17 0x00007f4b304b2566 in sendSpontaneousEvent (event=0x7fff53b63ff0, receiver=0x3815140) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:234
#18 QWidgetPrivate::drawWidget (this=0x3815220, pdev=0x3296f30, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x2ada2c0) at kernel/qwidget.cpp:5584
#19 0x00007f4b304b31df in QWidgetPrivate::paintSiblingsRecursive (this=0x38241f0, pdev=0x3296f30, siblings=..., index=<optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x2ada2c0) at kernel/qwidget.cpp:5793
#20 0x00007f4b304b229c in QWidgetPrivate::drawWidget (this=0x38241f0, pdev=0x3296f30, rgn=..., offset=..., flags=<optimized out>, sharedPainter=0x0, backingStore=0x2ada2c0) at kernel/qwidget.cpp:5637
#21 0x00007f4b304b31df in QWidgetPrivate::paintSiblingsRecursive (this=0x366cda0, pdev=0x3296f30, siblings=..., index=<optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x2ada2c0) at kernel/qwidget.cpp:5793
#22 0x00007f4b304b229c in QWidgetPrivate::drawWidget (this=0x366cda0, pdev=0x3296f30, rgn=..., offset=..., flags=<optimized out>, sharedPainter=0x0, backingStore=0x2ada2c0) at kernel/qwidget.cpp:5637
#23 0x00007f4b304b31df in QWidgetPrivate::paintSiblingsRecursive (this=0x2e244d0, pdev=0x3296f30, siblings=..., index=<optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x2ada2c0) at kernel/qwidget.cpp:5793
#24 0x00007f4b304b229c in QWidgetPrivate::drawWidget (this=0x2e244d0, pdev=0x3296f30, rgn=..., offset=..., flags=<optimized out>, sharedPainter=0x0, backingStore=0x2ada2c0) at kernel/qwidget.cpp:5637
#25 0x00007f4b304b31df in QWidgetPrivate::paintSiblingsRecursive (this=0x2e24000, pdev=0x3296f30, siblings=..., index=<optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x2ada2c0) at kernel/qwidget.cpp:5793
#26 0x00007f4b304b2f67 in QWidgetPrivate::paintSiblingsRecursive (this=0x2e24000, pdev=0x3296f30, siblings=..., index=1, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x2ada2c0) at kernel/qwidget.cpp:5780
#27 0x00007f4b304b229c in QWidgetPrivate::drawWidget (this=0x2e24000, pdev=0x3296f30, rgn=..., offset=..., flags=<optimized out>, sharedPainter=0x0, backingStore=0x2ada2c0) at kernel/qwidget.cpp:5637
#28 0x00007f4b304b31df in QWidgetPrivate::paintSiblingsRecursive (this=0x2e33f20, pdev=0x3296f30, siblings=..., index=<optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x2ada2c0) at kernel/qwidget.cpp:5793
#29 0x00007f4b304b229c in QWidgetPrivate::drawWidget (this=0x2e33f20, pdev=0x3296f30, rgn=..., offset=..., flags=<optimized out>, sharedPainter=0x0, backingStore=0x2ada2c0) at kernel/qwidget.cpp:5637
#30 0x00007f4b304b31df in QWidgetPrivate::paintSiblingsRecursive (this=0x2e29960, pdev=0x3296f30, siblings=..., index=<optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x2ada2c0) at kernel/qwidget.cpp:5793
#31 0x00007f4b304b229c in QWidgetPrivate::drawWidget (this=0x2e29960, pdev=0x3296f30, rgn=..., offset=..., flags=<optimized out>, sharedPainter=0x0, backingStore=0x2ada2c0) at kernel/qwidget.cpp:5637
#32 0x00007f4b304b31df in QWidgetPrivate::paintSiblingsRecursive (this=0x2accfa0, pdev=0x3296f30, siblings=..., index=<optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x2ada2c0) at kernel/qwidget.cpp:5793
#33 0x00007f4b304b229c in QWidgetPrivate::drawWidget (this=0x2accfa0, pdev=0x3296f30, rgn=..., offset=..., flags=<optimized out>, sharedPainter=0x0, backingStore=0x2ada2c0) at kernel/qwidget.cpp:5637
#34 0x00007f4b304b31df in QWidgetPrivate::paintSiblingsRecursive (this=0x2acc3c0, pdev=0x3296f30, siblings=..., index=<optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x2ada2c0) at kernel/qwidget.cpp:5793
#35 0x00007f4b304b229c in QWidgetPrivate::drawWidget (this=0x2acc3c0, pdev=0x3296f30, rgn=..., offset=..., flags=<optimized out>, sharedPainter=0x0, backingStore=0x2ada2c0) at kernel/qwidget.cpp:5637
#36 0x00007f4b304b31df in QWidgetPrivate::paintSiblingsRecursive (this=0x2ac8f80, pdev=0x3296f30, siblings=..., index=<optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x2ada2c0) at kernel/qwidget.cpp:5793
#37 0x00007f4b304b229c in QWidgetPrivate::drawWidget (this=0x2ac8f80, pdev=0x3296f30, rgn=..., offset=..., flags=<optimized out>, sharedPainter=0x0, backingStore=0x2ada2c0) at kernel/qwidget.cpp:5637
#38 0x00007f4b304b31df in QWidgetPrivate::paintSiblingsRecursive (this=0x2ae00f0, pdev=0x3296f30, siblings=..., index=<optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x2ada2c0) at kernel/qwidget.cpp:5793
#39 0x00007f4b304b229c in QWidgetPrivate::drawWidget (this=0x2ae00f0, pdev=0x3296f30, rgn=..., offset=..., flags=<optimized out>, sharedPainter=0x0, backingStore=0x2ada2c0) at kernel/qwidget.cpp:5637
#40 0x00007f4b304b31df in QWidgetPrivate::paintSiblingsRecursive (this=0x2ae2120, pdev=0x3296f30, siblings=..., index=<optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x2ada2c0) at kernel/qwidget.cpp:5793
#41 0x00007f4b304b229c in QWidgetPrivate::drawWidget (this=0x2ae2120, pdev=0x3296f30, rgn=..., offset=..., flags=<optimized out>, sharedPainter=0x0, backingStore=0x2ada2c0) at kernel/qwidget.cpp:5637
#42 0x00007f4b30680c68 in QWidgetBackingStore::sync (this=0x2ada2c0) at painting/qbackingstore.cpp:1373
#43 0x00007f4b304a9290 in QWidgetPrivate::syncBackingStore (this=0x2ae2120) at kernel/qwidget.cpp:1890
#44 0x00007f4b304b6ddc in QWidget::event (this=0x2935bf0, event=0x394f400) at kernel/qwidget.cpp:8654
#45 0x00007f4b3088e01b in QMainWindow::event (this=0x2935bf0, event=0x394f400) at widgets/qmainwindow.cpp:1478
#46 0x00007f4b2f816368 in KXmlGuiWindow::event (this=0x2935bf0, ev=0x394f400) at ../../kdeui/xmlgui/kxmlguiwindow.cpp:126
#47 0x00007f4b30466104 in notify_helper (e=0x394f400, receiver=0x2935bf0, this=0x206ed60) at kernel/qapplication.cpp:4555
#48 QApplicationPrivate::notify_helper (this=0x206ed60, receiver=0x2935bf0, e=0x394f400) at kernel/qapplication.cpp:4527
#49 0x00007f4b3046af83 in QApplication::notify (this=0x7fff53b680a0, receiver=0x2935bf0, e=0x394f400) at kernel/qapplication.cpp:4416
#50 0x00007f4b2f7199a6 in KApplication::notify (this=0x7fff53b680a0, receiver=0x2935bf0, event=0x394f400) at ../../kdeui/kernel/kapplication.cpp:311
#51 0x00007f4b2ef125fc in QCoreApplication::notifyInternal (this=0x7fff53b680a0, receiver=0x2935bf0, event=0x394f400) at kernel/qcoreapplication.cpp:876
#52 0x00007f4b2ef163ca in sendEvent (event=0x394f400, receiver=0x2935bf0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#53 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x2040670) at kernel/qcoreapplication.cpp:1500
#54 0x00007f4b2ef41773 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#55 postEventSourceDispatch (s=<optimized out>) at kernel/qeventdispatcher_glib.cpp:279
#56 0x00007f4b2e173a5d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#57 0x00007f4b2e174258 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#58 0x00007f4b2e174429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#59 0x00007f4b2ef41b9f in QEventDispatcherGlib::processEvents (this=0x2041b30, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#60 0x00007f4b3050b21e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#61 0x00007f4b2ef113e2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#62 0x00007f4b2ef11637 in QEventLoop::exec (this=0x7fff53b67fe0, flags=...) at kernel/qeventloop.cpp:204
#63 0x00007f4b2ef166c7 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#64 0x00007f4b3130d0d5 in kdemain (argc=<optimized out>, argv=<optimized out>) at ../../../kate/app/katemain.cpp:377
#65 0x00007f4b30f8730d in __libc_start_main (main=0x400630 <main(int, char**)>, argc=1, ubp_av=0x7fff53b695d8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff53b695c8) at libc-start.c:226
#66 0x0000000000400661 in _start ()

This bug may be a duplicate of or related to bug 294241.

Possible duplicates by query: bug 292921.

Reported using DrKonqi
Comment 1 Dominik Haumann 2012-03-16 20:53:49 UTC
Manfred, can you please build Kate according to http://kate-editor.org/get-it/ and report back that your issue is fixed? That would help to verify our crash fix.

*** This bug has been marked as a duplicate of bug 294241 ***
Comment 2 Manfred Rebentisch 2012-03-17 06:51:43 UTC
Hi Dominik,
following http://kate-editor.org/get-it/ I startet the script with some errors:

~/kde$ kbuildsycoca4 running...
kbuildsycoca4(12734) KConfigGroup::readXdgListEntry: List entry Categories in "/usr/share/applications/MySQLQueryBrowser.desktop" is not compliant with XDG standard (missing trailing semicolon). 
kbuildsycoca4(12734) KConfigGroup::readXdgListEntry: List entry Categories in "/usr/share/applications/mutt.desktop" is not compliant with XDG standard (missing trailing semicolon). 
kbuildsycoca4(12734) KConfigGroup::readXdgListEntry: List entry MimeType in "/usr/share/applications/mutt.desktop" is not compliant with XDG standard (missing trailing semicolon). 
kbuildsycoca4(12734) KConfigGroup::readXdgListEntry: List entry Categories in "/usr/share/applications/MySQLAdministrator.desktop" is not compliant with XDG standard (missing trailing semicolon). 
kbuildsycoca4(12734) KConfigGroup::readXdgListEntry: List entry Categories in "/usr/share/applications/kde4/bluedevil-network-dun.desktop" is not compliant with XDG standard (missing trailing semicolon). 
kbuildsycoca4(12734) KConfigGroup::readXdgListEntry: List entry Categories in "/usr/share/applications/kde4/bluedevil-network-panu.desktop" is not compliant with XDG standard (missing trailing semicolon). 
kbuildsycoca4(12734) KConfigGroup::readXdgListEntry: List entry Categories in "/usr/share/applications/im-switch.desktop" is not compliant with XDG standard (missing trailing semicolon). 
kbuildsycoca4(12734) KConfigGroup::readXdgListEntry: List entry Categories in "/home/mareb/.local/share/applications/netbeans-7.1.desktop" is not compliant with XDG standard (missing trailing semicolon). 
kbuildsycoca4(12734) KConfigGroup::readXdgListEntry: List entry x-scheme-handler/file in "/home/mareb/.local/share/applications/mimeapps.list" is not compliant with XDG standard (missing trailing semicolon). 
kbuildsycoca4(12734) KConfigGroup::readXdgListEntry: List entry x-scheme-handler/trash in "/home/mareb/.local/share/applications/mimeapps.list" is not compliant with XDG standard (missing trailing semicolon). 
---------------------------
I fixed that all (a trailing semikolon for "Categories").

After that I got kate 3.8.1 from git repository run and in my short tests the error does not appear.

Thank you very much! Hope, I can get the patched version for my system version soon.
Comment 3 Dominik Haumann 2012-03-17 10:09:33 UTC
Yes, in KDE version 4.8.2.