Endless recursion in Cpp

Niko Sams niko.sams at gmail.com
Sat Feb 7 16:06:23 UTC 2009


Hi,

I just got this crash on current trunk:
kdevelop(24052)/kdevelop (cpp support) CPPInternalParseJob::run: ===--
PARSING --===>
"/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/bits/basic_ios.h"
kdevelop(24052)/kdevelop (cpp support)
ContextBuilder::buildProxyContextFromContent:
ContextBuilder::buildProxyContextFromContent: compiling
kdevelop(24052)/kdevelop (cpp support) CPPInternalParseJob::run: ===--
Parsing finished --===>
"/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/bits/basic_ios.h"
kdevelop(24052)/kdevelop (cpp support) CPPInternalParseJob::run: ===--
PARSING --===>
"/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/ios"
kdevelop(24052)/kdevelop (cpp support)
ContextBuilder::buildProxyContextFromContent:
ContextBuilder::buildProxyContextFromContent: compiling
kdevelop(24052)/kdevelop (cpp support) CPPInternalParseJob::run: ===--
Parsing finished --===>
"/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/ios"
kdevelop(24052)/kdevelop (cpp support) PreprocessJob::sourceNeeded:
PreprocessJob "/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/ostream"
: no fitting entry for
KUrl("file:///usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/bits/ostream.tcc")
in du-chain, parsing
kdevelop(24052)/kdevelop (cpp support) PreprocessJob::run:
PreprocessJob: preprocessing
"/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/bits/ostream.tcc"
kdevelop(24052)/kdevelop (cpp support) CPPInternalParseJob::run: ===--
PARSING --===>
"/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/bits/ostream.tcc"
kdevelop(24052)/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(24052)/kdevelop (cpp support) ContextBuilder::buildContexts:
ContextBuilder::buildContexts: compiling
kdevelop(24052)/kdevelop (cpp support)
Cpp::FindDeclaration::closeIdentifier: Tried to search in
forward-declaration of  "basic_ostream< < template >::d::_CharT, <
delayed >::ar_traits< _CharT > >"
kdevelop(24052)/kdevelop (cpp support)
Cpp::FindDeclaration::closeIdentifier: Tried to search in
forward-declaration of  "basic_ostream< < template >::d::_CharT, <
delayed >::ar_traits< _CharT > >"
kdevelop(24052)/kdevplatform (language)
KDevelop::DUContext::findDeclarationsInternal: resolved self as
import: "std::basic_ostream< _CharT, _Traits >::operator<<"

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xaeb0eb90 (LWP 24071)]
0xb600f513 in QBasicAtomicPointer<KDevelop::TemporaryDataManager<KDevVarLengthArray<KDevelop::IndexedType,
10>, true> >::operator! (this=0xb609a9e8)
    at /usr/local/include/QtCore/qbasicatomic.h:140
140         inline bool operator!() const
(gdb) bt
#0  0xb600f513 in
QBasicAtomicPointer<KDevelop::TemporaryDataManager<KDevVarLengthArray<KDevelop::IndexedType,
10>, true> >::operator! (this=0xb609a9e8)
    at /usr/local/include/QtCore/qbasicatomic.h:140
#1  0xb600e8b6 in operator-> (this=0xb609a9e4) at
/home/niko/kde/kdevplatform-trunk/language/duchain/instantiationinformation.cpp:26
#2  0xb600ea30 in operator* (this=0xb609a9e4) at
/home/niko/kde/kdevplatform-trunk/language/duchain/instantiationinformation.cpp:26
#3  0xb600ea4f in
KDevelop::temporaryHashInstantiationInformationtemplateParameters ()
    at /home/niko/kde/kdevplatform-trunk/language/duchain/instantiationinformation.cpp:26
#4  0xb6013e32 in
KDevelop::InstantiationInformation::templateParametersSize
(this=0xae30f3fc)
    at /home/niko/kde/kdevplatform-trunk/language/duchain/./instantiationinformation.h:73
#5  0xb60140cb in
KDevelop::InstantiationInformation::templateParametersEquals<KDevelop::InstantiationInformation>
(this=0xae30f3fc, rhs=@0x8097162)
    at /home/niko/kde/kdevplatform-trunk/language/duchain/./instantiationinformation.h:73
#6  0xb6014168 in
KDevelop::InstantiationInformation::templateParametersListChainEquals<KDevelop::InstantiationInformation>
(this=0xae30f3fc,
    rhs=@0x8097162) at
/home/niko/kde/kdevplatform-trunk/language/duchain/./instantiationinformation.h:73
#7  0xb6014196 in
KDevelop::InstantiationInformation::listsEqual<KDevelop::InstantiationInformation>
(this=0xae30f3fc, rhs=@0x8097162)
    at /home/niko/kde/kdevplatform-trunk/language/duchain/./instantiationinformation.h:75
