Hi KDevelop developers, Thread 1 "kdevelop" received signal SIGSEGV, Segmentation fault. 0x00007fffbbde43de in cppcheck::Parameters::Parameters (this=0x7fffffffa870, project=0x192f730) at /data/project/kde/kdevelop/analyzers/cppcheck/parameters.cpp:110 110 m_projectBuildPath = m_project->buildSystemManager()->buildDirectory(m_project->projectItem()); so I simply added if (m_project->buildSystemManager()) check before m_project->buildSystemManager()->buildDirectory(...) Regards, Leslie Zhai
kdev-clang-tidy also segfault when analyzing source code.
Full backtrace next time please. And please upload diffs to Phabricator so we can review them easily.
Hi Kevin, Thanks for your reply! > Full backtrace next time please. OK! Please review my patch https://git.reviewboard.kde.org/r/129767/ Regards, Leslie Zhai
Hi Kevin, Please review my patch in Phabricator https://phabricator.kde.org/D3949 about filtering -Wdocumentation parser errors. Thanks a lot! Regards, Leslie Zhai
This happens when the Generic Project Manager is used (because it doesn't have a build system). It also crashes - at the same line - when opening "Configure Project" for a generic project when the CPPCheck plugin is loaded, even if it's not used or applicable.
Git commit fe1a940bf1278eee8a8b3248222195f2cb5a8bde by Kevin Funk, on behalf of Leslie Zhai. Committed on 04/01/2017 at 12:49. Pushed by kfunk into branch '5.1'. Fix segfault when analyzing source code issue Hi KDevelop developers, ``` Thread 1 "kdevelop" received signal SIGSEGV, Segmentation fault. 0x00007fffbbde43de in cppcheck::Parameters::Parameters (this=0x7fffffffa870, project=0x192f730) at /data/project/kde/kdevelop/analyzers/cppcheck/parameters.cpp:110 110 m_projectBuildPath = m_project->buildSystemManager()->buildDirectory(m_project->projectItem()); ``` so I simply added ```if (m_project->buildSystemManager())``` check before calling ```m_project->buildSystemManager()->buildDirectory(...)``` Regards, Leslie Zhai REVIEW: 129767 FIXED-IN: 5.1.0 M +9 -3 analyzers/cppcheck/parameters.cpp https://commits.kde.org/kdevelop/fe1a940bf1278eee8a8b3248222195f2cb5a8bde
Git commit 0c518250b10068f11601be44ed06f45d8f8e3660 by Kevin Funk. Committed on 16/01/2017 at 09:56. Pushed by kfunk into branch 'master'. Fix segfault when analyzing source code Fix clang-tidy run when there's no build system manager REVIEW: 129768 M +3 -2 src/plugin.cpp https://commits.kde.org/kdev-clang-tidy/0c518250b10068f11601be44ed06f45d8f8e3660
*** Bug 376955 has been marked as a duplicate of this bug. ***