[KDev4] Cpp part crashes when openning main.cpp file [part2]

dukju ahn dukjuahn at gmail.com
Sun Jul 8 15:45:22 UTC 2007


I'm sorry to report continuously but when I open main.cpp file
of kdevelop4, chain write lock assertion fails.
I attached full output and stacktrace, hoping that it is useful.
-------------- next part --------------

<font color="blue">(gdb) Process exited</font>
gdb /home/kdev/usr/bin/kdevelop --interpreter=mi2 -quiet
<font color="blue">(gdb) bt</font>
bt
#0  0x00002ae46ede107b in raise () from /lib64/libc.so.6
#1  0x00002ae46ede284e in abort () from /lib64/libc.so.6
#2  0x00002ae46a9209a8 in qt_message_output (msgType=QtFatalMsg, buf=0x41fff110 "ASSERT: \"DUChain::lock()->currentThreadHasWriteLock()\" in file /home/kdev/ktrunk/kdevplatform/language/duchain/ducontext.cpp, line 360") at global/qglobal.cpp:2145
#3  0x00002ae46a920ab7 in qFatal (msg=0x2ae46aa0d408 "ASSERT: \"%s\" in file %s, line %d") at global/qglobal.cpp:2376
#4  0x00002ae46a920bf5 in qt_assert (assertion=0x2ae46f9431e0 "DUChain::lock()->currentThreadHasWriteLock()", file=0x2ae46f9431a0 "/home/kdev/ktrunk/kdevplatform/language/duchain/ducontext.cpp", line=360) at global/qglobal.cpp:1904
#5  0x00002ae46f92df8a in KDevelop::DUContext::removeImportedParentContext (this=0x2aaaaab32260, context=0x2aaaaab0e590) at /home/kdev/ktrunk/kdevplatform/language/duchain/ducontext.cpp:360
#6  0x00002aaaaac14f15 in CPPInternalParseJob::run (this=0x2aaaaab0b2e0) at /home/kdev/ktrunk/kdevelop2/languages/cpp/cppparsejob.cpp:267
#7  0x00002aaaaac15529 in CPPParseJob::parseForeground (this=0x42001630) at /home/kdev/ktrunk/kdevelop2/languages/cpp/cppparsejob.cpp:86
#8  0x00002aaaaac176e3 in PreprocessJob::sourceNeeded (this=0x1098d60, fileName=@0x42001920, type=rpp::Preprocessor::IncludeLocal, sourceLine=0) at /home/kdev/ktrunk/kdevelop2/languages/cpp/preprocessjob.cpp:264
#9  0x00002aaaaafd1af6 in rpp::pp::handle_include (this=0x42001cf0, skip_current_path=false, input=@0x42001ab0, output=@0x42001bb0) at /home/kdev/ktrunk/kdevelop2/languages/cpp/parser/rpp/pp-engine.cpp:315
#10 0x00002aaaaafd1cb3 in rpp::pp::handle_directive (this=0x42001cf0, directive=@0x42001af0, input=@0x42001ab0, output=@0x42001bb0) at /home/kdev/ktrunk/kdevelop2/languages/cpp/parser/rpp/pp-engine.cpp:253
#11 0x00002aaaaafd1509 in rpp::pp::operator() (this=0x42001cf0, input=@0x42001be0, output=@0x42001bb0) at /home/kdev/ktrunk/kdevelop2/languages/cpp/parser/rpp/pp-engine.cpp:373
#12 0x00002aaaaafd217d in rpp::pp::processFile (this=0x42001cf0, input=@0x42002db0, type=rpp::pp::Data) at /home/kdev/ktrunk/kdevelop2/languages/cpp/parser/rpp/pp-engine.cpp:117
#13 0x00002aaaaac17f71 in PreprocessJob::run (this=0x1098d60) at /home/kdev/ktrunk/kdevelop2/languages/cpp/preprocessjob.cpp:190
#14 0x00002ae46cf41e71 in ThreadWeaver::JobRunHelper::runTheJob (this=0x42002ff0, th=0x108b540, job=0x1098d60) at /home/kdev/ktrunk/kdelibs/threadweaver/Weaver/Job.cpp:106
#15 0x00002ae46cf42075 in ThreadWeaver::Job::execute (this=0x1098d60, th=0x108b540) at /home/kdev/ktrunk/kdelibs/threadweaver/Weaver/Job.cpp:135
#16 0x00002ae46cf445c2 in ThreadWeaver::JobCollectionJobRunner::execute (this=0x10ea390, t=0x108b540) at /home/kdev/ktrunk/kdelibs/threadweaver/Weaver/JobCollection.cpp:82
#17 0x00002ae46cf44572 in ThreadWeaver::JobCollection::execute (this=0x108abe0, t=0x108b540) at /home/kdev/ktrunk/kdelibs/threadweaver/Weaver/JobCollection.cpp:225
#18 0x00002ae46cf41360 in ThreadWeaver::ThreadRunHelper::run (this=0x42003100, parent=0x1085c40, th=0x108b540) at /home/kdev/ktrunk/kdelibs/threadweaver/Weaver/Thread.cpp:95
#19 0x00002ae46cf41473 in ThreadWeaver::Thread::run (this=0x108b540) at /home/kdev/ktrunk/kdelibs/threadweaver/Weaver/Thread.cpp:142
#20 0x00002ae46a929288 in QThreadPrivate::start (arg=0x108b540) at thread/qthread_unix.cpp:166
#21 0x00002ae46aba3f1a in start_thread () from /lib64/libpthread.so.0
#22 0x00002ae46ee7b602 in clone () from /lib64/libc.so.6
#23 0x0000000000000000 in ?? ()
^done



