Closed vpa1977 closed 10 months ago
The issue occurs in lxc armhf container.
#./atopacctd cannot switch on process accounting: Operation not permitted # atop Floating point exception (core dumped)
atopacctd leaves a zero-length shadow file
atopacctd
ls -l /var/run/pacct_shadow.d total 4 -rw-r--r-- 1 root root 0 Oct 2 22:46 0000000000.paf
that atop attempt to read.
atop
static int atopacctd(int swon) retries attempts to read it at acctproc.c:441 and exits on failure.
static int atopacctd(int swon)
It returns 1 (success) and does not zero out maxshadowrec variable in this case causing a subsequent division by zero.
The issue occurs in lxc armhf container.
atopacctd
leaves a zero-length shadow filethat
atop
attempt to read.static int atopacctd(int swon)
retries attempts to read it at acctproc.c:441 and exits on failure.It returns 1 (success) and does not zero out maxshadowrec variable in this case causing a subsequent division by zero.