Bug 278623 - Kate crashed after multiple paste operations
Summary: Kate crashed after multiple paste operations
Status: RESOLVED DUPLICATE of bug 265426
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: 2011-07-27 13:40 UTC by eyalvisoker
Modified: 2011-09-20 15:28 UTC (History)
0 users

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 eyalvisoker 2011-07-27 13:40:07 UTC
Application: kate (3.5.5)
KDE Platform Version: 4.5.5 (KDE 4.5.5)
Qt Version: 4.7.0
Operating System: Linux 2.6.35-30-generic x86_64
Distribution: Ubuntu 10.10

-- Information about the crash:
- What I was doing when the application crashed:
I was pasting the same text about 20 times in different places on one text file.

The crash does not seem to be reproducible.

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

Thread 2 (Thread 0x7f997c9a0700 (LWP 4179)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f997f7c0334 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x7f997facb160) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
#2  0x00007f997f7c0369 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=0x7f997fad9234) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#3  0x00007f998d5cc971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#4  0x00007f998ffae92d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f9990638760 (LWP 3178)):
[KCrash Handler]
#6  0x0000000000000000 in ?? ()
#7  0x00007f997f21ee38 in Kate::TextBuffer::rangesForLine (this=<value optimized out>, line=1152, view=0x4713590, rangesWithAttributeOnly=false) at ../../kate/buffer/katetextbuffer.cpp:736
#8  0x00007f997f320476 in KateView::updateRangesIn (this=0x4713590, activationType=KTextEditor::Attribute::ActivateCaretIn) at ../../kate/view/kateview.cpp:2809
#9  0x00007f997f33593c in KateViewInternal::updateCursor (this=0x1eaa400, newCursor=<value optimized out>, force=<value optimized out>, center=false, calledExternally=<value optimized out>) at ../../kate/view/kateviewinternal.cpp:1937
#10 0x00007f997f3392b6 in KateViewInternal::cursorDown (this=0x1eaa400, sel=<value optimized out>) at ../../kate/view/kateviewinternal.cpp:1510
#11 0x00007f997f32285d in KateView::qt_metacall (this=0x4713590, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff83d17cf0) at ./kateview.moc:389
#12 0x00007f998de9db27 in QMetaObject::activate (sender=0x2073630, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x26cd9f0) at kernel/qobject.cpp:3280
#13 0x00007f998f390852 in QAction::triggered (this=0x4a91120, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#14 0x00007f998f391f5b in QAction::activate (this=0x2073630, event=<value optimized out>) at kernel/qaction.cpp:1256
#15 0x00007f998f394257 in QAction::event (this=0x4a91120, e=<value optimized out>) at kernel/qaction.cpp:1182
#16 0x00007f998e56a1ed in KAction::event (this=0x4a91120, event=0x7fff83d18360) at ../../kdeui/actions/kaction.cpp:131
#17 0x00007f998f397fdc in QApplicationPrivate::notify_helper (this=0x75d040, receiver=0x2073630, e=0x7fff83d18360) at kernel/qapplication.cpp:4396
#18 0x00007f998f39daed in QApplication::notify (this=0x7fff83d199a0, receiver=0x2073630, e=0x7fff83d18360) at kernel/qapplication.cpp:4277
#19 0x00007f998e657586 in KApplication::notify (this=0x7fff83d199a0, receiver=0x2073630, event=0x7fff83d18360) at ../../kdeui/kernel/kapplication.cpp:310
#20 0x00007f998de85cdc in QCoreApplication::notifyInternal (this=0x7fff83d199a0, receiver=0x2073630, event=0x7fff83d18360) at kernel/qcoreapplication.cpp:732
#21 0x00007f998f3d37d6 in sendEvent (this=<value optimized out>, e=0x7fff83d18960) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#22 QShortcutMap::dispatchEvent (this=<value optimized out>, e=0x7fff83d18960) at kernel/qshortcutmap.cpp:879
#23 0x00007f998f3d55e7 in QShortcutMap::tryShortcutEvent (this=0x75d168, o=<value optimized out>, e=0x7fff83d18960) at kernel/qshortcutmap.cpp:364
#24 0x00007f998f39f6e4 in QApplication::notify (this=0x7fff83d199a0, receiver=0x1eaa400, e=0x7fff83d18960) at kernel/qapplication.cpp:3840
#25 0x00007f998e657586 in KApplication::notify (this=0x7fff83d199a0, receiver=0x1eaa400, event=0x7fff83d18960) at ../../kdeui/kernel/kapplication.cpp:310
#26 0x00007f998de85cdc in QCoreApplication::notifyInternal (this=0x7fff83d199a0, receiver=0x1eaa400, event=0x7fff83d18960) at kernel/qcoreapplication.cpp:732
#27 0x00007f998f4454ba in QKeyMapper::sendKeyEvent (keyWidget=0x1eaa400, grab=<value optimized out>, type=QEvent::KeyPress, code=16777237, modifiers=<value optimized out>, text=..., autorepeat=false, count=1, nativeScanCode=116, nativeVirtualKey=65364, nativeModifiers=16) at kernel/qkeymapper_x11.cpp:1867
#28 0x00007f998f447ac0 in QKeyMapperPrivate::translateKeyEvent (this=0x796a80, keyWidget=0x1eaa400, event=<value optimized out>, grab=false) at kernel/qkeymapper_x11.cpp:1837
#29 0x00007f998f41ecb4 in QApplication::x11ProcessEvent (this=<value optimized out>, event=0x7fff83d19530) at kernel/qapplication_x11.cpp:3429
#30 0x00007f998f44b0e2 in x11EventSourceDispatch (s=0x7609f0, callback=<value optimized out>, user_data=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:146
#31 0x00007f998d10a342 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#32 0x00007f998d10e2a8 in ?? () from /lib/libglib-2.0.so.0
#33 0x00007f998d10e45c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#34 0x00007f998deb2193 in QEventDispatcherGlib::processEvents (this=0x735e60, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:415
#35 0x00007f998f44aa4e in QGuiEventDispatcherGlib::processEvents (this=0x4a91120, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#36 0x00007f998de84a02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#37 0x00007f998de84dec in QEventLoop::exec (this=0x7fff83d19860, flags=) at kernel/qeventloop.cpp:201
#38 0x00007f998de88ebb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#39 0x00007f9990250d26 in kdemain (argc=<value optimized out>, argv=<value optimized out>) at ../../../kate/app/katemain.cpp:377
#40 0x00007f998fee6d8e in __libc_start_main (main=<value optimized out>, argc=<value optimized out>, ubp_av=<value optimized out>, init=<value optimized out>, fini=<value optimized out>, rtld_fini=<value optimized out>, stack_end=0x7fff83d1af38) at libc-start.c:226
#41 0x0000000000400659 in _start ()

Reported using DrKonqi
Comment 1 Milian Wolff 2011-07-29 15:05:15 UTC
the line info is outdated for current version of kate - can you reproduce with kde 4.7 / kate from git?

the code itself looks fine enough, I doubt one of the containers contains a nullptr which then gets dereferenced in the loop...
Comment 2 Dominik Haumann 2011-09-20 15:28:49 UTC

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