Bug 227199 - kwrite crashed within KSharedPtr<KateLineLayout>::operator->
Summary: kwrite crashed within KSharedPtr<KateLineLayout>::operator->
Status: RESOLVED DUPLICATE of bug 175883
Alias: None
Product: kate
Classification: Applications
Component: kwrite (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-16 15:35 UTC by Dennis
Modified: 2010-02-16 17:58 UTC (History)
1 user (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 Dennis 2010-02-16 15:35:13 UTC
Version:            (using KDE 4.4.0)
OS:                Linux
Installed from:    Gentoo Packages

kwrite crashed when I removed several lines of text from the end of file and then quickly hit Ctrl+S

I can't reproduce this more than once.

Application: KWrite (kdeinit4), signal: Aborted
[Current thread is 0 (LWP 5793)]

Thread 2 (Thread 0x7feff1c9d910 (LWP 5796)):
#0  0x00007fefffeef209 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007feff23e9296 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x7feff26ab1e0) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2304
#2  0x00007feff23e92b9 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=0x7feff26b92ac) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1438
#3  0x00007fefffeeb2f0 in start_thread () from /lib/libpthread.so.0
#4  0x00007feffe658bbd in clone () from /lib/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7ff00232d740 (LWP 5793)):
[KCrash Handler]
#5  0x00007feffe5b8665 in raise () from /lib/libc.so.6
#6  0x00007feffe5b9c41 in abort () from /lib/libc.so.6
#7  0x00007ff00017280d in qt_message_output (msgType=QtFatalMsg, buf=<value optimized out>) at global/qglobal.cpp:2250
#8  0x00007ff0001729ad in qt_message (msgType=QtFatalMsg, msg=0x7ff0002e26d0 "ASSERT: \"%s\" in file %s, line %d", ap=0x7fffccc21530) at global/qglobal.cpp:2296
#9  0x00007ff000172b45 in qFatal (msg=<value optimized out>) at global/qglobal.cpp:2479
#10 0x00007feff278e86a in KSharedPtr<KateLineLayout>::operator-> (this=0x7fffccc21620) at /mnt/ram/paludis/kde-base-kdelibs-4.4.0/work/kdelibs-4.4.0/kdecore/util/ksharedptr.h:126
#11 0x00007feff279335a in KateLayoutCache::viewLine (this=0xd6e9b0, realCursor=@0x7fffccc21700) at /mnt/ram/paludis/kde-base-kdelibs-4.4.0/work/kdelibs-4.4.0/kate/render/katelayoutcache.cpp:395
#12 0x00007feff2793771 in KateLayoutCache::textLayout (this=0xd6e9b0, realCursor=@0x7fffccc21700) at /mnt/ram/paludis/kde-base-kdelibs-4.4.0/work/kdelibs-4.4.0/kate/render/katelayoutcache.cpp:337
#13 0x00007feff27e0897 in KateViewInternal::makeVisible (this=0xd6de20, c=@0xd6df28, endCol=-1, force=false, center=<value optimized out>, calledExternally=false)
    at /mnt/ram/paludis/kde-base-kdelibs-4.4.0/work/kdelibs-4.4.0/kate/view/kateviewinternal.cpp:690
#14 0x00007feff27e0a56 in KateViewInternal::updateCursor (this=0xd6de20, newCursor=@0xd6dea0, force=<value optimized out>, center=false, calledExternally=false)
    at /mnt/ram/paludis/kde-base-kdelibs-4.4.0/work/kdelibs-4.4.0/kate/view/kateviewinternal.cpp:1912
#15 0x00007feff27e1611 in KateViewInternal::editEnd (this=0xd6de20, editTagLineStart=44, editTagLineEnd=44, tagFrom=<value optimized out>)
    at /mnt/ram/paludis/kde-base-kdelibs-4.4.0/work/kdelibs-4.4.0/kate/view/kateviewinternal.cpp:3397
#16 0x00007feff27ce4f7 in KateView::editEnd (this=<value optimized out>, editTagLineStart=5793, editTagLineEnd=6, tagFrom=255)
    at /mnt/ram/paludis/kde-base-kdelibs-4.4.0/work/kdelibs-4.4.0/kate/view/kateview.cpp:1603
#17 0x00007feff2758f08 in KateDocument::editEnd (this=0xd69b90) at /mnt/ram/paludis/kde-base-kdelibs-4.4.0/work/kdelibs-4.4.0/kate/document/katedocument.cpp:981
#18 0x00007feff27642d4 in KateDocument::removeText (this=0xd69b90, _range=<value optimized out>, block=false)
    at /mnt/ram/paludis/kde-base-kdelibs-4.4.0/work/kdelibs-4.4.0/kate/document/katedocument.cpp:825
#19 0x00007feff275c22f in KateDocument::backspace (this=0xd69b90, view=0xd6b660, c=<value optimized out>)
    at /mnt/ram/paludis/kde-base-kdelibs-4.4.0/work/kdelibs-4.4.0/kate/document/katedocument.cpp:2893
#20 0x00007feff27ddcf6 in KateViewInternal::doBackspace (this=0xd6de20) at /mnt/ram/paludis/kde-base-kdelibs-4.4.0/work/kdelibs-4.4.0/kate/view/kateviewinternal.cpp:854
#21 0x00007feff27cc4a0 in KateView::backspace (this=0xd6b660) at /mnt/ram/paludis/kde-base-kdelibs-4.4.0/work/kdelibs-4.4.0/kate/view/kateview.cpp:2296
#22 0x00007feff27d90ed in KateView::qt_metacall (this=0xd6b660, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffccc21d20)
    at /mnt/ram/paludis/kde-base-kdelibs-4.4.0/work/kdelibs-4.4.0_build/kate/kateview.moc:373
#23 0x00007ff00028f067 in QMetaObject::activate (sender=0xd44830, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xffffffffffffffff) at kernel/qobject.cpp:3267
#24 0x00007fefff23abe2 in QAction::triggered (this=0x16a1, _t1=false) at .moc/debug-shared/moc_qaction.cpp:263
#25 0x00007fefff23bb30 in QAction::activate (this=0xd44830, event=<value optimized out>) at kernel/qaction.cpp:1251
#26 0x00007fefff23eb02 in QAction::event (this=0xd44830, e=0x7fffccc22470) at kernel/qaction.cpp:1177
#27 0x00007ff00095fb58 in KAction::event (this=0xd44830, event=0x7fffccc22470) at /mnt/ram/paludis/kde-base-kdelibs-4.4.0/work/kdelibs-4.4.0/kdeui/actions/kaction.cpp:129
#28 0x00007fefff241766 in QApplicationPrivate::notify_helper (this=0x681b20, receiver=0xd44830, e=0x7fffccc22470) at kernel/qapplication.cpp:4298
#29 0x00007fefff249b40 in QApplication::notify (this=0x7fffccc23be0, receiver=0xd44830, e=0x7fffccc22470) at kernel/qapplication.cpp:4263
#30 0x00007ff000a118aa in KApplication::notify (this=0x7fffccc23be0, receiver=0xd44830, event=0x7fffccc22470)
    at /mnt/ram/paludis/kde-base-kdelibs-4.4.0/work/kdelibs-4.4.0/kdeui/kernel/kapplication.cpp:302
#31 0x00007ff000279823 in QCoreApplication::notifyInternal (this=0x7fffccc23be0, receiver=0xd44830, event=0x7fffccc22470) at kernel/qcoreapplication.cpp:704
#32 0x00007fefff27d03a in QShortcutMap::dispatchEvent (this=<value optimized out>, e=0x7fffccc22b50) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#33 0x00007fefff27efcc in QShortcutMap::tryShortcutEvent (this=0x681c48, o=<value optimized out>, e=0x7fffccc22b50) at kernel/qshortcutmap.cpp:364
#34 0x00007fefff24bbfa in QApplication::notify (this=0x7fffccc23be0, receiver=0xd6de20, e=0x7fffccc22b50) at kernel/qapplication.cpp:3744
#35 0x00007ff000a118aa in KApplication::notify (this=0x7fffccc23be0, receiver=0xd6de20, event=0x7fffccc22b50)
    at /mnt/ram/paludis/kde-base-kdelibs-4.4.0/work/kdelibs-4.4.0/kdeui/kernel/kapplication.cpp:302
#36 0x00007ff000279823 in QCoreApplication::notifyInternal (this=0x7fffccc23be0, receiver=0xd6de20, event=0x7fffccc22b50) at kernel/qcoreapplication.cpp:704
#37 0x00007fefff2e4394 in QKeyMapper::sendKeyEvent (keyWidget=0xd6de20, grab=<value optimized out>, type=QEvent::KeyPress, code=16777219, modifiers={i = -859688848}, text=@0x7fffccc23060, 
    autorepeat=false, count=1, nativeScanCode=22, nativeVirtualKey=65288, nativeModifiers=16) at kernel/qkeymapper_x11.cpp:1861
#38 0x00007fefff2e6390 in QKeyMapperPrivate::translateKeyEvent (this=0x6bb850, keyWidget=0xd6de20, event=0x7fffccc23780, grab=161) at kernel/qkeymapper_x11.cpp:1831
#39 0x00007fefff2c0f37 in QApplication::x11ProcessEvent (this=0x7fffccc23be0, event=0x7fffccc23780) at kernel/qapplication_x11.cpp:3394
#40 0x00007fefff2e8fcc in x11EventSourceDispatch (s=0x685830, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#41 0x00007feffb6a86b1 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#42 0x00007feffb6abe48 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#43 0x00007feffb6abffc in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#44 0x00007ff0002a5e7c in QEventDispatcherGlib::processEvents (this=0x615fb0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#45 0x00007fefff2e888f in QGuiEventDispatcherGlib::processEvents (this=0x16a1, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#46 0x00007ff0002781d2 in QEventLoop::processEvents (this=<value optimized out>, flags={i = -859686288}) at kernel/qeventloop.cpp:149
#47 0x00007ff0002785a4 in QEventLoop::exec (this=0x7fffccc23ab0, flags={i = -859686208}) at kernel/qeventloop.cpp:201
#48 0x00007ff00027aa64 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#49 0x00007feff48ffcb2 in kdemain (argc=3, argv=0x661280) at /mnt/ram/paludis/kde-base-kwrite-4.4.0/work/kwrite-4.4.0/kwrite/kwritemain.cpp:782
#50 0x0000000000407185 in launch (argc=3, _name=0x659bf8 "kwrite", args=0x659c41 "", cwd=0x0, envc=0, envs=<value optimized out>, reset_env=false, tty=0x0, avoid_loops=false, 
    startup_id_str=0x40adbc "0") at /mnt/ram/paludis/kde-base-kdelibs-4.4.0/work/kdelibs-4.4.0/kinit/kinit.cpp:710
#51 0x0000000000407f1d in handle_launcher_request (sock=8, who=<value optimized out>) at /mnt/ram/paludis/kde-base-kdelibs-4.4.0/work/kdelibs-4.4.0/kinit/kinit.cpp:1202
#52 0x0000000000408572 in handle_requests (waitForPid=0) at /mnt/ram/paludis/kde-base-kdelibs-4.4.0/work/kdelibs-4.4.0/kinit/kinit.cpp:1395
#53 0x0000000000408dc2 in main (argc=4, argv=0x7fffccc251b8, envp=0x7fffccc251e0) at /mnt/ram/paludis/kde-base-kdelibs-4.4.0/work/kdelibs-4.4.0/kinit/kinit.cpp:1834
Comment 1 Christoph Cullmann 2010-02-16 17:58:01 UTC
Should be fixed with my commits yesterday.
No idea if good to backport, as not sure if right fix.

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