Crash in DUChain

Andreas Pakulat apaku at gmx.de
Sun Oct 12 19:04:29 UTC 2008


Hi,

activated project-parsing. Then re-started kdevelop. At around 9% kdevelop
crashed in the python plugin - no idea why it was even loaded. After
removing it and re-trying I now get a reproduceable assert in
topducontextdynamicdata.cpp line 118.

Before that I see a lot of warnings:
kdevelop(19607)/kdevplatform (language)
KDevelop::PersistentSymbolTable::addContext: too many contexts for id ""
4096 ignoring new one    

Removing .kdevduchain avoids the crash, but I thought I'd post this anyway.

Backtrace:
,----
| #0  0xb5e16566 in raise () from /lib/libc.so.6
| #1  0xb5e17d88 in abort () from /lib/libc.so.6
| #2  0xb7db5728 in qt_message_output (msgType=QtFatalMsg, 
|     buf=0xbfffbca0 "ASSERT: \"ret\" in file
| /home/andreas/src/kdevplatform/language/duchain/topducontextdynamicdata.cpp,
| line 118") at /home/andreas/src/qt-copy/src/corelib/global/qglobal.cpp:2102                        
| #3  0xb7db578c in qFatal (msg=0xb7f37cbc "ASSERT: \"%s\" in file %s, line
| %d")                                
|     at /home/andreas/src/qt-copy/src/corelib/global/qglobal.cpp:2303                                          
| #4  0xb7db5bd8 in qt_assert (assertion=0xb5bf068d "ret",                                                      
|     file=0xb5bf04d4
| "/home/andreas/src/kdevplatform/language/duchain/topducontextdynamicdata.cpp",
| line=118)  
|     at /home/andreas/src/qt-copy/src/corelib/global/qglobal.cpp:1872                                          
| #5  0xb5b67740 in KDevelop::TopDUContextDynamicData::load
| (topContextIndex=3453)                              
|     at
| /home/andreas/src/kdevplatform/language/duchain/topducontextdynamicdata.cpp:118                        
| #6  0xb5b3e371 in KDevelop::DUChainPrivate::loadChain(unsigned int,
| QSet<unsigned int>&) ()                   
|    from /usr/local/lib/libkdevplatformlanguage.so.1                                                           
| #7  0xb5b32df1 in KDevelop::DUChain::chainForIndex (this=0x83318b8,
| index=3453)                               
|     at /home/andreas/src/kdevplatform/language/duchain/duchain.cpp:619                                        
| #8  0xb5b6d319 in KDevelop::IndexedDeclaration::declaration
| (this=0x84b7eda)                                  
|     at /home/andreas/src/kdevplatform/language/duchain/declaration.cpp:251                                    
| #9  0xb23e2916 in ClassModel::getDuObject (node=0x8336af8)                                                    
|     at
| /home/andreas/src/kdevplatform/plugins/classbrowser/classmodel.cpp:721                                 
| #10 0xb23e3b36 in ClassModel::data (node=0x8336af8, role=0)                                                   
|     at
| /home/andreas/src/kdevplatform/plugins/classbrowser/classmodel.cpp:844                                 
| #11 0xb23e41fa in ClassModel::orderItems (p1=0x83ee500, p2=0x8336af8)                                         
|     at
| /home/andreas/src/kdevplatform/plugins/classbrowser/classmodel.cpp:458                                 
| #12 0xb23e457c in ClassModel::Node::insertChild (this=0x8803fe0,
| node=0x83ee500, model=0x880db20)             
|     at /usr/local/include/QtCore/qalgorithms.h:523                                                            
| #13 0xb23e5661 in ClassModel::refreshNodes (this=0x880db20,
| file=@0x9000780, level=1, from=@0xbfffe11c)       
|     at
| /home/andreas/src/kdevplatform/plugins/classbrowser/classmodel.cpp:597                                 
| #14 0xb23e62de in ClassModel::referenceFile (this=0x880db20,
| file=@0x9000780)                                 
|     at
| /home/andreas/src/kdevplatform/plugins/classbrowser/classmodel.cpp:162                                 
| #15 0xb23e65ef in ClassModel::projectOpened (this=0x880db20,
| project=0x820f1a0)                               
|     at
| /home/andreas/src/kdevplatform/plugins/classbrowser/classmodel.cpp:156                                 
| #16 0xb23e6f5c in ClassModel::qt_metacall (this=0x880db20,
| _c=QMetaObject::InvokeMetaMethod, _id=5,           
|     _a=0xbfffe2dc) at
| /home/andreas/src/build/kdevplatform/plugins/classbrowser/classmodel.moc:88             
| #17 0xb7eec4fc in QMetaObject::activate (sender=0x81858a8,
| from_signal_index=4, to_signal_index=4,            
|     argv=0xbfffe2dc) at
| /home/andreas/src/qt-copy/src/corelib/kernel/qobject.cpp:3022                         
| #18 0xb7eecaaf in QMetaObject::activate (sender=0x81858a8, m=0xb78d05b8,
| local_signal_index=0,                
|     argv=0xbfffe2dc) at
| /home/andreas/src/qt-copy/src/corelib/kernel/qobject.cpp:3092                         
| ---Type <return> to continue, or q <return> to quit---                                                        
| #19 0xb78c8ad3 in KDevelop::IProjectController::projectOpened
| (this=0x81858a8, _t1=0x820f1a0)                 
|     at
| /home/andreas/src/build/kdevplatform/interfaces/iprojectcontroller.moc:129                             
| #20 0xb788f768 in KDevelop::ProjectController::projectImportingFinished
| (this=0x81858a8, project=0x820f1a0)   
|     at /home/andreas/src/kdevplatform/shell/projectcontroller.cpp:401                                         
| #21 0xb78948ef in KDevelop::Project::qt_metacall (this=0x820f1a0,
| _c=QMetaObject::InvokeMetaMethod, _id=13,   
|     _a=0xbfffe58c) at /home/andreas/src/kdevplatform/shell/project.cpp:162
| #22 0xb7eec4fc in QMetaObject::activate (sender=0x8625cb0,
| from_signal_index=7, to_signal_index=7,
|     argv=0xbfffe58c) at
| /home/andreas/src/qt-copy/src/corelib/kernel/qobject.cpp:3022
| #23 0xb7eecaaf in QMetaObject::activate (sender=0x8625cb0, m=0xb7b07508,
| local_signal_index=3,
|     argv=0xbfffe58c) at
| /home/andreas/src/qt-copy/src/corelib/kernel/qobject.cpp:3092
| #24 0xb79ad1a3 in KJob::result (this=0x8625cb0, _t1=0x8625cb0)
|     at /home/andreas/src/build/kdelibs/kdecore/kjob.moc:186
| #25 0xb79ad6b2 in KJob::emitResult (this=0x8625cb0) at
| /home/andreas/src/kdelibs/kdecore/jobs/kjob.cpp:290
| #26 0xb5c0b433 in KDevelop::ImportProjectJob::qt_metacall (this=0x8625cb0,
| _c=QMetaObject::InvokeMetaMethod,
|     _id=0, _a=0xbfffe6b0) at
| /home/andreas/src/kdevplatform/project/importprojectjob.cpp:60
| #27 0xb7eec4fc in QMetaObject::activate (sender=0x867e108,
| from_signal_index=4, to_signal_index=4, argv=0x0)
|     at /home/andreas/src/qt-copy/src/corelib/kernel/qobject.cpp:3022
| #28 0xb7eecaaf in QMetaObject::activate (sender=0x867e108, m=0xb7fddc04,
| local_signal_index=0, argv=0x0)
|     at /home/andreas/src/qt-copy/src/corelib/kernel/qobject.cpp:3092
| #29 0xb7f36b19 in QTimer::timeout (this=0x867e108) at
| .moc/debug-shared/moc_qtimer.cpp:126
| #30 0xb7ef77d6 in QTimer::timerEvent (this=0x867e108, e=0xbfffec7c)
|     at /home/andreas/src/qt-copy/src/corelib/kernel/qtimer.cpp:257
| #31 0xb7ee9fac in QObject::event (this=0x867e108, e=0xbfffec7c)
|     at /home/andreas/src/qt-copy/src/corelib/kernel/qobject.cpp:1111
| #32 0xb619f9ff in QApplicationPrivate::notify_helper (this=0x80b3fc0,
| receiver=0x867e108, e=0xbfffec7c)
|     at /home/andreas/src/qt-copy/src/gui/kernel/qapplication.cpp:3803
| #33 0xb619fd14 in QApplication::notify (this=0xbfffef94,
| receiver=0x867e108, e=0xbfffec7c)
|     at /home/andreas/src/qt-copy/src/gui/kernel/qapplication.cpp:3393
| #34 0xb76a7cad in KApplication::notify (this=0xbfffef94,
| receiver=0x867e108, event=0xbfffec7c)
|     at /home/andreas/src/kdelibs/kdeui/kernel/kapplication.cpp:307
| #35 0xb7ed3e6f in QCoreApplication::notifyInternal (this=0xbfffef94,
| receiver=0x867e108, event=0xbfffec7c)
|     at
| /home/andreas/src/qt-copy/src/corelib/kernel/qcoreapplication.cpp:587
| #36 0xb7ed888d in QCoreApplication::sendEvent (receiver=0x867e108,
| event=0xbfffec7c)
|     at /home/andreas/src/qt-copy/src/corelib/kernel/qcoreapplication.h:209
| #37 0xb7f0d442 in QTimerInfoList::activateTimers (this=0x80b6f3c)
|     at
| /home/andreas/src/qt-copy/src/corelib/kernel/qeventdispatcher_unix.cpp:557
| #38 0xb7f0ac6b in timerSourceDispatch (source=0x80b6f08)
|     at
| /home/andreas/src/qt-copy/src/corelib/kernel/qeventdispatcher_glib.cpp:160
| ---Type <return> to continue, or q <return> to quit---
| #39 0xb5d611b8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
| #40 0xb5d64853 in ?? () from /usr/lib/libglib-2.0.so.0
| #41 0x080b6258 in ?? ()
| #42 0x00000000 in ?? ()
`----

Andreas

-- 
You could live a better life, if you had a better mind and a better body.




More information about the KDevelop-devel mailing list