Summary: | crash when opening an e-mail which failed to be sent | ||
---|---|---|---|
Product: | [Applications] kmail2 | Reporter: | Daniel Moyne <daniel.moyne> |
Component: | general | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | crash | Keywords: | drkonqi |
Priority: | NOR | ||
Version First Reported In: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/pim/kmail/-/commit/ca222e9e98bbaba4f9841a1bc0b4bc324ff95bab | Version Fixed In: | |
Sentry Crash Report: |
Description
Daniel Moyne
2024-04-29 09:55:24 UTC
A possibly relevant merge request was started @ https://invent.kde.org/pim/kmail/-/merge_requests/137 I am no more using Kmail preferring now Thunderbird Git commit ba6572b9b9029a1431333bc52109011a4382ae02 by Fabian Vogt. Committed on 19/07/2024 at 06:53. Pushed by fvogt into branch 'master'. Fix crash due to deleteLater() + nested event loop KMEditItemCommand::execute creates a connection that does deleteLater(), but also calls KMComposerWin::setMessage which creates a nested QEventLoop in Kleo::KeyCache::Private::ensureCachePopulated. This nested event loop thus deletes KMEditItemCommand within KMEditItemCommand::execute, causing a crash. Fix this by creating the connection for deleteLater as late as possible and also call setDeletesItself(true) for good measure. M +6 -5 src/kmcommands.cpp https://invent.kde.org/pim/kmail/-/commit/ba6572b9b9029a1431333bc52109011a4382ae02 Git commit ca222e9e98bbaba4f9841a1bc0b4bc324ff95bab by Fabian Vogt. Committed on 06/08/2024 at 17:29. Pushed by fvogt into branch 'release/24.05'. Fix crash due to deleteLater() + nested event loop KMEditItemCommand::execute creates a connection that does deleteLater(), but also calls KMComposerWin::setMessage which creates a nested QEventLoop in Kleo::KeyCache::Private::ensureCachePopulated. This nested event loop thus deletes KMEditItemCommand within KMEditItemCommand::execute, causing a crash. Fix this by creating the connection for deleteLater as late as possible and also call setDeletesItself(true) for good measure. (cherry picked from commit ba6572b9b9029a1431333bc52109011a4382ae02) M +6 -5 src/kmcommands.cpp https://invent.kde.org/pim/kmail/-/commit/ca222e9e98bbaba4f9841a1bc0b4bc324ff95bab |