High CPU usage reading `/etc/passwd`
Submitted by Paul Menzel
Assigned to Matthias Clasen @mclasen
Link to original bug (#106152)
Description
Created attachment 138953 backtrace captured with GDB
With accounts-daemon 0.6.45, several times an hour, the daemon uses 100 % of one thread. According to strace
, it’s opening /etc/passwd
in that time, and reading each line after another.
$ ls -lh /etc/passwd{,.mariux}
lrwxrwxrwx 1 root system 13 Feb 26 18:27 /etc/passwd -> passwd.mariux
-rw-r--r-- 1 root system 296K Apr 20 14:43 /etc/passwd.mariux
$ wc -l /etc/passwd.mariux
4104 /etc/passwd.mariux
Please find some back traces attached, when attaching with GDB, interrupting the daemon while hogging the CPU and doing bt f
.
Attachment 138953, "backtrace captured with GDB":
20180418â__accounts-daemonâ__gdb.txt