Summary: | segmentation fault caused by KFileItemDelegate | ||
---|---|---|---|
Product: | [Unmaintained] kio | Reporter: | Paul Chavent <paul.chavent> |
Component: | general | Assignee: | Fredrik Höglund <fredrik> |
Status: | RESOLVED WORKSFORME | ||
Severity: | crash | CC: | cpigat242, faure, nate, sreich |
Priority: | NOR | Keywords: | triaged |
Version: | 4.11.3 | ||
Target Milestone: | --- | ||
Platform: | Debian testing | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Use QSharedPointer for states. |
Description
Paul Chavent
2014-03-14 11:16:07 UTC
The diagnostic in the description is not exact. DelegateAnimationHandler::animationState can set state->direction to QTimeLine::Backward and launch an animation. When the animation timer (synchronously) expire, it calls DelegateAnimationHandler::runAnimations which delete finished state with Bacward direction. However, the state can be used by the KFileItemDelegate::paint function and can cause a segfault if dereferenced. Created attachment 85588 [details]
Use QSharedPointer for states.
This patch fix the bug by sharing the states pointer. So their deletion are deleyed to the last owner.
Thanks for the patch, Paul! Sorry it took so long for anyone to notice it... If the issue is still present in KDE Frameworks 5, would you mind submitting your patch via Phabricator? http://phabricator.kde.org/ Here's the documentation: https://community.kde.org/Infrastructure/Phabricator Thanks! Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed. Thank you for helping us make KDE software even better for everyone! Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging Thank you for helping us make KDE software even better for everyone! |