Huge amount of anon_inode:sync_file file descriptor created
System information
System:
Host: rpi4 Kernel: 5.15.32-2-MANJARO-ARM-RPI aarch64 bits: 64 compiler: gcc
v: 11.2.0 Desktop: KDE Plasma 5.24.4 tk: Qt 5.15.3 wm: kwin_x11 dm: SDDM
Distro: Manjaro ARM base: Arch Linux
CPU:
Info: quad core model: N/A variant: cortex-a72 bits: 64 type: MCP
arch: ARMv8 rev: 3
Speed (MHz): avg: 600 min/max: 600/1500 cores: 1: 600 2: 600 3: 600
4: 600 bogomips: 432
Features: Use -f option to see features
Graphics:
Device-1: bcm2711-vc5 driver: vc4_drm v: N/A bus-ID: N/A chip-ID: brcm:gpu
Device-2: bcm2711-hdmi0 driver: N/A bus-ID: N/A chip-ID: brcm:soc
Device-3: bcm2711-hdmi1 driver: N/A bus-ID: N/A chip-ID: brcm:soc
Display: x11 server: X.Org 1.21.1.3 compositor: kwin_x11 driver:
loaded: modesetting alternate: fbdev resolution: 1920x1080~60Hz s-dpi: 96
OpenGL: renderer: V3D 4.2 v: 2.1 Mesa 22.0.2 direct render: Yes
Describe the issue
After upgrading the system, mesa package was updated from version 21.3.7 to 22.0.1, qutebrowser application started to crash frequently. Starting it from terminal I found out that the crash was due to ‘Too many open files’, and looking at the fd folder of the process I discovered a huge amount of file descriptors named anon_inode:sync_file.
As a test, I started the browser (qutebroser or falkon) opening the page https://github.com, where an animated globe is visible, and waited without any other interaction; in less than 15 minutes in the terminal I started to see the following messages:
Could not create AF_NETLINK socket (Too many open files)
Failed to import fence to syncobj: -1
and in the folder /proc/<pid>/fd
of the main process I found more than 8000 file descritors, most of them named anon_inode:sync_file
.
I tryed to build version 22.0.2 but the issue happened again; I downgraded to 21.3.7 and the issue disappeared.