[From nobody Wed Jul 22 17:07:07 2026
Received: (at submit) by bugs.debian.org; 15 Jun 2015 16:51:27 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.0-bugs.debian.org_2005_01_02
 (2014-02-07) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-13.3 required=4.0 tests=BAYES_00, FOURLA, HAS_PACKAGE,
 RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,X_DEBBUGS_CC autolearn=ham
 autolearn_force=no version=3.4.0-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 17; hammy, 150; neutral, 213; spammy,
 0. spammytokens: hammytokens:0.000-+--H*u:2014-03-12,
 0.000-+--H*UA:2014-03-12, 0.000-+--H*UA:1.5.23, 0.000-+--H*u:1.5.23,
 0.000-+--systemd
Return-path: &lt;philipp.marek@linbit.com&gt;
Received: from zimbra13.linbit.com ([212.69.166.240])
 by buxtehude.debian.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84) (envelope-from &lt;philipp.marek@linbit.com&gt;)
 id 1Z4Xba-0004gy-Vg
 for submit@bugs.debian.org; Mon, 15 Jun 2015 16:51:27 +0000
Received: from localhost (localhost [127.0.0.1])
 by zimbra13.linbit.com (Postfix) with ESMTP id C87083E2B83
 for &lt;submit@bugs.debian.org&gt;; Mon, 15 Jun 2015 18:51:22 +0200 (CEST)
Received: from zimbra13.linbit.com ([127.0.0.1])
 by localhost (zimbra13.linbit.com [127.0.0.1]) (amavisd-new, port 10032)
 with ESMTP id vO3xkVGcPLZf for &lt;submit@bugs.debian.org&gt;;
 Mon, 15 Jun 2015 18:51:22 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
 by zimbra13.linbit.com (Postfix) with ESMTP id AB9993E2B65
 for &lt;submit@bugs.debian.org&gt;; Mon, 15 Jun 2015 18:51:22 +0200 (CEST)
X-Virus-Scanned: amavisd-new at linbit.com
Received: from zimbra13.linbit.com ([127.0.0.1])
 by localhost (zimbra13.linbit.com [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id xCD4rdXv3BSA for &lt;submit@bugs.debian.org&gt;;
 Mon, 15 Jun 2015 18:51:22 +0200 (CEST)
Received: from cacao.linbit (h081217095213.dyn.cm.kabsi.at [81.217.95.213])
 by zimbra13.linbit.com (Postfix) with ESMTPSA id 88CB53E29F3
 for &lt;submit@bugs.debian.org&gt;; Mon, 15 Jun 2015 18:51:22 +0200 (CEST)
Date: Mon, 15 Jun 2015 18:51:20 +0200
From: &quot;Ph. Marek&quot; &lt;philipp.marek@linbit.com&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: /usr/sbin/NetworkManager: waits for (zombie) dhclient processes
Message-ID: &lt;20150615151356.GA18855@cacao.linbit&gt;
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
X-Reportbug-Version: 6.6.3
X-Debbugs-Cc: philipp.marek@linbit.com
User-Agent: Mutt/1.5.23 (2014-03-12)
Delivered-To: submit@bugs.debian.org

Package: network-manager
Version: 1.0.2-2
Severity: normal
File: /usr/sbin/NetworkManager

When doing suspend/resume cycles that switch the network connection (eth0 
to wlan0 or usb0), NetworkManager still has the dhclient process that it 
spawned earlier on - which is a zombie already.

    11240 ?        Ssl    0:23 /usr/sbin/NetworkManager --no-daemon
     9502 ?        Z      0:00  \_ [dhclient] &lt;defunct&gt;

As long as NetworkManager is blocked, no new network connection gets 
established - and clients like the KDE widgets also hang, therefore 
blocking eg. the screen saver lock and suspend cycle when the laptop is 
simply closed...


The event order is typically
   * suspend (to ram),
   * disconnect eth0,
   * later on resume
   * and then the above situation is present.


Sometimes it's just not reaping the process, but starting a new dhclient:

    17544 ?        Ssl    0:01 /usr/sbin/NetworkManager --no-daemon
    20135 ?        Z      0:00  \_ [dhclient] &lt;defunct&gt;
    23232 ?        S      0:00  \_ /sbin/dhclient -d -q -sf /usr/...


-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.18.0-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_AT.UTF-8, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages network-manager depends on:
ii  adduser                3.113+nmu3
ii  dbus                   1.8.18-1
ii  init-system-helpers    1.23
ii  isc-dhcp-client        4.3.2-1
ii  libbluetooth3          5.23-2+b1
ii  libc6                  2.19-18
ii  libdbus-1-3            1.8.18-1
ii  libdbus-glib-1-2       0.102-1
ii  libgcrypt20            1.6.3-2
ii  libglib2.0-0           2.44.1-1
ii  libgnutls-deb0-28      3.3.15-5
ii  libgudev-1.0-0         230-1
ii  libmm-glib0            1.4.8-1
ii  libndp0                1.4-2
ii  libnewt0.52            0.52.17-1+b1
ii  libnl-3-200            3.2.24-2
ii  libnl-genl-3-200       3.2.24-2
ii  libnl-route-3-200      3.2.24-2
ii  libnm0                 1.0.2-2
ii  libpam-systemd         215-18
ii  libpolkit-agent-1-0    0.105-8
ii  libpolkit-gobject-1-0  0.105-8
ii  libreadline6           6.3-8+b3
ii  libsoup2.4-1           2.50.0-2
ii  libsystemd0            215-18
ii  libteamdctl0           1.17-1
ii  libuuid1               2.26.2-6
ii  lsb-base               4.1+Debian13+nmu1
ii  policykit-1            0.105-8
ii  udev                   220-6
ii  wpasupplicant          2.3-2

Versions of packages network-manager recommends:
ii  crda            3.13-1
ii  dnsmasq-base    2.72-3.1+b1
ii  iptables        1.4.21-2+b1
pn  iputils-arping  &lt;none&gt;
ii  modemmanager    1.4.8-1
ii  ppp             2.4.6-3.1

Versions of packages network-manager suggests:
ii  avahi-autoipd  0.6.31-5
pn  libteam-utils  &lt;none&gt;

-- Configuration Files:
/etc/NetworkManager/NetworkManager.conf changed:
[main]
plugins=ifupdown,keyfile
no-auto-default=78:2b:cb:d0:c1:1c,aa:00:04:00:0a:04,2A:1B:DE:41:1E:9C,
[ifupdown]
managed=false


-- no debconf information
]