DUChain crash, reparsing cpp/parser/parser.cpp

Andreas Pakulat apaku at gmx.de
Mon Sep 1 20:10:27 UTC 2008


Hi,

this happened after removing a (manually added) duplicate of the
hashed-string include at the end of includes. So after removing the
duplicate include kdevelop started to reparse the file and crashed close
to the end. I'll leave the core file around in case more frames/threads
are needed.

#0  0xb6641b9f in memcpy () from /lib/libc.so.6
#1  0xb74ed818 in QListData::detach2 () from /home/andreas/qt-copy/lib/libQtCore.so.4
#2  0xb768b0d5 in QList<KTextEditor::SmartRangeWatcher*>::detach_helper (this=0xb280580)
    at /home/andreas/qt-copy/include/QtCore/qlist.h:522
#3  0xb768b771 in QList<KTextEditor::SmartRangeWatcher*>::removeAll (this=0xb280580,
    _t=@0xafb4cf74) at /home/andreas/qt-copy/include/QtCore/qlist.h:573
#4  0xb76880cc in KTextEditor::SmartRange::removeWatcher (this=0xb280560, watcher=0xdbf1df8)
    at /home/andreas/KDE-work/4.0/kdelibs/interfaces/ktexteditor/smartrange.cpp:505
#5  0xb64b3ccd in KDevelop::EditorIntegratorPrivate::exitCurrentRange (this=0xdbf1df8)
    at /home/andreas/KDE-work/4.0/kdevplatform/language/editor/editorintegrator.cpp:408
#6  0xb0e44797 in KDevelop::AbstractUseBuilder<AST, NameAST, ContextBuilder>::newUse (
    this=0xafb4ddfc, newRange=
        {start = {line = 1125, column = 47}, end = {line = 1125, column = 47}},
    declaration=0xc0c5658)
    at /home/andreas/kde4/include/kdevplatform/language/duchain/builders/abstractusebuilder.h:197
#7  0xb0e449a0 in UseExpressionVisitor::usingDeclaration (this=0xafb4d7fc, start_token=5203,
    end_token=5204, decl=@0xafb4d830)
    at /home/andreas/KDE-work/4.0/kdevelop/languages/cpp/cppduchain/usebuilder.cpp:136
#8  0xb0e8e3c7 in Cpp::ExpressionVisitor::flushUse (this=0xafb4d7fc)
    at /home/andreas/KDE-work/4.0/kdevelop/languages/cpp/cppduchain/expressionvisitor.h:169
#9  0xb0e8ed53 in Cpp::ExpressionVisitor::newUse (this=0xafb4d7fc, node=0xdefb118,
    start_token=5205, end_token=5206, decl=@0xafb4d160)
    at /home/andreas/KDE-work/4.0/kdevelop/languages/cpp/cppduchain/expressionvisitor.h:157
#10 0xb0ea734e in NameASTVisitor::visitUnqualifiedName (this=0xafb4d2b8, node=0xdefb118)
    at /home/andreas/KDE-work/4.0/kdevelop/languages/cpp/cppduchain/name_visitor.cpp:109
#11 0xb0d9433e in Visitor::visit (this=0xafb4d2b8, node=0xdefb118)
    at /home/andreas/KDE-work/4.0/kdevelop/languages/cpp/parser/visitor.cpp:112
#12 0xb0d925d0 in DefaultVisitor::visitName (this=0xafb4d2b8, node=0xdefb0fc)
    at /home/andreas/KDE-work/4.0/kdevelop/languages/cpp/parser/default_visitor.cpp:239
#13 0xb0d9433e in Visitor::visit (this=0xafb4d2b8, node=0xdefb0fc)
    at /home/andreas/KDE-work/4.0/kdevelop/languages/cpp/parser/visitor.cpp:112
#14 0xb0ea6187 in NameASTVisitor::run (this=0xafb4d2b8, node=0xdefb0fc, skipLastNamePart=false)
    at /home/andreas/KDE-work/4.0/kdevelop/languages/cpp/cppduchain/name_visitor.cpp:250
#15 0xb0e886c8 in Cpp::ExpressionVisitor::visitName (this=0xafb4d7fc, node=0xdefb0fc)
    at /home/andreas/KDE-work/4.0/kdevelop/languages/cpp/cppduchain/expressionvisitor.cpp:473
#16 0xb0d9433e in Visitor::visit (this=0xafb4d7fc, node=0xdefb0fc)

Andreas

-- 
You two ought to be more careful--your love could drag on for years and years.




More information about the KDevelop-devel mailing list