SUMMARY Application freezes if user has opened file from the /sys directory, and this file was changed externally. For example, user disables CPU core , changes I/O Disk scheduler or tweaks some device parameter Freezing also occurs if the file contents are overwritten with the same value. STEPS TO REPRODUCE 1. Open /sys/devices/system/cpu/cpu1/online using KWrite or Kate 2. Open terminal (either Kate built-in or external application) 3. Execute the command below to overwrite the file value echo 1 | sudo tee /sys/devices/system/cpu/cpu1/online OBSERVED RESULT KWrite/Kate window freezes EXPECTED RESULT KWrite/Kate window shouldn't freeze SOFTWARE/OS VERSIONS Linux/KDE Plasma: Fedora Kinoite 40 KDE Plasma Version: 6.0.0 KDE Frameworks Version: 6.0.0 Qt Version: 6.6.2 ADDITIONAL INFORMATION If I modify file within Kate/KWrite, it can't be saved (even though I provide a correct password for administrator authentication). The error says that "The document could no be saved, as it was no possible to write to ...". That's also the case with files inside /proc directory (e.g. /proc/sys/vm/page-cluster), though Kate doesn't freeze if those files are changed externally.
Migrating "reproducible" keyword to "CONFIRMED" status.
Could you provide some backtrace where we are stuck or use perf to check in which function we are hanging around?
Created attachment 170567 [details] GDB backtrace (In reply to Christoph Cullmann from comment #2) > Could you provide some backtrace where we are stuck or use perf to check in > which function we are hanging around? I added backtrace generated with GDB + debuginfod on KDE Neon Developer Edition. Hope this helps.
Git commit 59d5798b98c9aaea55fe7e38f697697241b8da80 by Christoph Cullmann. Committed on 17/06/2024 at 19:36. Pushed by cullmann into branch 'master'. try different way to read file for digest might be the old variant stalls on some virtual sys/proc files M +1 -5 src/document/katedocument.cpp https://invent.kde.org/frameworks/ktexteditor/-/commit/59d5798b98c9aaea55fe7e38f697697241b8da80
Hi, the info provided some hints. Could you try out the patched version?
(In reply to Christoph Cullmann from comment #5) > Hi, the info provided some hints. > Could you try out the patched version? This solved the problem. Thank you!
(In reply to Yevhen Popok from comment #6) > (In reply to Christoph Cullmann from comment #5) > > Hi, the info provided some hints. > > Could you try out the patched version? > > This solved the problem. Thank you! Great, thanks for helping out with the info, without that would have not found this.