Bug 237256 - crash in KateLayoutCache::viewLine
Summary: crash in KateLayoutCache::viewLine
Status: RESOLVED DUPLICATE of bug 247081
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:
: 238653 241992 258474 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-05-11 16:45 UTC by Milian Wolff
Modified: 2011-08-01 10:31 UTC (History)
3 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 Milian Wolff 2010-05-11 16:45:44 UTC
Application: kate (3.4.2)
KDE Platform Version: 4.4.2 (KDE 4.4.2)
Qt Version: 4.6.2
Operating System: Linux 2.6.31-21-generic x86_64
Distribution: Ubuntu 9.10

-- Information about the crash:
working on cstyle indenter and reloading scripts and repeatadly undoing + redoing some steps I hit this crash two times now

The crash can be reproduced some of the time.

 -- Backtrace:
Application: Kate (kate), signal: Aborted
The current source language is "auto; currently c".
[Current thread is 1 (Thread 0x7f9a075ab750 (LWP 6135))]

Thread 2 (Thread 0x7f99f5234910 (LWP 6141)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007f99f75bc396 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x7f99f789a220) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2304
#2  0x00007f99f75bc3d9 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=0x7f99f78a82ec) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1438
#3  0x00007f9a03f87a04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#4  0x00007f9a0354680d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f9a075ab750 (LWP 6135)):
[KCrash Handler]
#5  0x00007f9a0349a4b5 in *__GI_raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#6  0x00007f9a0349df50 in *__GI_abort () at abort.c:92
#7  0x00007f9a0420e864 in qt_message_output (msgType=QtFatalMsg, buf=<value optimized out>) at global/qglobal.cpp:2250
#8  0x00007f9a0420ea42 in qt_message (msgType=QtFatalMsg, msg=0x7f9a0436bf08 "ASSERT: \"%s\" in file %s, line %d", ap=0x7fffca4d3320) at global/qglobal.cpp:2296
#9  0x00007f9a0420ebf5 in qFatal (msg=0x17f7 <Address 0x17f7 out of bounds>) at global/qglobal.cpp:2479
#10 0x00007f99f70ca81e in KSharedPtr<KateLineLayout>::operator-> (this=0x7fffca4d3460) at /usr/include/ksharedptr.h:126
#11 0x00007f99f70d1b89 in KateLayoutCache::viewLine (this=0x2353e20, realCursor=...) at /home/milian/projects/kde4/kate/part/render/katelayoutcache.cpp:378
#12 0x00007f99f713ce6c in KateViewInternal::viewLineOffset (this=0x2357e10, virtualCursor=..., offset=-38, keepX=false) at /home/milian/projects/kde4/kate/part/view/kateviewinternal.cpp:1333
#13 0x00007f99f7139cd6 in KateViewInternal::makeVisible (this=0x2357e10, c=..., endCol=8, force=false, center=true, calledExternally=true)
    at /home/milian/projects/kde4/kate/part/view/kateviewinternal.cpp:652
#14 0x00007f99f7140153 in KateViewInternal::updateCursor (this=0x2357e10, newCursor=..., force=false, center=true, calledExternally=true)
    at /home/milian/projects/kde4/kate/part/view/kateviewinternal.cpp:1881
