Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

atop crashes with a floating point exception #277

Closed
vpa1977 opened this issue Oct 3, 2023 · 0 comments
Closed

atop crashes with a floating point exception #277

vpa1977 opened this issue Oct 3, 2023 · 0 comments

Comments

@vpa1977
Copy link

vpa1977 commented Oct 3, 2023

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

 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.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants