Summary: | Crash in ~DebugSession() when exiting KDevelop during or shortly after debugging a program | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Igor Kushnir <igorkuo> |
Component: | CPP Debugger | Assignee: | Igor Kushnir <igorkuo> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | niko.sams |
Priority: | NOR | ||
Version: | git master | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/kdevelop/kdevelop/commit/89ffddc703cead3400122496d286f060b7dcce43 | Version Fixed In: | 5.6.1 |
Description
Igor Kushnir
2020-08-30 13:53:39 UTC
Git commit 89ffddc703cead3400122496d286f060b7dcce43 by Igor Kushnir. Committed on 15/10/2020 at 15:26. Pushed by igorkushnir into branch '5.6'. MIDebugSession::m_plugin: raw pointer => QPointer When a user exits KDevelop during or shortly after debugging a program, a DebugSession object may outlive MIDebuggerPlugin. This can cause a crash in ~DebugSession(). Both GDB::DebugSession and LLDB::DebugSession already support nullptr m_plugin for testing purposes, so this QPointer type change alone eliminates the crash. FIXED-IN: 5.6.1 M +1 -0 plugins/debuggercommon/midebugsession.cpp M +2 -1 plugins/debuggercommon/midebugsession.h https://invent.kde.org/kdevelop/kdevelop/commit/89ffddc703cead3400122496d286f060b7dcce43 |