kparts: MainWindow::createGUI, part=KateDocument(0xed05a0)  KateDocument
kparts: ReadOnlyPart::guiActivateEvent -> file:///home/kdev/ktrunk/kdevelop2/src/main.cpp
kdevelop (core): Finding all Plugins for Extension: ILanguageSupport|("'text/x-c++src' in [X-KDevelop-SupportedMimeTypes]")
kio (KTrader): query for serviceType KDevelop/Plugin : returning 1 offers
kdevelop (core): creating language C++
kdevelop (core): activating language C++
kdevelop (cpp support): Registered completion model
kdevelop (cpp support): CppLanguageSupport::documentActivated
kdevelop (cpp support): adding document to bgparser
kdevelop: BackgroundParser::addDocument
kdevelop: BackgroundParser::addDocument: queuing file:///home/kdev/ktrunk/kdevelop2/src/main.cpp
kdevelop: BackgroundParser::parseDocumentsInternal
kdevelop: adding document file:///home/kdev/ktrunk/kdevelop2/src/main.cpp
kdevelop (cpp support): LexedFile::LexedFile: created for file:///home/kdev/ktrunk/kdevelop2/src/main.cpp modification-time: QDateTime("Thu Jul 5 01:15:43 2007")
kdevelop (cpp support): [CPPParseJob::CPPParseJob(const KUrl&, CppLanguageSupport*, PreprocessJob*)] Created job CPPParseJob(0x108abe0)  pp PreprocessJob(0x1098d60)  parse CPPInternalParseJob(0x1098c00)
kdevelop: [void KDevelop::BackgroundParserPrivate::parseDocumentsInternal()] Enqueue CPPParseJob(0x108abe0)
kdevelop (cpp support): CppLanguageSupport::documentActivated
kdevelop (cpp support): adding document to bgparser
kdevelop: BackgroundParser::addDocument
kdevelop: BackgroundParser::addDocument: queuing file:///home/kdev/ktrunk/kdevelop2/src/main.cpp
kdevelop: BackgroundParser::parseDocumentsInternal
kdevelop: skipping file:///home/kdev/ktrunk/kdevelop2/src/main.cpp because it is already being parsed
kdevelop: PreprocessJob: preprocessing file:///home/kdev/ktrunk/kdevelop2/src/main.cpp
kdevelop (cpp support): ===-- PREPROCESSING --===> main.cpp <== readFromDisk: false size: 11303
kdevelop: PreprocessJob file:///home/kdev/ktrunk/kdevelop2/src/main.cpp: searching for include config.h
kdevelop: PreprocessJob file:///home/kdev/ktrunk/kdevelop2/src/main.cpp: include not found: config.h
kdevelop: PreprocessJob file:///home/kdev/ktrunk/kdevelop2/src/main.cpp: searching for include kaboutdata.h
kdevelop: PreprocessJob file:///home/kdev/ktrunk/kdevelop2/src/main.cpp: include not found: kaboutdata.h
kdevelop: PreprocessJob file:///home/kdev/ktrunk/kdevelop2/src/main.cpp: searching for include kapplication.h
kdevelop: PreprocessJob file:///home/kdev/ktrunk/kdevelop2/src/main.cpp: include not found: kapplication.h
kdevelop: PreprocessJob file:///home/kdev/ktrunk/kdevelop2/src/main.cpp: searching for include kcmdlineargs.h
kdevelop: PreprocessJob file:///home/kdev/ktrunk/kdevelop2/src/main.cpp: include not found: kcmdlineargs.h
kdevelop: PreprocessJob file:///home/kdev/ktrunk/kdevelop2/src/main.cpp: searching for include klocale.h
kdevelop: PreprocessJob file:///home/kdev/ktrunk/kdevelop2/src/main.cpp: include not found: klocale.h
kdevelop: PreprocessJob file:///home/kdev/ktrunk/kdevelop2/src/main.cpp: searching for include kxmlguiwindow.h
kdevelop: PreprocessJob file:///home/kdev/ktrunk/kdevelop2/src/main.cpp: include not found: kxmlguiwindow.h
kdevelop: PreprocessJob file:///home/kdev/ktrunk/kdevelop2/src/main.cpp: searching for include kstandarddirs.h
kdevelop: PreprocessJob file:///home/kdev/ktrunk/kdevelop2/src/main.cpp: include not found: kstandarddirs.h
kdevelop: PreprocessJob file:///home/kdev/ktrunk/kdevelop2/src/main.cpp: searching for include kdebug.h
kdevelop: PreprocessJob file:///home/kdev/ktrunk/kdevelop2/src/main.cpp: include not found: kdebug.h
kdevelop: PreprocessJob file:///home/kdev/ktrunk/kdevelop2/src/main.cpp: searching for include QFileInfo
kdevelop: PreprocessJob file:///home/kdev/ktrunk/kdevelop2/src/main.cpp: include not found: QFileInfo
kdevelop: PreprocessJob file:///home/kdev/ktrunk/kdevelop2/src/main.cpp: searching for include QPixmap
kdevelop: PreprocessJob file:///home/kdev/ktrunk/kdevelop2/src/main.cpp: include not found: QPixmap
kdevelop: PreprocessJob file:///home/kdev/ktrunk/kdevelop2/src/main.cpp: searching for include QTimer
kdevelop: PreprocessJob file:///home/kdev/ktrunk/kdevelop2/src/main.cpp: include not found: QTimer
kdevelop: PreprocessJob file:///home/kdev/ktrunk/kdevelop2/src/main.cpp: searching for include core.h
kdevelop: PreprocessJob file:///home/kdev/ktrunk/kdevelop2/src/main.cpp: include not found: core.h
kdevelop: PreprocessJob file:///home/kdev/ktrunk/kdevelop2/src/main.cpp: searching for include mainwindow.h
kdevelop: PreprocessJob file:///home/kdev/ktrunk/kdevelop2/src/main.cpp: include not found: mainwindow.h
kdevelop: PreprocessJob file:///home/kdev/ktrunk/kdevelop2/src/main.cpp: searching for include splashscreen.h
kdevelop: PreprocessJob file:///home/kdev/ktrunk/kdevelop2/src/main.cpp(0 macros): found include-file splashscreen.h: file:///home/kdev/ktrunk/kdevelop2/src/splashscreen.h
kdevelop (cpp support): EnvironmentManager::lexedFile: cache for file file:///home/kdev/ktrunk/kdevelop2/src/splashscreen.h is empty
kdevelop: PreprocessJob file:///home/kdev/ktrunk/kdevelop2/src/main.cpp: no fitting entry in du-chain, parsing
kdevelop (cpp support): [CPPParseJob::CPPParseJob(const KUrl&, CppLanguageSupport*, PreprocessJob*)] Created job CPPParseJob(0x42001630)  pp QObject(0x0)   parse QObject(0x0)
kdevelop (cpp support): LexedFile::LexedFile: created for file:///home/kdev/ktrunk/kdevelop2/src/splashscreen.h modification-time: QDateTime("Tue May 29 18:31:50 2007")
kdevelop: PreprocessJob: preprocessing file:///home/kdev/ktrunk/kdevelop2/src/splashscreen.h
QObject::connect: Cannot connect (null)::finished() to KDevelop::Language::threadFinished()
kdevelop (cpp support): ===-- PREPROCESSING --===> splashscreen.h <== readFromDisk: true size: 2382
kdevelop (cpp support): defined macro _SPLASHSCREEN_H_
kdevelop: PreprocessJob file:///home/kdev/ktrunk/kdevelop2/src/splashscreen.h: searching for include ksplashscreen.h
kdevelop: PreprocessJob file:///home/kdev/ktrunk/kdevelop2/src/splashscreen.h: include not found: ksplashscreen.h
kdevelop (cpp support): file:///home/kdev/ktrunk/kdevelop2/src/main.cpp: merging file:///home/kdev/ktrunk/kdevelop2/src/splashscreen.h
kdevelop (cpp support): defined in this:
kdevelop (cpp support): defined macros in other: _SPLASHSCREEN_H_
kdevelop (cpp support):
kdevelop (cpp support): file:///home/kdev/ktrunk/kdevelop2/src/main.cpp: defined in this after merge: _SPLASHSCREEN_H_
kdevelop (cpp support):
kdevelop: PreprocessJob: finished file:///home/kdev/ktrunk/kdevelop2/src/splashscreen.h
kdevelop (cpp support): ===-- PARSING --===> splashscreen.h
kdevelop (cpp support): building duchain
kdevelop: BackgroundParser::parseDocumentsInternal
kdevelop: skipping file:///home/kdev/ktrunk/kdevelop2/src/main.cpp because it is already being parsed
kdevelop: duchain: adding document file:///home/kdev/ktrunk/kdevelop2/src/splashscreen.h 3205929445
kdevelop (cpp support): EnvironmentManager::addFile file:///home/kdev/ktrunk/kdevelop2/src/splashscreen.h
kdevelop (cpp support): EnvironmentManager: adding an instance of file:///home/kdev/ktrunk/kdevelop2/src/splashscreen.h
kdevelop: found for QPixmap: Declaration: QPixmap QPixmap type: QPixmap
kdevelop: found for QPixmap: Declaration: QPixmap QPixmap type: QPixmap
kdevelop: no declaration found for Qt::WindowFlags in context "SplashScreen"
kdevelop: found for QPainter: Declaration: QPainter QPainter type: QPainter
kdevelop: no declaration found for QString in context "showMessage"
kdevelop: no declaration found for QColor in context "showMessage"
kdevelop: no declaration found for QString in context "SplashScreen"
kdevelop (cpp support): built top-level context with 0 declarations and 0 included files
kdevelop (cpp support): duchain is built
kdevelop (cpp support): ===-- Parsing finished --===> splashscreen.h
kdevelop: PreprocessJob file:///home/kdev/ktrunk/kdevelop2/src/main.cpp(1 macros): file included
kdevelop: PreprocessJob file:///home/kdev/ktrunk/kdevelop2/src/main.cpp: searching for include plugincontroller.h
kdevelop: PreprocessJob file:///home/kdev/ktrunk/kdevelop2/src/main.cpp: include not found: plugincontroller.h
kdevelop: PreprocessJob file:///home/kdev/ktrunk/kdevelop2/src/main.cpp: searching for include kdevideextension.h
kdevelop: PreprocessJob file:///home/kdev/ktrunk/kdevelop2/src/main.cpp(1 macros): found include-file kdevideextension.h: file:///home/kdev/ktrunk/kdevelop2/src/kdevideextension.h
kdevelop (cpp support): EnvironmentManager::lexedFile: cache for file file:///home/kdev/ktrunk/kdevelop2/src/kdevideextension.h is empty
kdevelop: PreprocessJob file:///home/kdev/ktrunk/kdevelop2/src/main.cpp: no fitting entry in du-chain, parsing
kdevelop (cpp support): [CPPParseJob::CPPParseJob(const KUrl&, CppLanguageSupport*, PreprocessJob*)] Created job CPPParseJob(0x42001630)  pp QObject(0x0)   parse QObject(0x0)
kdevelop (cpp support): LexedFile::LexedFile: created for file:///home/kdev/ktrunk/kdevelop2/src/kdevideextension.h modification-time: QDateTime("Tue Jun 5 00:16:34 2007")
kdevelop: PreprocessJob: preprocessing file:///home/kdev/ktrunk/kdevelop2/src/kdevideextension.h
kdevelop (cpp support): ===-- PREPROCESSING --===> kdevideextension.h <== readFromDisk: true size: 1888
kdevelop (cpp support): defined macro KDEVIDEEXTENSION_H
kdevelop: PreprocessJob file:///home/kdev/ktrunk/kdevelop2/src/kdevideextension.h: searching for include shellextension.h
kdevelop: PreprocessJob file:///home/kdev/ktrunk/kdevelop2/src/kdevideextension.h: include not found: shellextension.h
kdevelop (cpp support): file:///home/kdev/ktrunk/kdevelop2/src/main.cpp: merging file:///home/kdev/ktrunk/kdevelop2/src/kdevideextension.h
kdevelop (cpp support): defined in this: _SPLASHSCREEN_H_
kdevelop (cpp support):
kdevelop (cpp support): defined macros in other: KDEVIDEEXTENSION_H
kdevelop (cpp support):
kdevelop (cpp support): file:///home/kdev/ktrunk/kdevelop2/src/main.cpp: defined in this after merge: KDEVIDEEXTENSION_H
_SPLASHSCREEN_H_
kdevelop (cpp support):
kdevelop: PreprocessJob: finished file:///home/kdev/ktrunk/kdevelop2/src/kdevideextension.h
kdevelop (cpp support): ===-- PARSING --===> kdevideextension.h
kdevelop (cpp support): building duchain
kdevelop: duchain: adding document file:///home/kdev/ktrunk/kdevelop2/src/kdevideextension.h 3980689761
kdevelop (cpp support): EnvironmentManager::addFile file:///home/kdev/ktrunk/kdevelop2/src/kdevideextension.h
kdevelop (cpp support): EnvironmentManager: adding an instance of file:///home/kdev/ktrunk/kdevelop2/src/kdevideextension.h
kdevelop: no declaration found for QString in context "KDevIDEExtension"
kdevelop: no declaration found for QString in context "KDevIDEExtension"
kdevelop: no declaration found for KDevelop::AreaParams in context "KDevIDEExtension"
kdevelop (cpp support): built top-level context with 3 declarations and 1 included files
ASSERT: "DUChain::lock()->currentThreadHasWriteLock()" in file /home/kdev/ktrunk/kdevplatform/language/duchain/ducontext.cpp, line 360



More information about the KDevelop-devel mailing list