Summary: | crash in KDevelop::DUContext::findLocalDeclarations | ||
---|---|---|---|
Product: | [Developer tools] kdevplatform | Reporter: | ZhangHuiJie <yitianbuji> |
Component: | language | Assignee: | kdevelop-bugs-null |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | simonandric5 |
Priority: | NOR | ||
Version: | 1.7.1 | ||
Target Milestone: | --- | ||
Platform: | Kubuntu | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/kdevelop/ddf0237dd589faf59478654245de88c23e01c407 | Version Fixed In: | |
Sentry Crash Report: |
Description
ZhangHuiJie
2015-08-11 13:23:08 UTC
Could you add the code snippet which caused this crash? For reference? Git commit ddf0237dd589faf59478654245de88c23e01c407 by Milian Wolff, on behalf of Zhang HuiJie. Committed on 13/08/2015 at 15:13. Pushed by mwolff into branch '4.7'. Set maximum number of recursive calls for getMemberFunctions to 50. In some special cases of the curiously recurring template pattern [1], in my code (OpenFOAM-2.3.x), the C++ plugin will get into an endless loop and break down finally. This patch prevents it by adding a max recursion depth of 50 to getMemberFunctions. [1]: https://en.wikipedia.org/wiki/Curiously_recurring_template_pattern, REVIEW: 124712 M +4 -3 languages/cpp/cppduchain/typeutils.cpp M +1 -1 languages/cpp/cppduchain/typeutils.h http://commits.kde.org/kdevelop/ddf0237dd589faf59478654245de88c23e01c407 |