https://bugs.kde.org/show_bug.cgi?id=508785
Bug ID: 508785
Summary: Heap use-after-free when copy/pasting a Krita layer,
causes a SEGFAULT on X11
Classification: Applications
Product: krita
Version First 5.2.11
Reported In:
Platform: Debian stable
OS: Linux
Status: REPORTED
Severity: crash
Priority: NOR
Component: General
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Created attachment 184485
--> https://bugs.kde.org/attachment.cgi?id=184485&action=edit
AddressSanitizer output of Krita 5.2.11 compiled with asan
SUMMARY
When copying and pasting a Krita layer, Krita crashes without any notice and
logs (except for "KRITA DID NOT CLOSE CORRECTLY")
STEPS TO REPRODUCE
1. Copy a layer or a part of it
2. Paste as a new layer
OBSERVED RESULT
Visually, it just closes. When opening back it doesn't restore the previous
session, so all progress is lost without backup.
The terminal output states "Segmentation Fault"
EXPECTED RESULT
Krita pastes a new layer and continues as supposed to.
SOFTWARE/OS VERSIONS
Linux: Debian 13 / 6.12.41+deb13-amd64 with Xfce4 4.20
Qt Version: 5.15.7
CPU: AMD Ryzen 5 5600H with Radeon Graphics
GPU: Cezanne [Radeon Vega Series / Radeon Vega Mobile Series]
RAM: 16 GB DDR4 3200MHz
ADDITIONAL INFORMATION
The SEGFAULT does not happen if the image source is obtained outside of Krita.
In some DEs (e.g. LXQt) the crash is not observed, as well as in the earlier
version of Xfce4 (4.18).
The crash happens in every official 5.2+ version, as well as 5.3.0 prealpha and
even 5.1.5
The ASAN debug build sheds some light on this, I suspect it is caused by race
condition.
--
You are receiving this mail because:
You are watching all bug changes.