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

            Bug ID: 522568
           Summary: Recursive path (symlink) in current working directory
                    makes spectacle hangs / very slow to start
    Classification: Applications
           Product: Spectacle
      Version First 6.7.2
       Reported In:
          Platform: Compiled Sources
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: General
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

Created attachment 193980
  --> https://bugs.kde.org/attachment.cgi?id=193980&action=edit
strace showing some of the path traversal

DESCRIPTION

Spectacle fails to launch (or takes a very long time) if there are recursive
symlinks in $CWD.

In my case, $HOME/.wine/dosdrives/z: was symlinked to / (wine creates this by
default)

STEPS TO REPRODUCE
1) mkdir -pv $HOME/test_spectacle && cd $HOME/test_spectacle
2) ln -sf / ./test_recursive
3) spectacle

OBSERVED RESULT
spectacle hangs

EXPECTED RESULT
spectacle doesn't hang ;)

Removing the symlink fixes it. I am assuming that when running spectacle
through global shortcuts $CWD is $HOME, and in my case I had
$HOME/.wine/dosdevices/z: symlinked to /, which made spectacle retraverse the
whole filesystem (I have no idea how things work under the hood, this is just
an assumption)

SOFTWARE/OS VERSIONS
Operating System: Linux 7.1.2 (I built QT / Plasma from sources)
KDE Plasma Version: 6.7.2
KDE Frameworks Version: 6.27.0 
Qt Version: 6.11.1

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

Reply via email to