Created attachment 167863 [details] Krita backtrace and disassembly When the Gather Data Sampling mitigation is forced on Linux for older CPUs (i.e. Intel Core 6th Gen Skylake) that are affected by the GDS vulnerability, AVX/AVX2 instructions are disabled, because there is no microcode update available. On affected systems 'lscpu' reports: … Vulnerabilities: Gather data sampling: Mitigation; AVX disabled, no microcode … This causes Krita to crash, because something is wrong with the CPU feature detection (xsimd function call) in Krita and it's still trying to use VEX instructions. Similar problems were already reported and fixed for pcre2 (regex library) and Babl/Gimp. See the attached gdb backtrace/disassembly and the following pcre2 issue (reported by me) for further information. https://github.com/PCRE2Project/pcre2/issues/399 Babl/Gimp issue: https://gitlab.gnome.org/GNOME/babl/-/issues/96#note_2056377 STEPS TO REPRODUCE 1. Force GDS mitigation by adding 'gather_data_sampling=force' as kernel parameter on an affected system (AVX/AVX2 disabled). 2. Start krita and try to open a PNG image. OBSERVED RESULT Krita crashes with 'SIGILL, Illegal instruction'. EXPECTED RESULT Krita should not crash and open the file. SOFTWARE/OS VERSIONS Arch Linux - Linux kernel 6.8.1 krita 5.2.2-8 from the repo (compiled with -march=x86-64)
I actually wonder if there any use in trying to paint in Krita with AVX disabled...
The bug should be fixed by this patch: https://invent.kde.org/dkazakov/krita-deps-management/-/commit/2bd71ad928d79666b4795360e072ca1d0d513117 Corresponding XSIMD bugreport for upstreaming this patch: https://github.com/xtensor-stack/xsimd/issues/1025 I will link the nightly build in this report when the build is ready.
Hi, bugreporter! Could you please test this build on this limited system? It should work fine now (in case you can use word "fine" to the system missing AVX): https://cdn.kde.org/ci-builds/graphics/krita/master/linux/
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 mark the bug 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!
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!