https://bugs.kde.org/show_bug.cgi?id=427157

Igor Kushnir <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
   Version Fixed In|                            |6.0.240803
         Resolution|---                         |FIXED
      Latest Commit|                            |https://invent.kde.org/kdev
                   |                            |elop/kdevelop/-/commit/d9a2
                   |                            |e3f2d355e1f8299c849032610fc
                   |                            |78c82d132

--- Comment #2 from Igor Kushnir <[email protected]> ---
Git commit d9a2e3f2d355e1f8299c849032610fc78c82d132 by Igor Kushnir, on behalf
of Morten Danielsen Volden.
Committed on 21/10/2024 at 16:44.
Pushed by igorkushnir into branch 'release/24.08'.

MesonManager: remove test suites when a project is closing

If the test suites remain registered in TestController as raw pointers,
they become dangling when the Meson project is closed
and MesonManager is destroyed. This causes a segmentation fault
when e.g. a Meson project with tests is closed and then opened again.

Dangling test suite pointers in TestController also cause a crash when
the Unit Tests tool view is enabled after a project with tests is
closed. This crash was reported for a (most likely) CMake project as
Bug 427157 and confirmed for a CMake project.
3dfcecf20fdcd598de3255517a45bcebf4be17f2 fixed the crash for CMake
projects by cleaning up test suites in CMakeManager::projectClosing().
This commit fixes the crash for Meson projects in the same way. Outside
of unit tests, only CMakeManager and MesonManager call
ITestController::addTestSuite(). Therefore this commit completes fixing
the crash.
FIXED-IN: 6.0.240803
(cherry picked from commit 5af003119f49cbe356f4f8b5ad05f4528bba4efc)

M  +21   -4    plugins/meson/mesonmanager.cpp
M  +1    -1    plugins/meson/mesonmanager.h

https://invent.kde.org/kdevelop/kdevelop/-/commit/d9a2e3f2d355e1f8299c849032610fc78c82d132

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to