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

Igor Kushnir <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REPORTED                    |CONFIRMED
     Ever confirmed|0                           |1
                 CC|                            |[email protected]

--- Comment #1 from Igor Kushnir <[email protected]> ---
Steps to reproduce:
1. Disable Unit Tests tool view.
2. Open a project that contains CTest tests.
3. Wait for a little while to let KDevelop's BackgroundParser parse several
unit tests.
4. Close the project.
5. Enable Unit Tests tool view.

The issue is that when a project is closed and destroyed, its test suites are
not removed from TestControllerPrivate::suites. CTestSuite::project() returns a
dangling pointer then. This is both a memory leak and, as can be seen from this
crash report, a source of other bugs. I've fixed this issue by overhauling the
KDevelop's test suite code, though I haven't thought about the possibility of
this crash when I was doing it. Just checked: yes, this crash is fixed by my
changes. When I complete my large overhaul/fix, I'll create a merge request.

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

Reply via email to