https://bugs.kde.org/show_bug.cgi?id=465517

            Bug ID: 465517
           Summary: plasmashell tries to parse an ELF executable whose
                    name ends in ".desktop"  as an XDG desktop entry, only
                    in very specific circumstances
    Classification: Plasma
           Product: plasmashell
           Version: 5.26.5
          Platform: Archlinux
                OS: Linux
            Status: REPORTED
          Severity: minor
          Priority: NOR
         Component: generic-performance
          Assignee: plasma-b...@kde.org
          Reporter: anhollander...@gmail.com
  Target Milestone: 1.0

Created attachment 156108
  --> https://bugs.kde.org/attachment.cgi?id=156108&action=edit
A portion of plasmashell's log showing the described errors

SUMMARY
plasmashell tries to parse an executable whose name ends in ".desktop"
contained inside an AppImage as an XDG desktop entry. This results in 100% load
on a thread until it reaches the end of the file.

STEPS TO REPRODUCE
1. Download https://client2.krunker.io/setup.AppImage. This is a program that
causes the bug to manifest. Its main executable upon extraction is
io.krunker.desktop.
2. Run the AppImage.

OBSERVED RESULT
For 10-15 seconds, plasmashell uses 100% of a CPU as it tries to parse the ELF
executable "io.krunker.desktop" as a desktop entry. The journalctl log for
plasmashell is spammed with errors about invalid entries and escape sequences
throughout the executable file. There is no noticeable impact on the
application's performance, but that is only on my system with nothing else
running in the background.

EXPECTED RESULT
plasmashell realizes the executable is an executable and ignores it.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Arch Linux
(available in About System)
KDE Plasma Version: 5.26.5
KDE Frameworks Version: 5.102.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
This bug still occurs even when extracting the AppImage and running
io.krunker.desktop directly. I have not been able to reproduce this by adding a
.desktop extension to other executables.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to