Jump on uninitialized value in simpletypecachebinder.h:266 (kdevelop 3.4 svn)
Christoph Bartoschek
bartoschek at or.uni-bonn.de
Tue Nov 28 15:15:40 UTC 2006
The variable m_haveBasesCache is not initialized in line
simpletypecachebinder.h:266. I guess this is the case because the constructor
in line 30 does not initialize it.
Here is the valgrind report:
at 0x99D9B91: SimpleTypeCacheBinder<SimpleTypeCodeModel>::getBases()
(simpletypecachebinder.h:266)
by 0x99AF908: CppCodeCompletion::computeCompletionEntryList(SimpleType,
QValueList<CodeCompletionEntry>&, KSharedPtr<ClassModel>, bool, int)
(cppcodecompletion.cpp:3719)
by 0x99B0097: CppCodeCompletion::computeCompletionEntryList(SimpleType,
QValueList<CodeCompletionEntry>&, QStringList const&, bool, int)
(cppcodecompletion.cpp:3412)
by 0x99B1591: CppCodeCompletion::computeCompletionEntryList(SimpleType,
QValueList<CodeCompletionEntry>&, QStringList const&, SimpleTypeNamespace*,
std::set<HashedString, std::less<HashedString>, std::allocator<HashedString>
>&, bool, int) (cppcodecompletion.cpp:3389)
by 0x99AFF93: CppCodeCompletion::computeCompletionEntryList(SimpleType,
QValueList<CodeCompletionEntry>&, QStringList const&, bool, int)
(cppcodecompletion.cpp:3407)
by 0x99B77A5: CppCodeCompletion::completeText(bool)
(cppcodecompletion.cpp:2647)
by 0x99B86E3: CppCodeCompletion::slotTimeout() (cppcodecompletion.cpp:864)
by 0x99BBA5F: CppCodeCompletion::qt_invoke(int, QUObject*)
(cppcodecompletion.moc:236)
More information about the KDevelop-devel
mailing list