Bug 296748 - Crash adding doxygen comment to folded function
Summary: Crash adding doxygen comment to folded function
Status: RESOLVED DUPLICATE of bug 294756
Alias: None
Product: kate
Classification: Applications
Component: folding (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-25 14:34 UTC by Eugene Marcotte
Modified: 2012-03-29 17:10 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 Eugene Marcotte 2012-03-25 14:34:41 UTC
Application: kdevelop (4.3.0)
KDE Platform Version: 4.8.1 (4.8.1)
Qt Version: 4.8.0
Operating System: Linux 3.3.0-4.fc16.x86_64 x86_64
Distribution (Platform): Fedora RPMs

-- Information about the crash:
- What I was doing when the application crashed:

Had just folded a function and was adding doxygen comments to it.

- Custom settings of the application:

Running kdevelop inside gnome, not in kde. I've removed a lot of the toolbars and views, mostly just have editor and project pane open.

-- Backtrace:
Application: KDevelop (kdevelop), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
82	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[Current thread is 1 (Thread 0x7fde4ed5f840 (LWP 2254))]

Thread 12 (Thread 0x7fde3b697700 (LWP 2265)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:216
#1  0x0000003af387bfdf in wait (time=1000, this=0x29e1c80) at thread/qwaitcondition_unix.cpp:84
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x29e10a0, time=1000) at thread/qwaitcondition_unix.cpp:158
#3  0x00007fde535ab70b in KDevelop::DUChainPrivate::CleanupThread::run (this=0x29e1080) at /usr/src/debug/kdevplatform-1.3.0/language/duchain/duchain.cpp:282
#4  0x0000003af387bb6b in QThreadPrivate::start (arg=0x29e1080) at thread/qthread_unix.cpp:298
#5  0x0000003775407d90 in start_thread (arg=0x7fde3b697700) at pthread_create.c:309
#6  0x00000037750f0f5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 11 (Thread 0x7fde2b8b4700 (LWP 2267)):
#0  0x0000003775409def in __pthread_mutex_lock (mutex=0x7fde240009a8) at pthread_mutex_lock.c:66
#1  0x00000037770447cf in g_main_context_check () from /lib64/libglib-2.0.so.0
#2  0x0000003777044ff2 in ?? () from /lib64/libglib-2.0.so.0
#3  0x000000377704549c in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#4  0x0000003af39a7dc6 in QEventDispatcherGlib::processEvents (this=0x7fde240008c0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:426
#5  0x0000003af3978182 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x0000003af39783d7 in QEventLoop::exec (this=0x7fde2b8b3d40, flags=...) at kernel/qeventloop.cpp:204
#7  0x0000003af3878b27 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#8  0x0000003af387bb6b in QThreadPrivate::start (arg=0x33f6490) at thread/qthread_unix.cpp:298
#9  0x0000003775407d90 in start_thread (arg=0x7fde2b8b4700) at pthread_create.c:309
#10 0x00000037750f0f5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 10 (Thread 0x7fde2b0b3700 (LWP 2268)):
#0  0x00000037750e85c3 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x0000003777044fd8 in ?? () from /lib64/libglib-2.0.so.0
#2  0x000000377704549c in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#3  0x0000003af39a7dc6 in QEventDispatcherGlib::processEvents (this=0x7fde1c0008c0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:426
#4  0x0000003af3978182 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x0000003af39783d7 in QEventLoop::exec (this=0x7fde2b0b2d40, flags=...) at kernel/qeventloop.cpp:204
#6  0x0000003af3878b27 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x0000003af387bb6b in QThreadPrivate::start (arg=0x33bbdc0) at thread/qthread_unix.cpp:298
#8  0x0000003775407d90 in start_thread (arg=0x7fde2b0b3700) at pthread_create.c:309
#9  0x00000037750f0f5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 9 (Thread 0x7fde29d8d700 (LWP 2273)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:165
#1  0x0000003af6d84e62 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x3af707e240) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
#2  0x0000003af6d84e99 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=<optimized out>) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#3  0x0000003775407d90 in start_thread (arg=0x7fde29d8d700) at pthread_create.c:309
#4  0x00000037750f0f5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 8 (Thread 0x7fde23aff700 (LWP 2280)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:165
#1  0x0000003af387c07b in wait (time=18446744073709551615, this=0x51ecb50) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x4f23920, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007fde55e2ca8b in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x51da150, th=0x5261570) at /usr/src/debug/kdelibs-4.8.1/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007fde55e2f37b in ThreadWeaver::WorkingHardState::applyForWork (this=0x4f38b90, th=0x5261570) at /usr/src/debug/kdelibs-4.8.1/threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007fde55e2e1ef in ThreadWeaver::ThreadRunHelper::run (this=0x7fde23afed60, parent=0x51da150, th=0x5261570) at /usr/src/debug/kdelibs-4.8.1/threadweaver/Weaver/Thread.cpp:87
#6  0x00007fde55e2e27b in ThreadWeaver::Thread::run (this=0x5261570) at /usr/src/debug/kdelibs-4.8.1/threadweaver/Weaver/Thread.cpp:142
#7  0x0000003af387bb6b in QThreadPrivate::start (arg=0x5261570) at thread/qthread_unix.cpp:298
#8  0x0000003775407d90 in start_thread (arg=0x7fde23aff700) at pthread_create.c:309
#9  0x00000037750f0f5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 7 (Thread 0x7fde232fe700 (LWP 2281)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:165
#1  0x00007fde50e526ec in ?? () from /usr/lib64/libQtWebKit.so.4
#2  0x00007fde50e52819 in ?? () from /usr/lib64/libQtWebKit.so.4
#3  0x0000003775407d90 in start_thread (arg=0x7fde232fe700) at pthread_create.c:309
#4  0x00000037750f0f5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 6 (Thread 0x7fde22afd700 (LWP 2282)):
#0  0x0000003775409def in __pthread_mutex_lock (mutex=0x7fde040009a8) at pthread_mutex_lock.c:66
#1  0x00000037770436f9 in g_main_context_acquire () from /lib64/libglib-2.0.so.0
#2  0x0000003777044df1 in ?? () from /lib64/libglib-2.0.so.0
#3  0x000000377704549c in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#4  0x0000003af39a7dc6 in QEventDispatcherGlib::processEvents (this=0x7fde040008c0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:426
#5  0x0000003af3978182 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x0000003af39783d7 in QEventLoop::exec (this=0x7fde22afcd40, flags=...) at kernel/qeventloop.cpp:204
#7  0x0000003af3878b27 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#8  0x0000003af387bb6b in QThreadPrivate::start (arg=0x339e370) at thread/qthread_unix.cpp:298
#9  0x0000003775407d90 in start_thread (arg=0x7fde22afd700) at pthread_create.c:309
#10 0x00000037750f0f5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 5 (Thread 0x7fde121ae700 (LWP 2414)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:165
#1  0x0000003af387c07b in wait (time=18446744073709551615, this=0x1b494b0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x1a73110, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007fde55e2ca8b in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x1b478c0, th=0x456ec50) at /usr/src/debug/kdelibs-4.8.1/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007fde55e2f37b in ThreadWeaver::WorkingHardState::applyForWork (this=0x1a74120, th=0x456ec50) at /usr/src/debug/kdelibs-4.8.1/threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007fde55e2e1ef in ThreadWeaver::ThreadRunHelper::run (this=0x7fde121add60, parent=0x1b478c0, th=0x456ec50) at /usr/src/debug/kdelibs-4.8.1/threadweaver/Weaver/Thread.cpp:87
#6  0x00007fde55e2e27b in ThreadWeaver::Thread::run (this=0x456ec50) at /usr/src/debug/kdelibs-4.8.1/threadweaver/Weaver/Thread.cpp:142
#7  0x0000003af387bb6b in QThreadPrivate::start (arg=0x456ec50) at thread/qthread_unix.cpp:298
#8  0x0000003775407d90 in start_thread (arg=0x7fde121ae700) at pthread_create.c:309
#9  0x00000037750f0f5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 4 (Thread 0x7fde119ad700 (LWP 2415)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:165
#1  0x0000003af387c07b in wait (time=18446744073709551615, this=0x1b494b0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x1a73110, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007fde55e2ca8b in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x1b478c0, th=0x7fddbc001aa0) at /usr/src/debug/kdelibs-4.8.1/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007fde55e2f37b in ThreadWeaver::WorkingHardState::applyForWork (this=0x1a74120, th=0x7fddbc001aa0) at /usr/src/debug/kdelibs-4.8.1/threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007fde55e2f394 in ThreadWeaver::WorkingHardState::applyForWork (this=0x1a74120, th=0x7fddbc001aa0) at /usr/src/debug/kdelibs-4.8.1/threadweaver/Weaver/WorkingHardState.cpp:74
#6  0x00007fde55e2f394 in ThreadWeaver::WorkingHardState::applyForWork (this=0x1a74120, th=0x7fddbc001aa0) at /usr/src/debug/kdelibs-4.8.1/threadweaver/Weaver/WorkingHardState.cpp:74
#7  0x00007fde55e2f394 in ThreadWeaver::WorkingHardState::applyForWork (this=0x1a74120, th=0x7fddbc001aa0) at /usr/src/debug/kdelibs-4.8.1/threadweaver/Weaver/WorkingHardState.cpp:74
#8  0x00007fde55e2e1ef in ThreadWeaver::ThreadRunHelper::run (this=0x7fde119acd60, parent=0x1b478c0, th=0x7fddbc001aa0) at /usr/src/debug/kdelibs-4.8.1/threadweaver/Weaver/Thread.cpp:87
#9  0x00007fde55e2e27b in ThreadWeaver::Thread::run (this=0x7fddbc001aa0) at /usr/src/debug/kdelibs-4.8.1/threadweaver/Weaver/Thread.cpp:142
#10 0x0000003af387bb6b in QThreadPrivate::start (arg=0x7fddbc001aa0) at thread/qthread_unix.cpp:298
#11 0x0000003775407d90 in start_thread (arg=0x7fde119ad700) at pthread_create.c:309
#12 0x00000037750f0f5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 3 (Thread 0x7fde2166a700 (LWP 3094)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:165
#1  0x0000003af387c07b in wait (time=18446744073709551615, this=0x51ecb50) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x4f23920, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007fde55e2ca8b in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x51da150, th=0x5f5f9e0) at /usr/src/debug/kdelibs-4.8.1/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007fde55e2f37b in ThreadWeaver::WorkingHardState::applyForWork (this=0x4f38b90, th=0x5f5f9e0) at /usr/src/debug/kdelibs-4.8.1/threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007fde55e2f394 in ThreadWeaver::WorkingHardState::applyForWork (this=0x4f38b90, th=0x5f5f9e0) at /usr/src/debug/kdelibs-4.8.1/threadweaver/Weaver/WorkingHardState.cpp:74
#6  0x00007fde55e2e1ef in ThreadWeaver::ThreadRunHelper::run (this=0x7fde21669d60, parent=0x51da150, th=0x5f5f9e0) at /usr/src/debug/kdelibs-4.8.1/threadweaver/Weaver/Thread.cpp:87
#7  0x00007fde55e2e27b in ThreadWeaver::Thread::run (this=0x5f5f9e0) at /usr/src/debug/kdelibs-4.8.1/threadweaver/Weaver/Thread.cpp:142
#8  0x0000003af387bb6b in QThreadPrivate::start (arg=0x5f5f9e0) at thread/qthread_unix.cpp:298
#9  0x0000003775407d90 in start_thread (arg=0x7fde2166a700) at pthread_create.c:309
#10 0x00000037750f0f5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 2 (Thread 0x7fde111ac700 (LWP 3095)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:165
#1  0x0000003af387c07b in wait (time=18446744073709551615, this=0x51ecb50) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x4f23920, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007fde55e2ca8b in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x51da150, th=0x5fc62f0) at /usr/src/debug/kdelibs-4.8.1/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007fde55e2f37b in ThreadWeaver::WorkingHardState::applyForWork (this=0x4f38b90, th=0x5fc62f0) at /usr/src/debug/kdelibs-4.8.1/threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007fde55e2e1ef in ThreadWeaver::ThreadRunHelper::run (this=0x7fde111abd60, parent=0x51da150, th=0x5fc62f0) at /usr/src/debug/kdelibs-4.8.1/threadweaver/Weaver/Thread.cpp:87
#6  0x00007fde55e2e27b in ThreadWeaver::Thread::run (this=0x5fc62f0) at /usr/src/debug/kdelibs-4.8.1/threadweaver/Weaver/Thread.cpp:142
#7  0x0000003af387bb6b in QThreadPrivate::start (arg=0x5fc62f0) at thread/qthread_unix.cpp:298
#8  0x0000003775407d90 in start_thread (arg=0x7fde111ac700) at pthread_create.c:309
#9  0x00000037750f0f5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7fde4ed5f840 (LWP 2254)):
[KCrash Handler]
#6  KateCodeFoldingNode::setParent (this=0x4f449e0) at /usr/src/debug/kate-4.8.1/part/syntax/katecodefolding.cpp:340
#7  0x00007fde40e62afa in KateCodeFoldingNode::updateSelf (this=0x4f449e0) at /usr/src/debug/kate-4.8.1/part/syntax/katecodefolding.cpp:439
#8  0x00007fde40e66895 in KateCodeFoldingTree::deleteEndNode (this=<optimized out>, deletedNode=0x4f45f40) at /usr/src/debug/kate-4.8.1/part/syntax/katecodefolding.cpp:615
#9  0x00007fde40e671d5 in deleteNode (deletedNode=<optimized out>, this=0x4c6f0e0) at /usr/src/debug/kate-4.8.1/part/syntax/katecodefolding.h:353
#10 KateCodeFoldingTree::updateMapping (this=0x4c6f0e0, line=250, newColumns=..., virtualNodeIndex=-1, virtualColumn=0) at /usr/src/debug/kate-4.8.1/part/syntax/katecodefolding.cpp:1578
#11 0x00007fde40e673ac in KateCodeFoldingTree::updateLine (this=0x4c6f0e0, line=250, regionChanges=..., updated=0x7fffc6e5047e, changed=<optimized out>, colsChanged=false) at /usr/src/debug/kate-4.8.1/part/syntax/katecodefolding.cpp:1504
#12 0x00007fde40e042c4 in KateBuffer::doHighlight (this=<optimized out>, startLine=239, endLine=303, invalidate=false) at /usr/src/debug/kate-4.8.1/part/document/katebuffer.cpp:706
#13 0x00007fde40de3eea in KateDocument::kateTextLine (this=0x4d6eb20, i=239) at /usr/src/debug/kate-4.8.1/part/document/katedocument.cpp:4786
#14 0x00007fde40e33828 in KateLineLayout::textLine (this=0x48c9260, reloadForce=<optimized out>) at /usr/src/debug/kate-4.8.1/part/render/katelinelayout.cpp:67
#15 0x00007fde40e2bac7 in KateRenderer::layoutLine (this=0x5036d30, lineLayout=..., maxwidth=-1, cacheLayout=true) at /usr/src/debug/kate-4.8.1/part/render/katerenderer.cpp:839
#16 0x00007fde40e304ed in KateLayoutCache::line (this=0x5037870, realLine=239, virtualLine=231) at /usr/src/debug/kate-4.8.1/part/render/katelayoutcache.cpp:318
#17 0x00007fde40e315ca in KateLayoutCache::updateViewCache (this=0x5037870, startPos=..., newViewLineCount=<optimized out>, viewLinesScrolled=<optimized out>) at /usr/src/debug/kate-4.8.1/part/render/katelayoutcache.cpp:270
#18 0x00007fde40e824bf in doUpdateView (viewLinesScrolled=0, changed=<optimized out>, this=0x5036fa0) at /usr/src/debug/kate-4.8.1/part/view/kateviewinternal.cpp:550
#19 KateViewInternal::doUpdateView (this=0x5036fa0, changed=<optimized out>, viewLinesScrolled=0) at /usr/src/debug/kate-4.8.1/part/view/kateviewinternal.cpp:530
#20 0x00007fde40e82bdc in KateViewInternal::updateView (this=0x5036fa0, changed=false, viewLinesScrolled=<optimized out>) at /usr/src/debug/kate-4.8.1/part/view/kateviewinternal.cpp:524
#21 0x00007fde40e866bc in KateViewInternal::slotRegionVisibilityChanged (this=0x5036fa0) at /usr/src/debug/kate-4.8.1/part/view/kateviewinternal.cpp:676
#22 0x0000003af398cce1 in QMetaObject::activate (sender=0x4c6f0e0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3547
#23 0x00007fde40e65c28 in KateCodeFoldingTree::unfoldNode (this=0x4c6f0e0, node=0x4f456b0) at /usr/src/debug/kate-4.8.1/part/syntax/katecodefolding.cpp:1408
#24 0x00007fde40e666d8 in KateCodeFoldingTree::deleteNodeFromMap (this=0x4c6f0e0, node=0x4f456b0) at /usr/src/debug/kate-4.8.1/part/syntax/katecodefolding.cpp:600
#25 0x00007fde40e667c3 in KateCodeFoldingTree::deleteStartNode (this=0x4c6f0e0, deletedNode=0x4f456b0) at /usr/src/debug/kate-4.8.1/part/syntax/katecodefolding.cpp:626
#26 0x00007fde40e67052 in deleteNode (deletedNode=<optimized out>, this=0x4c6f0e0) at /usr/src/debug/kate-4.8.1/part/syntax/katecodefolding.h:353
#27 KateCodeFoldingTree::updateMapping (this=0x4c6f0e0, line=241, newColumns=..., virtualNodeIndex=-1, virtualColumn=0) at /usr/src/debug/kate-4.8.1/part/syntax/katecodefolding.cpp:1578
#28 0x00007fde40e673ac in KateCodeFoldingTree::updateLine (this=0x4c6f0e0, line=241, regionChanges=..., updated=0x7fffc6e50fde, changed=<optimized out>, colsChanged=false) at /usr/src/debug/kate-4.8.1/part/syntax/katecodefolding.cpp:1504
#29 0x00007fde40e042c4 in KateBuffer::doHighlight (this=<optimized out>, startLine=239, endLine=303, invalidate=false) at /usr/src/debug/kate-4.8.1/part/document/katebuffer.cpp:706
#30 0x00007fde40de3eea in KateDocument::kateTextLine (this=0x4d6eb20, i=239) at /usr/src/debug/kate-4.8.1/part/document/katedocument.cpp:4786
#31 0x00007fde40e33828 in KateLineLayout::textLine (this=0x5ae25f0, reloadForce=<optimized out>) at /usr/src/debug/kate-4.8.1/part/render/katelinelayout.cpp:67
#32 0x00007fde40e303a9 in KateLayoutCache::line (this=0x5037870, realLine=<optimized out>, virtualLine=231) at /usr/src/debug/kate-4.8.1/part/render/katelayoutcache.cpp:298
#33 0x00007fde40e315ca in KateLayoutCache::updateViewCache (this=0x5037870, startPos=..., newViewLineCount=<optimized out>, viewLinesScrolled=<optimized out>) at /usr/src/debug/kate-4.8.1/part/render/katelayoutcache.cpp:270
#34 0x00007fde40e84dfd in KateViewInternal::tagLines (this=0x5036fa0, start=..., end=..., realCursors=<optimized out>) at /usr/src/debug/kate-4.8.1/part/view/kateviewinternal.cpp:1975
#35 0x00007fde40e8526c in KateViewInternal::tagLines (this=0x5036fa0, start=237, end=<optimized out>, realLines=true) at /usr/src/debug/kate-4.8.1/part/view/kateviewinternal.cpp:1945
#36 0x00007fde40df2ea2 in KateDocument::tagLines (this=<optimized out>, start=237, end=425) at /usr/src/debug/kate-4.8.1/part/document/katedocument.cpp:3615
#37 0x00007fde40df9686 in qt_static_metacall (_a=0x7fffc6e51640, _id=<optimized out>, _o=0x4d6eb20, _c=<optimized out>) at /usr/src/debug/kate-4.8.1/x86_64-redhat-linux-gnu/part/katedocument.moc:281
#38 KateDocument::qt_static_metacall (_o=0x4d6eb20, _c=<optimized out>, _id=<optimized out>, _a=0x7fffc6e51640) at /usr/src/debug/kate-4.8.1/x86_64-redhat-linux-gnu/part/katedocument.moc:205
#39 0x0000003af398cce1 in QMetaObject::activate (sender=0x4c6f010, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffc6e51640) at kernel/qobject.cpp:3547
#40 0x00007fde40e02f9f in KateBuffer::tagLines (this=<optimized out>, _t1=237, _t2=425) at /usr/src/debug/kate-4.8.1/x86_64-redhat-linux-gnu/part/katebuffer.moc:112
#41 0x00007fde40e046f8 in KateBuffer::doHighlight (this=<optimized out>, startLine=237, endLine=239, invalidate=true) at /usr/src/debug/kate-4.8.1/part/document/katebuffer.cpp:736
#42 0x00007fde40de9c6c in editEnd (this=0x4d6eb20) at /usr/src/debug/kate-4.8.1/part/document/katedocument.cpp:854
#43 KateDocument::editEnd (this=0x4d6eb20) at /usr/src/debug/kate-4.8.1/part/document/katedocument.cpp:835
#44 0x00007fde40debc51 in KateDocument::typeChars (this=0x4d6eb20, view=0x50365b0, chars=...) at /usr/src/debug/kate-4.8.1/part/document/katedocument.cpp:2686
#45 0x00007fde40e8b5ff in keyPressEvent (e=0x7fffc6e522e0, this=0x5036fa0) at /usr/src/debug/kate-4.8.1/part/view/kateviewinternal.cpp:2366
#46 KateViewInternal::keyPressEvent (this=0x5036fa0, e=0x7fffc6e522e0) at /usr/src/debug/kate-4.8.1/part/view/kateviewinternal.cpp:2212
#47 0x00007fde40e82d00 in KateViewInternal::eventFilter (this=0x5036fa0, obj=0x5036fa0, e=0x7fffc6e522e0) at /usr/src/debug/kate-4.8.1/part/view/kateviewinternal.cpp:2164
#48 0x0000003af39791d8 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<optimized out>, receiver=0x5036fa0, event=0x7fffc6e522e0) at kernel/qcoreapplication.cpp:986
#49 0x0000003af59c995f in notify_helper (e=0x7fffc6e522e0, receiver=0x5036fa0, this=0x17486d0) at kernel/qapplication.cpp:4546
#50 QApplicationPrivate::notify_helper (this=0x17486d0, receiver=0x5036fa0, e=0x7fffc6e522e0) at kernel/qapplication.cpp:4522
#51 0x0000003af59ceede in QApplication::notify (this=<optimized out>, receiver=<optimized out>, e=0x7fffc6e522e0) at kernel/qapplication.cpp:3991
#52 0x00007fde5491ed56 in KApplication::notify (this=0x7fffc6e533b0, receiver=0x5036fa0, event=0x7fffc6e522e0) at /usr/src/debug/kdelibs-4.8.1/kdeui/kernel/kapplication.cpp:311
#53 0x0000003af397904c in QCoreApplication::notifyInternal (this=0x7fffc6e533b0, receiver=0x5036fa0, event=0x7fffc6e522e0) at kernel/qcoreapplication.cpp:876
#54 0x0000003af5a68719 in QKeyMapper::sendKeyEvent (keyWidget=0x5036fa0, grab=<optimized out>, type=QEvent::KeyPress, code=42, modifiers=..., text=..., autorepeat=false, count=1, nativeScanCode=17, nativeVirtualKey=42, nativeModifiers=17) at kernel/qkeymapper_x11.cpp:1866
#55 0x0000003af5a68b8b in QKeyMapperPrivate::translateKeyEvent (this=0x17834b0, keyWidget=0x5036fa0, event=0x7fffc6e52dc0, grab=false) at kernel/qkeymapper_x11.cpp:1836
#56 0x0000003af5a44ce4 in QApplication::x11ProcessEvent (this=0x7fffc6e533b0, event=0x7fffc6e52dc0) at kernel/qapplication_x11.cpp:3534
#57 0x0000003af5a6c97c in x11EventSourceDispatch (s=0x174c960, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:148
#58 0x0000003777044acd in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#59 0x00000037770452c8 in ?? () from /lib64/libglib-2.0.so.0
#60 0x000000377704549c in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#61 0x0000003af39a7d5f in QEventDispatcherGlib::processEvents (this=0x1719a70, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#62 0x0000003af5a6c66e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:207
#63 0x0000003af3978182 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#64 0x0000003af39783d7 in QEventLoop::exec (this=0x7fffc6e53190, flags=...) at kernel/qeventloop.cpp:204
#65 0x0000003af397cdd5 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#66 0x000000000040a399 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kdevelop-4.3.0/app/main.cpp:479

Reported using DrKonqi
Comment 1 Eugene Marcotte 2012-03-25 14:38:31 UTC
The block of code that i was commenting looks like:

	template<class Orientable> 
	void loadOrientation( Orientable o, boost::property_tree::ptree& nodeEntry )
	{
		if( nodeEntry.find("orientation") != nodeEntry.not_found() ) {
			o->setOrientation(
				nodeEntry.get<Ogre::Real>("orientation.x"),
				nodeEntry.get<Ogre::Real>("orientation.y"),
				nodeEntry.get<Ogre::Real>("orientation.z"),
				nodeEntry.get<Ogre::Real>("orientation.w")
			);
		}
	}

I fold it on the opening "{" for the function and then add comments using /** This function {crashs now}

I can provide the full source file if necessary
Comment 2 Milian Wolff 2012-03-29 16:15:44 UTC
please provide a test case that is reproducible, and/or test in a git master version of kate since it saw some fixes in regard to folding recently
Comment 3 Dominik Haumann 2012-03-29 17:10:44 UTC
fixed in KDE 4.8.2

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