#15 0x00007f99f712c62e in KateView::setCursorPositionInternal (this=0x234e020, position=..., tabwidth=1, calledExternally=true) at /home/milian/projects/kde4/kate/part/view/kateview.cpp:1096
#16 0x00007f99f7130de8 in KateView::setCursorPosition (this=0x234e020, position=...) at /home/milian/projects/kde4/kate/part/view/kateview.cpp:2132
#17 0x00007f99f70a9d16 in KateUndoGroup::undo (this=0x275f0a0, view=0x234e020) at /home/milian/projects/kde4/kate/part/undo/kateundo.cpp:219
#18 0x00007f99f70ac09d in KateUndoManager::undo (this=0x2082940) at /home/milian/projects/kde4/kate/part/undo/kateundomanager.cpp:240
#19 0x00007f99f70814bb in KateDocument::undo (this=0x20817b0) at /home/milian/projects/kde4/kate/part/document/katedocument.cpp:1516
#20 0x00007f99f7076d4f in KateDocument::qt_metacall (this=0x20817b0, _c=QMetaObject::InvokeMetaMethod, _id=36, _a=0x7fffca4d3c90) at /home/milian/projects/.build/kde4/kate/part/katedocument.moc:335
#21 0x00007f9a0431dc0f in QMetaObject::activate (sender=0x2387d20, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xffffffffffffffff) at kernel/qobject.cpp:3293
#22 0x00007f9a05151022 in QAction::triggered (this=0x17f7, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#23 0x00007f9a0515309b in QAction::activate (this=0x2387d20, event=<value optimized out>) at kernel/qaction.cpp:1255
#24 0x00007f9a051549a7 in QAction::event (this=0x17f7, e=<value optimized out>) at kernel/qaction.cpp:1181
#25 0x00007f9a05d8c19d in KAction::event(QEvent*) () from /usr/lib/libkdeui.so.5
#26 0x00007f9a0515712c in QApplicationPrivate::notify_helper (this=0x1c7fc10, receiver=0x2387d20, e=0x7fffca4d4300) at kernel/qapplication.cpp:4300
#27 0x00007f9a0515d71b in QApplication::notify (this=0x7fffca4d58a0, receiver=0x2387d20, e=0x7fffca4d4300) at kernel/qapplication.cpp:4183
#28 0x00007f9a05e62076 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#29 0x00007f9a0430ae0c in QCoreApplication::notifyInternal (this=0x7fffca4d58a0, receiver=0x2387d20, event=0x7fffca4d4300) at kernel/qcoreapplication.cpp:704
#30 0x00007f9a05192e76 in QCoreApplication::sendEvent (this=<value optimized out>, e=0x7fffca4d4900) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#31 QShortcutMap::dispatchEvent (this=<value optimized out>, e=0x7fffca4d4900) at kernel/qshortcutmap.cpp:879
#32 0x00007f9a05194c77 in QShortcutMap::tryShortcutEvent (this=0x1c7fd38, o=<value optimized out>, e=0x7fffca4d4900) at kernel/qshortcutmap.cpp:364
#33 0x00007f9a0515f273 in QApplication::notify (this=0x7fffca4d58a0, receiver=0x2357e10, e=0x7fffca4d4900) at kernel/qapplication.cpp:3746
#34 0x00007f9a05e62076 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#35 0x00007f9a0430ae0c in QCoreApplication::notifyInternal (this=0x7fffca4d58a0, receiver=0x2357e10, event=0x7fffca4d4900) at kernel/qcoreapplication.cpp:704
#36 0x00007f9a05201c1a in QKeyMapper::sendKeyEvent (keyWidget=0x2357e10, grab=<value optimized out>, type=QEvent::KeyPress, code=90, modifiers=<value optimized out>, text=..., autorepeat=false, 
    count=1, nativeScanCode=29, nativeVirtualKey=122, nativeModifiers=20) at kernel/qkeymapper_x11.cpp:1861
#37 0x00007f9a05204190 in QKeyMapperPrivate::translateKeyEvent (this=0x1cbdcb0, keyWidget=0x2357e10, event=<value optimized out>, grab=247) at kernel/qkeymapper_x11.cpp:1831
#38 0x00007f9a051db734 in QApplication::x11ProcessEvent (this=<value optimized out>, event=0x7fffca4d54d0) at kernel/qapplication_x11.cpp:3394
#39 0x00007f9a05207322 in x11EventSourceDispatch (s=0x1c844b0, callback=<value optimized out>, user_data=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:146
#40 0x00007f9a00410bce in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#41 0x00007f9a00414598 in ?? () from /lib/libglib-2.0.so.0
#42 0x00007f9a004146c0 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#43 0x00007f9a04334333 in QEventDispatcherGlib::processEvents (this=0x1c5bdf0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#44 0x00007f9a05206f0e in QGuiEventDispatcherGlib::processEvents (this=0x17f7, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#45 0x00007f9a04309732 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#46 0x00007f9a04309b0c in QEventLoop::exec (this=0x7fffca4d5800, flags=) at kernel/qeventloop.cpp:201
#47 0x00007f9a0430d84b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#48 0x00007f9a071c7521 in kdemain (argc=1, argv=0x7fffca4d6d98) at /home/milian/projects/kde4/kate/kate/app/katemain.cpp:377
#49 0x0000000000400886 in main (argc=1, argv=0x7fffca4d6d98) at /home/milian/projects/.build/kde4/kate/kate/app/kate_dummy.cpp:3
The current source language is "auto; currently asm".
The current source language is "auto; currently c".

Reported using DrKonqi
Comment 1 Dominik Haumann 2010-05-28 01:43:25 UTC
*** Bug 238653 has been marked as a duplicate of this bug. ***
Comment 2 Dominik Haumann 2010-05-28 01:45:00 UTC
Milian, any news about this?
Comment 3 Dominik Haumann 2010-06-17 23:49:18 UTC
*** Bug 241992 has been marked as a duplicate of this bug. ***
Comment 4 Milian Wolff 2010-10-21 20:03:13 UTC
maybe related to: bug 254873, bug 233749, bug 247081
Comment 5 Milian Wolff 2010-12-01 14:29:03 UTC
*** Bug 258474 has been marked as a duplicate of this bug. ***
Comment 6 Dominik Haumann 2011-08-01 10:31:34 UTC

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