https://bugs.kde.org/show_bug.cgi?id=413231
Bug ID: 413231 Summary: Kscreenlocker random crash after inotify_add failure Product: kscreenlocker Version: unspecified Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: greeter Assignee: plasma-b...@kde.org Reporter: quwenruo.bt...@gmx.com CC: bhus...@gmail.com Target Milestone: --- SUMMARY First thing first, I don't understand why kscreenlocker is calling inotify_add(), especially calling inotify_add() can fail due to limit. And I don't believe it's OK to make kscreenlocker to read things in one's home directory. Secondly, kscreenlocker_greeter crash would easily make user experience crappy. User needs to unlock the session manually using loginctl. The crash happens with the following info in journal: 17:07:37 adam-pc kscreenlocker_greet[12230]: inotify_add_watch(/home/adam/.config/plasmarc) failed: (No space left on device) 17:07:37 adam-pc kscreenlocker_greet[12230]: inotify_add_watch(/usr/share/plasma/desktoptheme/Arc-Dark/metadata.desktop) failed: (No space left on device) 17:07:37 adam-pc kscreenlocker_greet[12230]: inotify_add_watch(/usr/share/icons/Papirus-Dark/index.theme) failed: (No space left on device) 17:07:37 adam-pc kscreenlocker_greet[12230]: inotify_add_watch(/etc/fstab) failed: (No space left on device) 17:07:39 adam-pc kernel: kscreenlocker_g[12230]: segfault at 7ffbff7fdfe0 ip 00007efbfe417558 sp 00007ffbff7fdfb0 error 6 in libQt5Gui.so.5.13.1[7efbfe0a6000+414000] 17:07:39 adam-pc kernel: Code: e5 40 e9 6b ff ff ff 90 66 2e 0f 1f 84 00 00 00 00 00 41 57 41 56 41 55 41 54 55 53 48 89 fb 48 81 ec c8 38 00 00 48 8b 6f 10 <48> 89 74 24 30 64 48 8b 04 25 28 00 00 00 48 >gg STEPS TO REPRODUCE 1. Use fs.inotify.max_user_watches to a low value (in my case, it's 2048) 2. Lock the session manually or wait for screensaver to kick in OBSERVED RESULT Kscreenlocker crashes and have to use loginctl to unlock session EXPECTED RESULT Kscreenlocker kicks in and shows the regular greeter SOFTWARE/OS VERSIONS Linux/KDE Plasma: KDE Plasma Version: 5.17.0 KDE Frameworks Version: 5.63.0 Qt Version: 5.13.1 ADDITIONAL INFORMATION -- You are receiving this mail because: You are watching all bug changes.