[Akonadi] [Bug 418844] Akonadi IMAP resource crash after attempted offline/online

Ahmad Samir bugzilla_noreply at kde.org
Wed Sep 2 11:20:41 BST 2020


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

Ahmad Samir <a.samirh78 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
      Latest Commit|                            |https://invent.kde.org/pim/
                   |                            |akonadi/commit/53574eb6fccc
                   |                            |8f6a03dcea6c1ca1aa02dd89520
                   |                            |9
         Resolution|---                         |FIXED

--- Comment #9 from Ahmad Samir <a.samirh78 at gmail.com> ---
Git commit 53574eb6fccc8f6a03dcea6c1ca1aa02dd895209 by Ahmad Samir.
Committed on 02/09/2020 at 10:20.
Pushed by ahmadsamir into branch 'master'.

AgentBase: Fix crash in setOnline

When setOnline tries to access the mSettings member after the latter has
been deleted we get a crash; mSettings is deleted in quit() or cleanup(),
therefore it looks like a race condition: the Agent is about to quit, but
some other code calls setOnline leading to a crash. It looks like this can
happen in more than one way, e.g. via a dbus call (from AgentInstance), or
via a sub-class of AgentBase calling setOnline directly. Use a bool member
var, modelled after how AgentInstance uses a similar logic.

M  +8    -0    src/agentbase/agentbase.cpp
M  +2    -0    src/agentbase/agentbase_p.h

https://invent.kde.org/pim/akonadi/commit/53574eb6fccc8f6a03dcea6c1ca1aa02dd895209

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Kdepim-bugs mailing list