Bug 282274

Summary: Kate crash after pasting/marking (first time) in remote code file
Product: [Applications] kate Reporter: Skrupellos <skrupellos.spam>
Component: partAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: biberkopf
Priority: VHI    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Skrupellos 2011-09-18 13:02:33 UTC
Application: kate (3.6.2)
KDE Platform Version: 4.6.2 (4.6.2)
Qt Version: 4.7.2
Operating System: Linux 2.6.38-10-generic i686
Distribution: Ubuntu 11.04

-- Information about the crash:
- What I was doing when the application crashed:
Pasting "\t\t\n" or marking the next line on the left border (I can't remember which it was). I did this a couple of times before, but then suddently it crashed.

- Unusual behavior I noticed:
none

- Custom settings of the application:
It was a HTML file (and coresponding highliting) from a server in the local netwerk via sftp:/

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

Thread 4 (Thread 0xb53deb70 (LWP 2360)):
#0  0x0041e416 in __kernel_vsyscall ()
#1  0x0027b48c in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:169
#2  0x001ee3fd in __pthread_cond_wait (cond=0x1fe82b0, mutex=0x1fe8298) at forward.c:139
#3  0x01ecf817 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x1fe31c0) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
#4  0x01ecf851 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=0x1fe31c0) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#5  0x00276e99 in start_thread (arg=0xb53deb70) at pthread_create.c:304
#6  0x001e073e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 3 (Thread 0xb3710b70 (LWP 2361)):
#0  0x0027936b in __pthread_mutex_lock (mutex=0x8dd3324) at pthread_mutex_lock.c:61
#1  0x001ee616 in pthread_mutex_lock (mutex=0x8dd3324) at forward.c:182
#2  0x048055a8 in g_main_context_acquire () from /lib/i386-linux-gnu/libglib-2.0.so.0
#3  0x04806dde in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#4  0x04807524 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#5  0x04b41577 in QEventDispatcherGlib::processEvents (this=0x85053d8, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#6  0x04b13289 in QEventLoop::processEvents (this=0xb3710290, flags=...) at kernel/qeventloop.cpp:149
#7  0x04b13522 in QEventLoop::exec (this=0xb3710290, flags=...) at kernel/qeventloop.cpp:201
#8  0x04a1d2a0 in QThread::exec (this=0x8aebf60) at thread/qthread.cpp:492
#9  0x04af4fdb in QInotifyFileSystemWatcherEngine::run (this=0x8aebf60) at io/qfilesystemwatcher_inotify.cpp:248
#10 0x04a1fda2 in QThreadPrivate::start (arg=0x8aebf60) at thread/qthread_unix.cpp:320
#11 0x00276e99 in start_thread (arg=0xb3710b70) at pthread_create.c:304
#12 0x001e073e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 2 (Thread 0xb2e8cb70 (LWP 2365)):
#0  0x0027a7a4 in __pthread_mutex_unlock_usercnt (mutex=0x8e6cb3c, decr=1) at pthread_mutex_unlock.c:52
#1  0x001ee656 in pthread_mutex_unlock (mutex=0x8e6cb3c) at forward.c:184
#2  0x04806648 in g_main_context_check () from /lib/i386-linux-gnu/libglib-2.0.so.0
#3  0x0480703a in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#4  0x04807524 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#5  0x04b41577 in QEventDispatcherGlib::processEvents (this=0x8e6c880, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#6  0x04b13289 in QEventLoop::processEvents (this=0xb2e8c290, flags=...) at kernel/qeventloop.cpp:149
#7  0x04b13522 in QEventLoop::exec (this=0xb2e8c290, flags=...) at kernel/qeventloop.cpp:201
#8  0x04a1d2a0 in QThread::exec (this=0x8e69ea0) at thread/qthread.cpp:492
#9  0x04af4fdb in QInotifyFileSystemWatcherEngine::run (this=0x8e69ea0) at io/qfilesystemwatcher_inotify.cpp:248
#10 0x04a1fda2 in QThreadPrivate::start (arg=0x8e69ea0) at thread/qthread_unix.cpp:320
#11 0x00276e99 in start_thread (arg=0xb2e8cb70) at pthread_create.c:304
#12 0x001e073e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xb782e710 (LWP 2359)):
[KCrash Handler]
#7  0x00000000 in ?? ()
#8  0x01991300 in Kate::TextBuffer::rangesForLine (this=0x8e59428, line=98, view=0x8ea1200, rangesWithAttributeOnly=false) at ../../kate/buffer/katetextbuffer.cpp:752
#9  0x01a77d92 in KateView::updateRangesIn (this=0x8ea1200, activationType=KTextEditor::Attribute::ActivateMouseIn) at ../../kate/view/kateview.cpp:2767
#10 0x01a8d62f in KateViewInternal::mouseMoved (this=0x8e7ffd8) at ../../kate/view/kateviewinternal.cpp:3334
#11 0x01a8ed46 in KateViewInternal::mouseMoveEvent (this=0x8e7ffd8, e=0xbffc4de0) at ../../kate/view/kateviewinternal.cpp:2708
#12 0x01a9b91d in KateIconBorder::mouseMoveEvent (this=0x86c7020, e=0xbffc5464) at ../../kate/view/kateviewhelpers.cpp:1408
#13 0x00640172 in QWidget::event (this=0x86c7020, event=0xbffc5464) at kernel/qwidget.cpp:8244
#14 0x005e7d24 in QApplicationPrivate::notify_helper (this=0x84cb7f8, receiver=0x86c7020, e=0xbffc5464) at kernel/qapplication.cpp:4462
#15 0x005ed201 in QApplication::notify (this=0xbffc5d24, receiver=0x86c7020, e=0xbffc5464) at kernel/qapplication.cpp:4023
#16 0x078293ca in KApplication::notify (this=0xbffc5d24, receiver=0x86c7020, event=0xbffc5464) at ../../kdeui/kernel/kapplication.cpp:311
#17 0x04b140bb in QCoreApplication::notifyInternal (this=0xbffc5d24, receiver=0x86c7020, event=0xbffc5464) at kernel/qcoreapplication.cpp:731
#18 0x005e8c3b in sendSpontaneousEvent (receiver=0x86c7020, event=0xbffc5464, alienWidget=0x0, nativeWidget=0x86c7020, buttonDown=0xf36c60, lastMouseReceiver=..., spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#19 QApplicationPrivate::sendMouseEvent (receiver=0x86c7020, event=0xbffc5464, alienWidget=0x0, nativeWidget=0x86c7020, buttonDown=0xf36c60, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3120
#20 0x0067404c in QETWidget::translateMouseEvent (this=0x86c7020, event=0xbffc598c) at kernel/qapplication_x11.cpp:4558
#21 0x006729b5 in QApplication::x11ProcessEvent (this=0xbffc5d24, event=0xbffc598c) at kernel/qapplication_x11.cpp:3680
#22 0x0069e5f4 in x11EventSourceDispatch (s=0x84d09a8, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#23 0x04806aa8 in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0
#24 0x04807270 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#25 0x04807524 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#26 0x04b4153c in QEventDispatcherGlib::processEvents (this=0x848dac0, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#27 0x0069e1e5 in QGuiEventDispatcherGlib::processEvents (this=0x848dac0, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#28 0x04b13289 in QEventLoop::processEvents (this=0xbffc5c54, flags=...) at kernel/qeventloop.cpp:149
#29 0x04b13522 in QEventLoop::exec (this=0xbffc5c54, flags=...) at kernel/qeventloop.cpp:201
#30 0x04b17ecc in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008
#31 0x005e58e7 in QApplication::exec () at kernel/qapplication.cpp:3736
#32 0x004b52dd in kdemain () from /usr/lib/kde4/libkdeinit/libkdeinit4_kate.so
#33 0x080485ab in _start ()

Reported using DrKonqi
Comment 1 Dominik Haumann 2011-09-20 15:32:18 UTC
*** Bug 282385 has been marked as a duplicate of this bug. ***
Comment 2 Dominik Haumann 2011-09-20 15:34:23 UTC
Did you use folded code? It might be a duplicate of bug #265426.

> ...or marking the next line on the left border.
This could trigger code folding. Maybe then you had folded code?
Comment 3 Skrupellos 2011-09-20 23:28:29 UTC
Yes, I used code folding, but nothing was folded while pasting.
That I folded code while marking the next line quite possibly, meaning the action which triggers the error could be folding (I mean in opposite to unfolding --> crash)
I just tried hard to reproduce the crash with that new hint, but I failed.
Comment 4 Dominik Haumann 2011-09-21 06:51:30 UTC
Ok, then for now I close as duplicate.

We think this should be fixed in upcoming KDE 4.8. So if you still have this issue then, please let us know - Thanks.

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