network-manager consume too much file descriptor and is not able to work correctly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
network-manager (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Detected when I failed to start a vpn client session.
journalctl shows line like:
sept. 13 10:37:29 xxx NetworkManager[
Indeed, /proc/$PID/fd is full of socket file descriptors. (with PID the pid of NetworkManager)
"strace -e socket -p $PID -f" shows that a netlink socket is opened every 3s and never closed.
[pid 9384] socket(PF_NETLINK, SOCK_RAW|
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: network-manager 1.2.6-0ubuntu0.
ProcVersionSign
Uname: Linux 4.11.0-14-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.10
Architecture: amd64
CurrentDesktop: GNOME
Date: Wed Sep 13 11:12:05 2017
IfupdownConfig:
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
InstallationDate: Installed on 2016-06-23 (447 days ago)
InstallationMedia: Ubuntu-GNOME 16.04 LTS "Xenial Xerus" - Release amd64 (20160622)
NetworkManager.
[main]
NetworkingEnab
WirelessEnable
WWANEnabled=true
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=fr_FR.UTF-8
SHELL=/bin/bash
SourcePackage: network-manager
UpgradeStatus: No upgrade log present (probably fresh install)
nmcli-nm:
RUNNING VERSION STATE STARTUP CONNECTIVITY NETWORKING WIFI-HW WIFI WWAN-HW WWAN
running 1.2.6 connected started full enabled enabled enabled enabled enabled
Looks like the issue starts when connect a USB wifi dongle (based on ath9k_htc).
After a fresh NetworkManager restart, journalctl shows that USB device is enumerated periodically, and for some reasons, failed to be configured correctly.
We can conclude that there is a FD leakage every time a new interface is inserted/removed.
I will check what is wrong with the enumeration/ configuration.