Summary: | Plasmashell crashes in in KIO::isClipboardDataCut() when drag the file from telegram to the desktop or copying text to the clipboard | ||
---|---|---|---|
Product: | [Plasma] plasmashell | Reporter: | MrNekit <Balykin_nikita> |
Component: | Clipboard widget & pop-up | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | kde, nate, plasma-bugs |
Priority: | NOR | Keywords: | drkonqi |
Version: | 5.22.3 | ||
Target Milestone: | 1.0 | ||
Platform: | Manjaro | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/frameworks/kio/commit/1d668a9fe65c5bc178487fc32e6662ff815147f6 | Version Fixed In: | |
Sentry Crash Report: |
Description
MrNekit
2021-07-16 12:44:23 UTC
*** Bug 450251 has been marked as a duplicate of this bug. *** paste.cpp
> const QMimeData *m_mimeData;
Well there's our problem. The lifespan of the mimedata is managed by the backend. Storing a pointer we don't own for an async job is not safe.
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kio/-/merge_requests/756 Git commit 1d668a9fe65c5bc178487fc32e6662ff815147f6 by David Edmundson. Committed on 15/02/2022 at 12:27. Pushed by davidedmundson into branch 'master'. Fix potential crash in pastejob Mimedata is owned by the QPA. It will be deleted when a new clipboard arrives. PasteJob stores a pointer to the mimedata used. It has an async step `QTimer::singleShot(0, this, SLOT(slotStart()));` mimeData can be deleted in the meantime. This patch adds a guard for that. M +5 -0 src/widgets/pastejob.cpp M +1 -1 src/widgets/pastejob_p.h https://invent.kde.org/frameworks/kio/commit/1d668a9fe65c5bc178487fc32e6662ff815147f6 |