https://bugs.kde.org/show_bug.cgi?id=474775
Bug ID: 474775 Summary: Endless copies of Kate spawned when opening files in a directory containing a .git folder (aka fork bomb) Classification: Applications Product: kate Version: 23.08.1 Platform: Manjaro OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: application Assignee: kwrite-bugs-n...@kde.org Reporter: solla...@gmail.com Target Milestone: --- Created attachment 161790 --> https://bugs.kde.org/attachment.cgi?id=161790&action=edit Needed folder structure to reproduce the bug (see next attachment for image) I've found a bug in Kate that can be used to turn it into a fork bomb of sorts. It's not particularly damaging since you can simply kill one of them to end the loop, however it can get extremely annoying and possible cause loss of work if you trigger it intentionally on a machine that's then left unattended for a while. STEPS TO REPRODUCE 1. Open Kate 2. Settings > Configure Kate... > Behaviour 3. Turn on "Open each document in its own window" 4. Click "Okay" and close Kate 5. Create a new folder named "kate_bug" and in that folder new folder "A" 6. Inside folder "A" create a "a.txt" file and a ".git" folder 7. Go back up and create a copy of folder "A", name it "B" 8. Go back into folder "A" and open the text file in Kate (double-click or via open-with > Kate) 9. Switch to folder "B" and open the second text file using the same method To aid with testing, I have also attached a zip file with the needed folder structure. OBSERVED RESULT Kate opens normally the first time, however when opening the second file Kate will continue to spawn new instances indefinitely until manual intervention. EXPECTED RESULT It shouldn't have done that. SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: (available in About System) KDE Plasma Version: KDE Frameworks Version: Qt Version: ADDITIONAL INFORMATION -- You are receiving this mail because: You are watching all bug changes.