Help with a KMail crash
Sune Vuorela
nospam at vuorela.dk
Wed Dec 4 09:20:05 GMT 2024
On 2024-12-04, Ingo Klöcker <kloecker at kde.org> wrote:
> Given that iterators are involved I suspect that shadowIdentities is modified
> while it is being iterated over which invalidates the iterator it. There are
> some signals emitted in this loop so that there's is a lot of potential for
> additional calls to KIdentityManager by connected slots including reentrancy
> of KIdentityManager::commit().
If Ingo is right, bruteforcing it by putting a non-recursive mutex
around all calls to the hash should lead to a deadlock rather than a
crash :)
/Sune
More information about the kde-devel
mailing list