Bug 293934 - kate crashes when writing comments in php or js
Summary: kate crashes when writing comments in php or js
Status: RESOLVED DUPLICATE of bug 294241
Alias: None
Product: kate
Classification: Applications
Component: folding (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: VHI crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
: 282995 292592 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-02-12 20:56 UTC by Erik Haubold
Modified: 2012-02-19 08:42 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 Erik Haubold 2012-02-12 20:56:57 UTC
Application: kate (3.8.0)
KDE Platform Version: 4.8.00 (4.8.0 "release 1"
Qt Version: 4.8.0
Operating System: Linux 3.2.0-6-desktop x86_64
Distribution: "openSUSE 12.1 (x86_64)"

-- Information about the crash:
when commenting out in javascript or php-code kate crashes everytime when typing ' /* '. Code-Folding is enabled in this document.

The crash can be reproduced every time.

-- Backtrace:
Application: Kate (kdeinit4), signal: Segmentation fault
[Current thread is 1 (Thread 0x7fca18125760 (LWP 16018))]

Thread 3 (Thread 0x7fc9fc924700 (LWP 16019)):
#0  0x00007fca169c8e6c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007fca0b7d18f2 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x7fca0bacae80) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
#2  0x00007fca0b7d1929 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=<optimized out>) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#3  0x00007fca169c4f05 in start_thread () from /lib64/libpthread.so.0
#4  0x00007fca1572653d in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7fc9fada3700 (LWP 16030)):
#0  0x00007fca1571d423 in poll () from /lib64/libc.so.6
#1  0x00007fca124fba98 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007fca124fbf59 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007fca16d88526 in QEventDispatcherGlib::processEvents (this=0xef6000, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007fca16d58272 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007fca16d584c7 in QEventLoop::exec (this=0x7fc9fada2df0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007fca16c59137 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007fca16d3807f in QInotifyFileSystemWatcherEngine::run (this=0xeee650) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007fca16c5c15b in QThreadPrivate::start (arg=0xeee650) at thread/qthread_unix.cpp:298
#9  0x00007fca169c4f05 in start_thread () from /lib64/libpthread.so.0
#10 0x00007fca1572653d in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7fca18125760 (LWP 16018)):
[KCrash Handler]
#6  KateCodeFoldingNode::removeEndDescending (this=0x1476020, deletedNode=0x1476e60) at /usr/src/debug/kate-4.8.0/part/syntax/katecodefolding.cpp:259
#7  0x00007fc9fdc8085d in removeChild (deletedNode=0x1476e60, this=<optimized out>) at /usr/src/debug/kate-4.8.0/part/syntax/katecodefolding.cpp:306
#8  KateCodeFoldingNode::removeChild (this=<optimized out>, deletedNode=0x1476e60) at /usr/src/debug/kate-4.8.0/part/syntax/katecodefolding.cpp:299
#9  0x00007fc9fdc85895 in KateCodeFoldingTree::deleteEndNode (this=<optimized out>, deletedNode=0x1476e60) at /usr/src/debug/kate-4.8.0/part/syntax/katecodefolding.cpp:611
#10 0x00007fc9fdc86175 in deleteNode (deletedNode=<optimized out>, this=0xa351d0) at /usr/src/debug/kate-4.8.0/part/syntax/katecodefolding.h:353
#11 KateCodeFoldingTree::updateMapping (this=0xa351d0, line=161, newColumns=..., virtualNodeIndex=-1, virtualColumn=0) at /usr/src/debug/kate-4.8.0/part/syntax/katecodefolding.cpp:1576
#12 0x00007fc9fdc8631c in KateCodeFoldingTree::updateLine (this=0xa351d0, line=161, regionChanges=..., updated=0x7fff36c8dbfe, changed=<optimized out>, colsChanged=false) at /usr/src/debug/kate-4.8.0/part/syntax/katecodefolding.cpp:1502
#13 0x00007fc9fdc22241 in KateBuffer::doHighlight (this=<optimized out>, startLine=151, endLine=215, invalidate=false) at /usr/src/debug/kate-4.8.0/part/document/katebuffer.cpp:706
#14 0x00007fc9fdc02c6a in KateDocument::kateTextLine (this=0xa34700, i=151) at /usr/src/debug/kate-4.8.0/part/document/katedocument.cpp:4782
#15 0x00007fc9fdc52378 in KateLineLayout::textLine (this=0x1260390, reloadForce=<optimized out>) at /usr/src/debug/kate-4.8.0/part/render/katelinelayout.cpp:67
#16 0x00007fc9fdc4a67d in KateRenderer::layoutLine (this=0xac0680, lineLayout=..., maxwidth=1018, cacheLayout=true) at /usr/src/debug/kate-4.8.0/part/render/katerenderer.cpp:839
#17 0x00007fc9fdc4f1ad in KateLayoutCache::line (this=0xae9f00, realLine=151, virtualLine=119) at /usr/src/debug/kate-4.8.0/part/render/katelayoutcache.cpp:318
#18 0x00007fc9fdca0aa0 in KateViewInternal::viewLineOffset (this=0xa91a90, virtualCursor=..., offset=125, keepX=false) at /usr/src/debug/kate-4.8.0/part/view/kateviewinternal.cpp:1327
#19 0x00007fc9fdca314e in KateViewInternal::makeVisible (this=0xa91a90, c=..., endCol=1, force=false, center=<optimized out>, calledExternally=false) at /usr/src/debug/kate-4.8.0/part/view/kateviewinternal.cpp:619
#20 0x00007fc9fdca477f in KateViewInternal::updateCursor (this=0xa91a90, newCursor=<optimized out>, force=<optimized out>, center=false, calledExternally=false) at /usr/src/debug/kate-4.8.0/part/view/kateviewinternal.cpp:1844
#21 0x00007fc9fdca52e0 in KateViewInternal::slotRegionVisibilityChanged (this=0xa91a90) at /usr/src/debug/kate-4.8.0/part/view/kateviewinternal.cpp:674
#22 0x00007fca16d6d331 in QMetaObject::activate (sender=0xa351d0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3547
#23 0x00007fc9fdc84e48 in KateCodeFoldingTree::unfoldNode (this=0xa351d0, node=0x1471990) at /usr/src/debug/kate-4.8.0/part/syntax/katecodefolding.cpp:1406
#24 0x00007fc9fdc85705 in KateCodeFoldingTree::deleteNodeFromMap (this=0xa351d0, node=0x1471990) at /usr/src/debug/kate-4.8.0/part/syntax/katecodefolding.cpp:600
#25 0x00007fc9fdc857e3 in KateCodeFoldingTree::deleteStartNode (this=0xa351d0, deletedNode=0x1471990) at /usr/src/debug/kate-4.8.0/part/syntax/katecodefolding.cpp:626
#26 0x00007fc9fdc860cd in deleteNode (deletedNode=<optimized out>, this=0xa351d0) at /usr/src/debug/kate-4.8.0/part/syntax/katecodefolding.h:353
#27 KateCodeFoldingTree::updateMapping (this=0xa351d0, line=153, newColumns=..., virtualNodeIndex=-1, virtualColumn=0) at /usr/src/debug/kate-4.8.0/part/syntax/katecodefolding.cpp:1576
#28 0x00007fc9fdc8631c in KateCodeFoldingTree::updateLine (this=0xa351d0, line=153, regionChanges=..., updated=0x7fff36c8e8fe, changed=<optimized out>, colsChanged=false) at /usr/src/debug/kate-4.8.0/part/syntax/katecodefolding.cpp:1502
#29 0x00007fc9fdc22241 in KateBuffer::doHighlight (this=<optimized out>, startLine=151, endLine=215, invalidate=false) at /usr/src/debug/kate-4.8.0/part/document/katebuffer.cpp:706
#30 0x00007fc9fdc02c6a in KateDocument::kateTextLine (this=0xa34700, i=151) at /usr/src/debug/kate-4.8.0/part/document/katedocument.cpp:4782
#31 0x00007fc9fdc52378 in KateLineLayout::textLine (this=0x121d800, reloadForce=<optimized out>) at /usr/src/debug/kate-4.8.0/part/render/katelinelayout.cpp:67
#32 0x00007fc9fdc4f069 in KateLayoutCache::line (this=0xae9f00, realLine=<optimized out>, virtualLine=119) at /usr/src/debug/kate-4.8.0/part/render/katelayoutcache.cpp:298
#33 0x00007fc9fdc5022a in KateLayoutCache::updateViewCache (this=0xae9f00, startPos=..., newViewLineCount=<optimized out>, viewLinesScrolled=<optimized out>) at /usr/src/debug/kate-4.8.0/part/render/katelayoutcache.cpp:270
#34 0x00007fc9fdca3a2d in KateViewInternal::tagLines (this=0xa91a90, start=..., end=..., realCursors=<optimized out>) at /usr/src/debug/kate-4.8.0/part/view/kateviewinternal.cpp:1975
#35 0x00007fc9fdca3e9c in KateViewInternal::tagLines (this=0xa91a90, start=149, end=<optimized out>, realLines=true) at /usr/src/debug/kate-4.8.0/part/view/kateviewinternal.cpp:1945
#36 0x00007fc9fdc08742 in KateDocument::tagLines (this=<optimized out>, start=149, end=772) at /usr/src/debug/kate-4.8.0/part/document/katedocument.cpp:3615
#37 0x00007fc9fdc17ba6 in qt_static_metacall (_a=0x7fff36c8ef60, _id=<optimized out>, _o=0xa34700, _c=<optimized out>) at /usr/src/debug/kate-4.8.0/build/part/katedocument.moc:281
#38 KateDocument::qt_static_metacall (_o=0xa34700, _c=<optimized out>, _id=<optimized out>, _a=0x7fff36c8ef60) at /usr/src/debug/kate-4.8.0/build/part/katedocument.moc:205
#39 0x00007fca16d6d331 in QMetaObject::activate (sender=0xa35100, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff36c8ef60) at kernel/qobject.cpp:3547
#40 0x00007fc9fdc20f3f in KateBuffer::tagLines (this=<optimized out>, _t1=149, _t2=772) at /usr/src/debug/kate-4.8.0/build/part/katebuffer.moc:112
#41 0x00007fc9fdc22660 in KateBuffer::doHighlight (this=<optimized out>, startLine=149, endLine=151, invalidate=true) at /usr/src/debug/kate-4.8.0/part/document/katebuffer.cpp:736
#42 0x00007fc9fdc09b2c in editEnd (this=0xa34700) at /usr/src/debug/kate-4.8.0/part/document/katedocument.cpp:854
#43 KateDocument::editEnd (this=0xa34700) at /usr/src/debug/kate-4.8.0/part/document/katedocument.cpp:835
#44 0x00007fc9fdc0bb11 in KateDocument::typeChars (this=0xa34700, view=0xafd200, chars=...) at /usr/src/debug/kate-4.8.0/part/document/katedocument.cpp:2686
#45 0x00007fc9fdcaa22f in keyPressEvent (e=0x7fff36c8fc00, this=0xa91a90) at /usr/src/debug/kate-4.8.0/part/view/kateviewinternal.cpp:2366
#46 KateViewInternal::keyPressEvent (this=0xa91a90, e=0x7fff36c8fc00) at /usr/src/debug/kate-4.8.0/part/view/kateviewinternal.cpp:2212
#47 0x00007fc9fdca1930 in KateViewInternal::eventFilter (this=0xa91a90, obj=0xa91a90, e=0x7fff36c8fc00) at /usr/src/debug/kate-4.8.0/part/view/kateviewinternal.cpp:2164
#48 0x00007fca16d59618 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<optimized out>, receiver=0xa91a90, event=0x7fff36c8fc00) at kernel/qcoreapplication.cpp:986
#49 0x00007fca15ec2d4f in notify_helper (e=0x7fff36c8fc00, receiver=0xa91a90, this=0x6f9050) at kernel/qapplication.cpp:4546
#50 QApplicationPrivate::notify_helper (this=0x6f9050, receiver=0xa91a90, e=0x7fff36c8fc00) at kernel/qapplication.cpp:4522
#51 0x00007fca15ec82ce in QApplication::notify (this=<optimized out>, receiver=<optimized out>, e=0x7fff36c8fc00) at kernel/qapplication.cpp:3991
#52 0x00007fca17b17786 in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#53 0x00007fca16d5948c in QCoreApplication::notifyInternal (this=0x7fff36c90b70, receiver=0xa91a90, event=0x7fff36c8fc00) at kernel/qcoreapplication.cpp:876
#54 0x00007fca15f61cd9 in QKeyMapper::sendKeyEvent (keyWidget=0xa91a90, grab=<optimized out>, type=QEvent::KeyPress, code=42, modifiers=..., text=..., autorepeat=false, count=1, nativeScanCode=35, nativeVirtualKey=42, nativeModifiers=8209) at kernel/qkeymapper_x11.cpp:1866
#55 0x00007fca15f6214b in QKeyMapperPrivate::translateKeyEvent (this=0x72d830, keyWidget=0xa91a90, event=0x7fff36c906e0, grab=false) at kernel/qkeymapper_x11.cpp:1836
#56 0x00007fca15f3e2f4 in QApplication::x11ProcessEvent (this=0x7fff36c90b70, event=0x7fff36c906e0) at kernel/qapplication_x11.cpp:3513
#57 0x00007fca15f66162 in x11EventSourceDispatch (s=0x6f51b0, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#58 0x00007fca124fb58d in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#59 0x00007fca124fbd88 in ?? () from /usr/lib64/libglib-2.0.so.0
#60 0x00007fca124fbf59 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#61 0x00007fca16d884bf in QEventDispatcherGlib::processEvents (this=0x6f9640, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#62 0x00007fca15f65dee in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#63 0x00007fca16d58272 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#64 0x00007fca16d584c7 in QEventLoop::exec (this=0x7fff36c90ab0, flags=...) at kernel/qeventloop.cpp:204
#65 0x00007fca16d5d025 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#66 0x00007fca037fc405 in kdemain (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kate-4.8.0/kate/app/katemain.cpp:377
#67 0x00000000004088e4 in launch (argc=2, _name=0x6c5238 "/usr/bin/kate", args=<optimized out>, cwd=0x0, envc=<optimized out>, envs=<optimized out>, reset_env=false, tty=0x0, avoid_loops=false, startup_id_str=0x6c5266 "orion;1329079305;698171;4294_TIME2720456") at /usr/src/debug/kdelibs-4.8.0/kinit/kinit.cpp:734
#68 0x00000000004099e6 in handle_launcher_request (sock=8, who=<optimized out>) at /usr/src/debug/kdelibs-4.8.0/kinit/kinit.cpp:1226
#69 0x0000000000409f27 in handle_requests (waitForPid=0) at /usr/src/debug/kdelibs-4.8.0/kinit/kinit.cpp:1419
#70 0x00000000004057a7 in main (argc=4, argv=0x7fff00000001, envp=0x7fff36c931f0) at /usr/src/debug/kdelibs-4.8.0/kinit/kinit.cpp:1907

Possible duplicates by query: bug 292592, bug 282995.

Reported using DrKonqi
Comment 1 Dominik Haumann 2012-02-19 08:34:22 UTC
*** Bug 292592 has been marked as a duplicate of this bug. ***
Comment 2 Dominik Haumann 2012-02-19 08:35:17 UTC
*** Bug 282995 has been marked as a duplicate of this bug. ***
Comment 3 Dominik Haumann 2012-02-19 08:36:27 UTC
Bug #282995 also reports this issue in KDE 4.6 (with test case!). Hence, this is an old bug, still exiting in the new code folding.
Comment 4 Dominik Haumann 2012-02-19 08:38:24 UTC
Erik, can you please attach a test case? Along with a detailed description what you type in which line/column?
Comment 5 Dominik Haumann 2012-02-19 08:42:45 UTC
Can reproduce:

#7  0xb35833e0 in QVector<KateCodeFoldingNode*>::isEmpty (this=0x86c9134) at /usr/include/QtCore/qvector.h:139
#8  0xb35831b2 in KateCodeFoldingNode::noEndChildren (this=0x86c9110) at /home/dh/kde/trunk/kate/part/syntax/katecodefolding.h:197
#9  0xb3583265 in KateCodeFoldingNode::hasMatch (this=0x86c9110) at /home/dh/kde/trunk/kate/part/syntax/katecodefolding.h:225
#10 0xb3583289 in KateCodeFoldingNode::matchingNode (this=0x86c9110) at /home/dh/kde/trunk/kate/part/syntax/katecodefolding.h:228
#11 0xb357cf28 in KateCodeFoldingNode::getStartMatching (this=0x86c9110, endNode=0x870f118) at /home/dh/kde/trunk/kate/part/syntax/katecodefolding.cpp:155
#12 0xb357f96c in KateCodeFoldingTree::getLineInfo (this=0x846bb48, info=0xbff12b1c, line=35) at /home/dh/kde/trunk/kate/part/syntax/katecodefolding.cpp:997
#13 0xb35088bb in KateBuffer::lineInfo (this=0x846bac0, info=0xbff12b1c, line=35) at /home/dh/kde/trunk/kate/part/document/katebuffer.h:187
#14 0xb35001b5 in KateDocument::lineInfo (this=0x846b508, info=0xbff12b1c, line=35) at /home/dh/kde/trunk/kate/part/document/katedocument.cpp:4041
#15 0xb35b45ec in KateIconBorder::paintBorder (this=0x84702f0, y=0, height=763) at /home/dh/kde/trunk/kate/part/view/kateviewhelpers.cpp:1194
#16 0xb35b2f7d in KateIconBorder::paintEvent (this=0x84702f0, e=0xbff13264) at /home/dh/kde/trunk/kate/part/view/kateviewhelpers.cpp:952

It's the same bug as #294241.

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