Bug 302096

Summary: Crash while deleting lines
Product: [Applications] kate Reporter: Maarten ter Huurne <maarten>
Component: kwriteAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: crash CC: adrian.lungu89, christoph, philip.preisser
Priority: NOR Keywords: triaged
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Maarten ter Huurne 2012-06-18 03:44:05 UTC
Application: kwrite (4.8.4 (4.8.4) "release 511")
KDE Platform Version: 4.8.4 (4.8.4) "release 511"
Qt Version: 4.8.2
Operating System: Linux 3.1.10-1.9-default x86_64
Distribution (Platform): openSUSE RPMs

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

I had a diff file open in KWrite, with syntax highlighting. Every time I finished processing a block in the diff I deleted that block of text by selecting it using Shift + cursors and then pressing Delete. At some point, KWrite crashed, immediately after I pressed the Delete button on my keyboard.

-- Backtrace:
Application: KWrite (kwrite), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f76c3752760 (LWP 21886))]

Thread 2 (Thread 0x7f76b1dbb700 (LWP 21890)):
#0  0x00007f76be606e6c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f76b2bde952 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x7f76b2ed7e80) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
#2  0x00007f76b2bde989 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=<optimized out>) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#3  0x00007f76be602f05 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f76c30b910d in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f76c3752760 (LWP 21886)):
[KCrash Handler]
#6  KateCodeFoldingNode::setParent (this=0x13bc070) at /usr/src/debug/kate-4.8.4/part/syntax/katecodefolding.cpp:332
#7  0x00007f76b329f1ba in KateCodeFoldingNode::updateParent (this=0x13bc070, newExcess=<optimized out>, newShortage=0) at /usr/src/debug/kate-4.8.4/part/syntax/katecodefolding.cpp:349
#8  0x00007f76b329eed2 in KateCodeFoldingNode::updateSelf (this=0x13d50a0) at /usr/src/debug/kate-4.8.4/part/syntax/katecodefolding.cpp:450
#9  0x00007f76b32a2ad5 in KateCodeFoldingTree::deleteEndNode (this=<optimized out>, deletedNode=0x13eda80) at /usr/src/debug/kate-4.8.4/part/syntax/katecodefolding.cpp:631
#10 0x00007f76b32a3418 in deleteNode (deletedNode=<optimized out>, this=0x918620) at /usr/src/debug/kate-4.8.4/part/syntax/katecodefolding.h:356
#11 KateCodeFoldingTree::updateMapping (this=0x918620, line=77, newColumns=..., virtualNodeIndex=2, virtualColumn=43) at /usr/src/debug/kate-4.8.4/part/syntax/katecodefolding.cpp:1586
#12 0x00007f76b32a355c in KateCodeFoldingTree::updateLine (this=0x918620, line=77, regionChanges=..., updated=0x7fff8f36081e, changed=<optimized out>, colsChanged=false) at /usr/src/debug/kate-4.8.4/part/syntax/katecodefolding.cpp:1529
#13 0x00007f76b323f521 in KateBuffer::doHighlight (this=<optimized out>, startLine=76, endLine=78, invalidate=true) at /usr/src/debug/kate-4.8.4/part/document/katebuffer.cpp:706
#14 0x00007f76b3226e0c in editEnd (this=0x917ac0) at /usr/src/debug/kate-4.8.4/part/document/katedocument.cpp:854
#15 KateDocument::editEnd (this=0x917ac0) at /usr/src/debug/kate-4.8.4/part/document/katedocument.cpp:835
#16 0x00007f76b32ac119 in removeSelectedText (this=0x91ed00) at /usr/src/debug/kate-4.8.4/part/view/kateview.cpp:1847
#17 KateView::removeSelectedText (this=0x91ed00) at /usr/src/debug/kate-4.8.4/part/view/kateview.cpp:1832
#18 0x00007f76b321ebdd in KateDocument::del (this=0x917ac0, view=0x91ed00, c=...) at /usr/src/debug/kate-4.8.4/part/document/katedocument.cpp:2844
#19 0x00007f76b32bad81 in KateViewInternal::doDelete (this=0x92c2a0) at /usr/src/debug/kate-4.8.4/part/view/kateviewinternal.cpp:794
#20 0x00007f76c0b04c41 in QMetaObject::activate (sender=0x9c9380, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff8f360b20) at kernel/qobject.cpp:3556
#21 0x00007f76c1503b52 in QAction::triggered (this=<optimized out>, _t1=false) at .moc/release-shared/moc_qaction.cpp:277
#22 0x00007f76c1503d3f in QAction::activate (this=0x9c9380, event=<optimized out>) at kernel/qaction.cpp:1257
#23 0x00007f76c1503eaf in QAction::event (this=<optimized out>, e=<optimized out>) at kernel/qaction.cpp:1183
#24 0x00007f76c2167f7a in KAction::event (this=<optimized out>, event=0x7fff8f361140) at /usr/src/debug/kdelibs-4.8.4/kdeui/actions/kaction.cpp:131
#25 0x00007f76c1509fe4 in notify_helper (e=0x7fff8f361140, receiver=0x9c9380, this=0x62d690) at kernel/qapplication.cpp:4551
#26 QApplicationPrivate::notify_helper (this=0x62d690, receiver=0x9c9380, e=0x7fff8f361140) at kernel/qapplication.cpp:4523
#27 0x00007f76c150edb3 in QApplication::notify (this=0x7fff8f362600, receiver=0x9c9380, e=0x7fff8f361140) at kernel/qapplication.cpp:4412
#28 0x00007f76c2250746 in KApplication::notify (this=0x7fff8f362600, receiver=0x9c9380, event=0x7fff8f361140) at /usr/src/debug/kdelibs-4.8.4/kdeui/kernel/kapplication.cpp:311
#29 0x00007f76c0af0d0c in QCoreApplication::notifyInternal (this=0x7fff8f362600, receiver=0x9c9380, event=0x7fff8f361140) at kernel/qcoreapplication.cpp:915
#30 0x00007f76c153bdc9 in sendEvent (event=0x7fff8f361140, receiver=<optimized out>) at ../../src/corelib/kernel/qcoreapplication.h:231
#31 QShortcutMap::dispatchEvent (this=<optimized out>, e=0x7fff8f3616e0) at kernel/qshortcutmap.cpp:879
#32 0x00007f76c153d2bd in QShortcutMap::tryShortcutEvent (this=0x62d7b0, o=<optimized out>, e=0x7fff8f3616e0) at kernel/qshortcutmap.cpp:364
#33 0x00007f76c15109e9 in QApplication::notify (this=0x7fff8f362600, receiver=0x92c2a0, e=0x7fff8f3616e0) at kernel/qapplication.cpp:3975
#34 0x00007f76c2250746 in KApplication::notify (this=0x7fff8f362600, receiver=0x92c2a0, event=0x7fff8f3616e0) at /usr/src/debug/kdelibs-4.8.4/kdeui/kernel/kapplication.cpp:311
#35 0x00007f76c0af0d0c in QCoreApplication::notifyInternal (this=0x7fff8f362600, receiver=0x92c2a0, event=0x7fff8f3616e0) at kernel/qcoreapplication.cpp:915
#36 0x00007f76c15a9589 in QKeyMapper::sendKeyEvent (keyWidget=0x92c2a0, grab=<optimized out>, type=QEvent::KeyPress, code=16777223, modifiers=..., text=..., autorepeat=false, count=1, nativeScanCode=119, nativeVirtualKey=65535, nativeModifiers=0) at kernel/qkeymapper_x11.cpp:1866
#37 0x00007f76c15a99fb in QKeyMapperPrivate::translateKeyEvent (this=0x673230, keyWidget=0x92c2a0, event=0x7fff8f3621c0, grab=false) at kernel/qkeymapper_x11.cpp:1836
#38 0x00007f76c15857b4 in QApplication::x11ProcessEvent (this=0x7fff8f362600, event=0x7fff8f3621c0) at kernel/qapplication_x11.cpp:3529
#39 0x00007f76c15ada12 in x11EventSourceDispatch (s=0x6331b0, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#40 0x00007f76bcf6458d in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#41 0x00007f76bcf64d88 in ?? () from /usr/lib64/libglib-2.0.so.0
#42 0x00007f76bcf64f59 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#43 0x00007f76c0b1fdcf in QEventDispatcherGlib::processEvents (this=0x607060, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#44 0x00007f76c15ad69e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#45 0x00007f76c0aef842 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#46 0x00007f76c0aefa97 in QEventLoop::exec (this=0x7fff8f362590, flags=...) at kernel/qeventloop.cpp:204
#47 0x00007f76c0af48b5 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#48 0x00007f76c337d681 in kdemain (argc=2, argv=<optimized out>) at /usr/src/debug/kate-4.8.4/kwrite/kwritemain.cpp:680
#49 0x00007f76c2fff23d in __libc_start_main () from /lib64/libc.so.6
#50 0x0000000000400681 in _start () at ../sysdeps/x86_64/elf/start.S:113

Reported using DrKonqi
Comment 1 Dominik Haumann 2012-06-24 09:16:51 UTC
Adrian, can you please have a look?
Comment 2 Dominik Haumann 2012-06-24 09:21:15 UTC
Maarten: Can you reproduce? If so, please attach the file...
Comment 3 Adrian 2012-06-24 09:48:29 UTC
Sure Dominik. Right now I'm very busy with my Diploma Project (I have to finish it by the end of the next week), but then I'll try to fix this bug. Meanwhile, I need a way to reproduce it from Maarten.
Comment 4 Maarten ter Huurne 2012-06-24 21:32:57 UTC
I use kate and kwrite a lot and they only rarely crash. I don't know how to reproduce it. Should I get another crash, I'll submit the backtrace again.
Comment 5 Jekyll Wu 2012-07-12 16:49:37 UTC
*** Bug 303412 has been marked as a duplicate of this bug. ***
Comment 6 Christoph Cullmann 2012-10-27 11:55:39 UTC
We need a testcase, if you got one, please reopen.
Comment 7 Andrew Crouthamel 2018-09-23 02:39:27 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Maarten ter Huurne 2018-09-23 06:38:05 UTC
I don't have a way to reproduce it and the backtrace is 6 years old now, so I'll close it.