Public bug reported:

1. lsb_release -rd
Description:    Ubuntu Yakkety Yak (development branch)
Release:        16.10

2. apt-cache policy gnupg
  Installed: 2.1.15-1ubuntu2
  Candidate: 2.1.15-1ubuntu2
  Version table:
 *** 2.1.15-1ubuntu2 500
        500 yakkety/main amd64 Packages
        100 /var/lib/dpkg/status

3. after gpg exits, there are no new daemons running

4. gpg-agent and dirmngr are running as daemons with open filehandles

# cat pstree_after_gpgv2.out 
           |                      `-{gmain}(111)
           |              `-{gmain}(121)
           |               `-{rs:main Q:Reg}(125)
           |            |-{snapd}(127)
           |            |-{snapd}(128)
           |            |-{snapd}(129)
           |            |-{snapd}(130)
           |            `-{snapd}(131)
root@gpgv2:~# cat lsof_gpg_agent_tmpdir.out 
dirmngr   559                root    3u     unix 0x0000000000000000      0t0 
35823861 /tmp/tmpv9bs89hz/S.dirmngr type=STREAM
ldap-reap 559 560            root    3u     unix 0x0000000000000000      0t0 
35823861 /tmp/tmpv9bs89hz/S.dirmngr type=STREAM

This also breaks things that set a 'no damon policy' in invoke-rc.d as gpg 
spawns these daemons rather than creating dirmngr or gpg-agent as service units 
that could be socket activated.

One such error path is when using cloud-utils mount-image-callback to
mount up an image, and install new packages and then umounting.  The
unmount hangs as dirmngr process has an open filehandle against the
mounted filesystem.

The easiest recreate is to:

sudo add-apt-repository -y ppa:<some ppa>

on a yakkety system.

ProblemType: Bug
DistroRelease: Ubuntu 16.10
Package: gnupg 2.1.15-1ubuntu2
ProcVersionSignature: Ubuntu 4.4.0-36.55-generic 4.4.16
Uname: Linux 4.4.0-36-generic x86_64
ApportVersion: 2.20.3-0ubuntu7
Architecture: amd64
Date: Thu Sep 22 16:27:38 2016
 PATH=(custom, no user)
SourcePackage: gnupg2
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: gnupg2 (Ubuntu)
     Importance: Undecided
         Status: New

** Tags: amd64 apport-bug uec-images yakkety

You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

  gnupg 2.x spawns dirmngd daemon whenever using gpg

To manage notifications about this bug go to:

ubuntu-bugs mailing list

Reply via email to