network-manager consume too much file descriptor and is not able to work correctly

Bug #1716884 reported by arnaud
6
This bug affects 1 person
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[1092]: <warn> [1505291849.7302] vpn-connection[0x2786800,4cd810de-c299-41e9-bf4b-c6df18d09b66,"xxx",0]: Could not launch the VPN service. error: Trop de fichiers ouverts.

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|SOCK_CLOEXEC, NETLINK_GENERIC) = 361

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: network-manager 1.2.6-0ubuntu0.16.04.1
ProcVersionSignature: Ubuntu 4.11.0-14.20~16.04.1-generic 4.11.12
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.state:
 [main]
 NetworkingEnabled=true
 WirelessEnabled=true
 WWANEnabled=true
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 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

Revision history for this message
arnaud (amo-macfly) wrote :
Revision history for this message
arnaud (amo-macfly) wrote :

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.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.