KDevelop4 crashes when composing .cpp file

dukju ahn dukjuahn at gmail.com
Wed Jul 4 15:49:32 UTC 2007


Attached is backtrace.

const Range DocumentRangeObject::textRange( ) const
{
    QMutexLocker lock(&d->m_rangeMutex); <--- this line crashes
    return *d->m_range;
}

Below file is the file I composed using Kdevelop4
-------------------------------------------------------------------------------------------------------------------
// this file is only present in trunk
//

int testNotification()
{
    //commit modify
    // commit 2
}
-------------------------------------------------------------------------------------------------------------------
-------------- next part --------------
#0  0x00002b89ea7a4418 in KDevelop::DocumentRangeObject::textRange (this=0x0) at /home/kdev/ktrunk/kdevplatform/editor/documentrangeobject.cpp:101
#1  0x00002aaaaad60731 in DumpChain::dump (this=0x7fffc5319420, context=0x0, imported=false) at /home/kdev/ktrunk/kdevelop2/languages/cpp/duchainbuilder/dumpchain.cpp:176
#2  0x00002aaaaac1d83b in CppCodeCompletionModel::completionInvoked (this=0xb45e60, view=0xc02470, range=@0x7fffc53195c0, invocationType=KTextEditor::CodeCompletionModel::AutomaticInvocation) at /home/kdev/ktrunk/kdevelop2/languages/cpp/cppcodecompletionmodel.cpp:68
#3  0x00002aaaab25a5f9 in KateCompletionWidget::startCompletion (this=0xd1d120, word=@0x7fffc53195c0, model=0x0, invocationType=KTextEditor::CodeCompletionModel::AutomaticInvocation) at /home/kdev/ktrunk/kdelibs/kate/completion/katecompletionwidget.cpp:161
#4  0x00002aaaab25a86e in KateCompletionWidget::editDone (this=0xd1d120, edit=0xe391d0) at /home/kdev/ktrunk/kdelibs/kate/completion/katecompletionwidget.cpp:397
#5  0x00002aaaab25a996 in KateCompletionWidget::qt_metacall (this=0xd1d120, _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0x7fffc5319bf0) at /home/kdev/ktrunk/kdelibs/bld/kate/katecompletionwidget.moc:76
#6  0x00002b89e59b3836 in QMetaObject::activate (sender=0xbe3f50, from_signal_index=4, to_signal_index=4, argv=0x7fffc5319bf0) at kernel/qobject.cpp:3063
#7  0x00002b89e59b3c2d in QMetaObject::activate (sender=0xbe3f50, m=0x2aaaab4bba40, local_signal_index=0, argv=0x7fffc5319bf0) at kernel/qobject.cpp:3125
#8  0x00002aaaab2b4dcb in KateEditHistory::editDone (this=0xbe3f50, _t1=0xe391d0) at /home/kdev/ktrunk/kdelibs/bld/kate/kateedit.moc:78
#9  0x00002aaaab2ac2f8 in KateEditHistory::doEdit (this=0xbe3f50, edit=0xe391d0) at /home/kdev/ktrunk/kdelibs/kate/document/kateedit.h:170
#10 0x00002aaaab29eae4 in KateDocument::editInsertText (this=0xb1f0b0, line=9, col=3, str=@0x7fffc5319e10, editSource=Kate::NoEditSource) at /home/kdev/ktrunk/kdelibs/kate/document/katedocument.cpp:1352
#11 0x00002aaaab2a0c52 in KateDocument::insertText (this=0xb1f0b0, position=@0x7fffc531a0a0, text=@0x7fffc5319f30, block=false) at /home/kdev/ktrunk/kdelibs/kate/document/katedocument.cpp:791
#12 0x00002aaaab29b9b0 in KateDocument::typeChars (this=0xb1f0b0, view=0xc02470, chars=@0x7fffc531a270) at /home/kdev/ktrunk/kdelibs/kate/document/katedocument.cpp:3861
#13 0x00002aaaab31b83c in KateViewInternal::keyPressEvent (this=0xc40a80, e=0x7fffc531aa60) at /home/kdev/ktrunk/kdelibs/kate/view/kateviewinternal.cpp:2212
#14 0x00002aaaab31983a in KateViewInternal::eventFilter (this=0xc40a80, obj=0xc40a80, e=0x7fffc531aa60) at /home/kdev/ktrunk/kdelibs/kate/view/kateviewinternal.cpp:2057
#15 0x00002b89e8e1ba86 in QApplicationPrivate::notify_helper (this=0x50e220, receiver=0xc40a80, e=0x7fffc531aa60) at kernel/qapplication.cpp:3530
#16 0x00002b89e8e1c1ad in QApplication::notify (this=0x7fffc531b9a0, receiver=0xc40a80, e=0x7fffc531aa60) at kernel/qapplication.cpp:3151
#17 0x00002b89e69dafea in KApplication::notify (this=0x7fffc531b9a0, receiver=0xc40a80, event=0x7fffc531aa60) at /home/kdev/ktrunk/kdelibs/kdeui/kernel/kapplication.cpp:291
#18 0x00002b89e59a2b9c in QCoreApplication::notifyInternal (this=0x7fffc531b9a0, receiver=0xc40a80, event=0x7fffc531aa60) at kernel/qcoreapplication.cpp:516
#19 0x00002b89e8e26cd1 in QCoreApplication::sendSpontaneousEvent (receiver=0xc40a80, event=0x7fffc531aa60) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:189
#20 0x00002b89e8e735bd in qt_sendSpontaneousEvent (receiver=0xc40a80, event=0x7fffc531aa60) at kernel/qapplication_x11.cpp:4379
#21 0x00002b89e8ea6291 in QKeyMapper::sendKeyEvent (keyWidget=0xc40a80, grab=false, type=QEvent::KeyPress, code=77, modifiers=@0x7fffc531af80, text=@0x7fffc531af10, autorepeat=false, count=1, nativeScanCode=58, nativeVirtualKey=109, nativeModifiers=16) at kernel/qkeymapper_x11.cpp:1586
#22 0x00002b89e8ea75e2 in QKeyMapperPrivate::translateKeyEvent (this=0x538b30, keyWidget=0xc40a80, event=0x7fffc531b5d0, grab=false) at kernel/qkeymapper_x11.cpp:1566
#23 0x00002b89e8e7e59d in QApplication::x11ProcessEvent (this=0x7fffc531b9a0, event=0x7fffc531b5d0) at kernel/qapplication_x11.cpp:2917
#24 0x00002b89e8ea9baf in x11EventSourceDispatch (s=0x519f10, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:122
#25 0x00002b89ea0c2913 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#26 0x00002b89ea0c575d in ?? () from /usr/lib64/libglib-2.0.so.0
#27 0x00002b89ea0c5c7e in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#28 0x00002b89e59c9ffa in QEventDispatcherGlib::processEvents (this=0x50e8c0, flags=@0x7fffc531b820) at kernel/qeventdispatcher_glib.cpp:325
#29 0x00002b89e8ea9453 in QGuiEventDispatcherGlib::processEvents (this=0x50e8c0, flags=@0x7fffc531b870) at kernel/qguieventdispatcher_glib.cpp:178
#30 0x00002b89e599fe79 in QEventLoop::processEvents (this=0x7fffc531b920, flags=@0x7fffc531b8d0) at kernel/qeventloop.cpp:126
#31 0x00002b89e599ffce in QEventLoop::exec (this=0x7fffc531b920, flags=@0x7fffc531b930) at kernel/qeventloop.cpp:168
#32 0x00002b89e59a3350 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:736
#33 0x00002b89e8e1b6dc in QApplication::exec () at kernel/qapplication.cpp:3035
#34 0x00000000004043d3 in main (argc=1, argv=0x7fffc531bb78) at /home/kdev/ktrunk/kdevelop2/src/main.cpp:187
^done


More information about the KDevelop-devel mailing list