Endless loop in DUContextDynamicData::imports

Peter Oberndorfer kumbayo84 at arcor.de
Sat Feb 7 17:34:07 UTC 2009


When opening almost any file in current kdevelop i get a stack overflow because
of a endless loop in DUContextDynamicData::imports
For example open kdevplatform project, Open file language/duchain/ducontext.cpp
-> file 

I worked around it with the following hack.
I hope some duchain guru can properly fix this problem.

I can also send my ostream.tcc in case it is needed(next weekend
since i am not reachable during this week).

Greetings Peter


possibly relevant part of the trace:
(for more information see full attached trace)

kdevelop(11348)/kdevelop (cpp support) CPPInternalParseJob::run: building duchain for "/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/bits/ostream.tcc"
kdevelop(11348)/kdevelop (cpp support) ContextBuilder::buildContexts: ContextBuilder::buildContexts: compiling
kdevelop(11348)/kdevelop (cpp support) Cpp::FindDeclaration::closeIdentifier: Tried to search in forward-declaration of  "basic_ostream< < template >::d::_CharT, < delayed >::ar_traits< _CharT > >"
kdevelop(11348)/kdevelop (cpp support) Cpp::FindDeclaration::closeIdentifier: Tried to search in forward-declaration of  "basic_ostream< < template >::d::_CharT, < delayed >::ar_traits< _CharT > >"
kdevelop(11348)/kdevplatform (language) KDevelop::DUContext::findDeclarationsInternal: resolved self as import: "std::basic_ostream< _CharT, _Traits >::operator<<"
kdevelop(11348)/kdevplatform (language) KDevelop::DUContextDynamicData::imports: possible endless loop detected
kdevelop(11348)/kdevplatform (language) KDevelop::DUContextDynamicData::imports: context "std::basic_ostream< _CharT, _Traits >::operator<<"
kdevelop(11348)/kdevplatform (language) KDevelop::DUContextDynamicData::imports: import "std::basic_ostream< _CharT, _Traits >::operator<<"
kdevelop(11348)/kdevplatform (language) KDevelop::DUContextDynamicData::imports: expect problems
-------------- next part --------------
A non-text attachment was scrubbed...
Name: imports_hack.diff
Type: text/x-diff
Size: 1310 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20090207/12ed7a36/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdevelop_duchain_endless_loop_trace.txt.bz2
Type: application/x-bzip2
Size: 14309 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20090207/12ed7a36/attachment-0001.bin>


More information about the KDevelop-devel mailing list