fatrace crashes with 'too many open files'

Bug #1858305 reported by Chris Billington on 2020-01-05
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
fatrace
Undecided
Unassigned

Bug Description

I'm on Arch Linux with fatrace 0.15.1

Running it as `fatrace -f W` works, but after some time fatrace exits with the error "too many open files". For me this occurs after about a minute and 30 seconds. This is on a headless server that isn't doing much - looks like the samba daemon is writing a file every 20 seconds, and there are some logged failed ssh logins and fail2ban logging about banning them.

$ time sudo fatrace -f W
nmbd(861): CW /var/lib/samba/wins.dat.861
nmbd(862): CW /var/lib/samba/wins.dat
sshd(863): CWO /var/log/btmp
fail2ban-server(391): W /var/log/fail2ban.log
sshd(863): CW /var/log/btmp
fail2ban-server(391): W /var/log/fail2ban.log
nmbd(865): CW /var/lib/samba/wins.dat
nmbd(866): CW /var/lib/samba/wins.dat
sshd(867): W /var/log/tallylog
sshd(867): CW /var/log/tallylog
sshd(867): CWO /var/log/btmp
fail2ban-server(391): W /var/log/fail2ban.log
sshd(867): RW /var/log/tallylog
sshd(867): CW /var/log/tallylog
sshd(867): CW /var/log/btmp
fail2ban-server(391): W /var/log/fail2ban.log
nmbd(869): CW /var/lib/samba/wins.dat
sshd(867): W /var/log/tallylog
sshd(867): CW /var/log/tallylog
sshd(867): CW /var/log/btmp
fail2ban-server(391): W /var/log/fail2ban.log
fatrace: read: Too many open files

Stefan Dotterweich (stefandtw) wrote :

I had the same problem on a 4.19 kernel.

The attached patch seems to fix the issue.

Stefan Dotterweich (stefandtw) wrote :
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers