[pkg-gnupg-maint] Bug#897205: gpg: Encrypting lots of files with --multiple gets failed: Too many open files

Russell Stuart russell-debian at stuart.id.au
Mon Apr 30 02:18:22 BST 2018


Package: gpg
Version: 2.2.5-1
Severity: normal

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Here is the error:

    $ gpg --no-permission-warning --homedir A_HOMEDIR --recipient A_RECIPIENT --multifile --encrypt <A_FILE_CONTAINING_THOUSANDS_OF_FILENAMES
    gpg: encryption of 'A_FILENAME' failed: Too many open files 

Translation: ask gpg to encrypt thousands of files by using --multiple
and feeding them from stdin, and gpg runs out of file handles.
Evidently someone didn't close() the input file.

This started happening after I upgraded to stretch.  It didn't happen
in jessie.  I've backported the unstable version to stretch, and thus
verified it's also an issue in 2.2.5.

- -- System Information:
Debian Release: 9.4
  APT prefers stable-updates
  APT policy: (990, 'stable-updates'), (990, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.15.0-0.bpo.2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE=en_AU:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages gpg depends on:
ii  gpgconf        2.2.5-1
ii  libassuan0     2.5.1-2
ii  libbz2-1.0     1.0.6-8.1
ii  libc6          2.24-11+deb9u3
ii  libgcrypt20    1.7.6-2+deb9u2
ii  libgpg-error0  1.26-2
ii  libreadline7   7.0-3
ii  libsqlite3-0   3.16.2-5+deb9u1
ii  zlib1g         1:1.2.8.dfsg-5

Versions of packages gpg recommends:
ii  gnupg  2.2.5-1

gpg suggests no packages.

- -- no debconf information

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEZqiOeH6lCkTWvjmorNSfiF5UUm4FAlrmbtkACgkQrNSfiF5U
Um6A7A/+O7AsfSP3SwXIg3jOcd2jRA2S+Trv/iczDD4cz6ETFUO5ghEKKE0Av6Z6
9QQ1Ys/iOFLbRuQBokAhm25syPNOdBswdO3COEdO9+oc6bIkUUpl87w0KaMJFZFK
77W9vMfqu2cCSEDxCQ95wg+0LsoUpdQSrutnvAqDDjApIN5zF6ze48niWtJ22bST
1Ossc7m7bmpC31Z/+bd9dVP7S/OvZA1ByIIT8d1pVNo0m3fkux96IXqclIn0AVNU
1mg3GMTLKV1CMZaqeWfzGww97Uvt5z+H7zxwqckWH39BoVKB7uSP2S8OyRb9kppc
ZRL61KLZvErR8jag00RDAFwi1PZ3VVPwwHSjpnXYapL0jlW0mzL6hRuQuoLmskEF
JakZOoobJOcNBbE2ntRbj3cpBKLGlItU6ZjKpgXSgHJ9AbXSgJS0PFXl9WD7YolA
5AcJZScR7d+AvcwBZNWZc/A2iUCFERivDfoT0ryZuhLv4hVO/CNXWgbsiD1wdkJD
zvmHpVaIg83MdoJgNZv/OEgld+ir987BjhmIl0lsj3NGwOKXHQufhSq6ypV+Vf0N
jnucejawZDzQmkG5gf9KsYa55fTFh9roDKLwPtKhuIaajr5dpljKYnFuGHQnK5Jh
iyLQhwMtMzP2xTdQ/RoItxSZl6aoVyLF0xF1xUDkdDCdkWpNjtI=
=47R5
-----END PGP SIGNATURE-----



More information about the pkg-gnupg-maint mailing list