#8  0xb600ebcf in KDevelop::InstantiationInformation::operator==
(this=0xae30f3fc, rhs=@0x8097162)
    at /home/niko/kde/kdevplatform-trunk/language/duchain/instantiationinformation.cpp:98
#9  0xb60141c6 in
KDevelop::AppendedListItemRequest<KDevelop::InstantiationInformation,
8u>::equals (this=0xae30f29c, item=0x8097162)
    at /home/niko/kde/kdevplatform-trunk/language/duchain/./appendedlist.h:329
#10 0xb6014282 in KDevelop::Bucket<KDevelop::InstantiationInformation,
KDevelop::AppendedListItemRequest<KDevelop::InstantiationInformation,
8u>, KDevelop::NoDynamicData, 0u>::findIndex (this=0x805ad18,
request=@0xae30f29c, dynamic=0x0)
    at /home/niko/kde/kdevplatform-trunk/language/duchain/repositories/itemrepository.h:394
#11 0xb6014d61 in
KDevelop::ItemRepository<KDevelop::InstantiationInformation,
KDevelop::AppendedListItemRequest<KDevelop::InstantiationInformation,
8u>, KDevelop::NoDynamicData, true, 0u, 524288u>::index
(this=0xb609a980, request=@0xae30f29c, dynamic=0x0)
    at /home/niko/kde/kdevplatform-trunk/language/duchain/repositories/itemrepository.h:1166
#12 0xb600f195 in KDevelop::InstantiationInformation::indexed (this=0xae30f3fc)
---Type <return> to continue, or q <return> to quit---
    at /home/niko/kde/kdevplatform-trunk/language/duchain/instantiationinformation.cpp:132
#13 0xb14a463b in Cpp::TemplateDeclaration::instantiate
(this=0xacaec66c, _templateArguments=@0xae30f580, source=0xab837220,
forceLocal=false)
    at /home/niko/kde/kdevelop-trunk/plugins/languages/cpp/cppduchain/templatedeclaration.cpp:843
#14 0xb14a6b14 in Cpp::TemplateDeclaration::specialize
(this=0xacaec66c, specialization=66568, topContext=0xab837220,
upDistance=0)
    at /home/niko/kde/kdevelop-trunk/plugins/languages/cpp/cppduchain/templatedeclaration.cpp:274
#15 0xb1450599 in
Cpp::SpecialTemplateDeclaration<KDevelop::ForwardDeclaration>::specialize
(this=0xacaec648, specialization=66568, topContext=0xab837220,
    upDistance=0) at
/home/niko/kde/kdevelop-trunk/plugins/languages/cpp/cppduchain/templatedeclaration.h:262
#16 0xb5fdb09b in KDevelop::DeclarationId::getDeclaration
(this=0xabf55664, top=0xab837220)
    at /home/niko/kde/kdevplatform-trunk/language/duchain/declarationid.cpp:173
#17 0xb5f75642 in KDevelop::DUContext::Import::context
(this=0xabf5565c, topContext=0xab837220)
    at /home/niko/kde/kdevplatform-trunk/language/duchain/ducontext.cpp:1821
#18 0xb5f76d29 in KDevelop::DUContextDynamicData::imports
(this=0xabf573f8, context=0xabf570e8, source=0xab837220)
    at /home/niko/kde/kdevplatform-trunk/language/duchain/ducontext.cpp:122
#19 0xb5f76d50 in KDevelop::DUContextDynamicData::imports
(this=0xabf573f8, context=0xabf570e8, source=0xab837220)
    at /home/niko/kde/kdevplatform-trunk/language/duchain/ducontext.cpp:123
#20 0xb5f76d50 in KDevelop::DUContextDynamicData::imports
(this=0xabf573f8, context=0xabf570e8, source=0xab837220)
    at /home/niko/kde/kdevplatform-trunk/language/duchain/ducontext.cpp:123
#21 0xb5f76d50 in KDevelop::DUContextDynamicData::imports
(this=0xabf573f8, context=0xabf570e8, source=0xab837220)
    at /home/niko/kde/kdevplatform-trunk/language/duchain/ducontext.cpp:123
#22 0xb5f76d50 in KDevelop::DUContextDynamicData::imports
(this=0xabf573f8, context=0xabf570e8, source=0xab837220)
    at /home/niko/kde/kdevplatform-trunk/language/duchain/ducontext.cpp:123
#23 0xb5f76d50 in KDevelop::DUContextDynamicData::imports
(this=0xabf573f8, context=0xabf570e8, source=0xab837220)
    at /home/niko/kde/kdevplatform-trunk/language/duchain/ducontext.cpp:123
#24 0xb5f76d50 in KDevelop::DUContextDynamicData::imports
(this=0xabf573f8, context=0xabf570e8, source=0xab837220)
    at /home/niko/kde/kdevplatform-trunk/language/duchain/ducontext.cpp:123


Niko




More information about the KDevelop-devel mailing list