[Bug 1313784] Re: File descriptors leaked on lvs invocation
MarcH
1313784 at bugs.launchpad.net
Tue Feb 22 22:54:00 UTC 2022
Still happening with 20.04
# sudo apt autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
linux-image-5.4.0-92-generic linux-image-5.4.0-96-generic linux-image-5.4.0-97-generic linux-modules-5.4.0-92-generic
linux-modules-5.4.0-96-generic linux-modules-5.4.0-97-generic linux-modules-extra-5.4.0-92-generic
linux-modules-extra-5.4.0-96-generic linux-modules-extra-5.4.0-97-generic linux-tools-5.4.0-92
linux-tools-5.4.0-92-generic linux-tools-5.4.0-96 linux-tools-5.4.0-96-generic linux-tools-5.4.0-97
linux-tools-5.4.0-97-generic
0 upgraded, 0 newly installed, 15 to remove and 0 not upgraded.
After this operation, 959 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 232284 files and directories currently installed.)
Removing linux-modules-extra-5.4.0-92-generic (5.4.0-92.103) ...
Removing linux-image-5.4.0-92-generic (5.4.0-92.103) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-5.4.0-92-generic
/etc/kernel/postrm.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.4.0-100-generic
Found initrd image: /boot/initrd.img-5.4.0-100-generic
Found linux image: /boot/vmlinuz-5.4.0-99-generic
Found initrd image: /boot/initrd.img-5.4.0-99-generic
Found linux image: /boot/vmlinuz-5.4.0-97-generic
Found initrd image: /boot/initrd.img-5.4.0-97-generic
Found linux image: /boot/vmlinuz-5.4.0-96-generic
Found initrd image: /boot/initrd.img-5.4.0-96-generic
Found linux image: /boot/vmlinuz-5.4.0-88-generic
Found initrd image: /boot/initrd.img-5.4.0-88-generic
Adding boot menu entry for UEFI Firmware Settings
done
Removing linux-modules-extra-5.4.0-96-generic (5.4.0-96.109) ...
Removing linux-image-5.4.0-96-generic (5.4.0-96.109) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-5.4.0-96-generic
/etc/kernel/postrm.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.4.0-100-generic
Found initrd image: /boot/initrd.img-5.4.0-100-generic
Found linux image: /boot/vmlinuz-5.4.0-99-generic
Found initrd image: /boot/initrd.img-5.4.0-99-generic
Found linux image: /boot/vmlinuz-5.4.0-97-generic
Found initrd image: /boot/initrd.img-5.4.0-97-generic
Found linux image: /boot/vmlinuz-5.4.0-88-generic
Found initrd image: /boot/initrd.img-5.4.0-88-generic
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-5.4.0-92-generic (deleted)) leaked on lvs invocation. Parent PID 16647: /bin/sh
Adding boot menu entry for UEFI Firmware Settings
done
Removing linux-modules-extra-5.4.0-97-generic (5.4.0-97.110) ...
Removing linux-image-5.4.0-97-generic (5.4.0-97.110) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-5.4.0-97-generic
/etc/kernel/postrm.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.4.0-100-generic
Found initrd image: /boot/initrd.img-5.4.0-100-generic
Found linux image: /boot/vmlinuz-5.4.0-99-generic
Found initrd image: /boot/initrd.img-5.4.0-99-generic
Found linux image: /boot/vmlinuz-5.4.0-88-generic
Found initrd image: /boot/initrd.img-5.4.0-88-generic
File descriptor 10 (/var/lib/dpkg/triggers/linux-update-5.4.0-96-generic (deleted)) leaked on lvs invocation. Parent PID 17946: /bin/sh
Adding boot menu entry for UEFI Firmware Settings
done
Removing linux-modules-5.4.0-92-generic (5.4.0-92.103) ...
Removing linux-modules-5.4.0-96-generic (5.4.0-96.109) ...
Removing linux-modules-5.4.0-97-generic (5.4.0-97.110) ...
Removing linux-tools-5.4.0-92-generic (5.4.0-92.103) ...
Removing linux-tools-5.4.0-92 (5.4.0-92.103) ...
Removing linux-tools-5.4.0-96-generic (5.4.0-96.109) ...
Removing linux-tools-5.4.0-96 (5.4.0-96.109) ...
Removing linux-tools-5.4.0-97-generic (5.4.0-97.110) ...
Removing linux-tools-5.4.0-97 (5.4.0-97.110) ...
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/1313784
Title:
File descriptors leaked on lvs invocation
Status in grub2 package in Ubuntu:
Triaged
Status in grub2 package in Debian:
New
Bug description:
While upgrading to Kubuntu 14.04 yesterday, I got the following error
messages over and over again:
Generating grub configuration file ...^M
File descriptor 3 (pipe:[4852522]) leaked on vgs invocation. Parent PID 6438: grub-probe^M
File descriptor 59 (/var/log/dist-upgrade/apt.log) leaked on vgs invocation. Parent PID 6438: grub-probe^M
The file descriptors appeared random, and the "Parent PID" was either /bin/sh, grub-install, grub-probe or /usr/sbin/grub-probe:
grep leaked ./dist-upgrade/apt-term.log |sed 's/.*Parent PID [0-9]*: //' | sort | uniq -c
53 /bin/sh
72 grub-install
106 grub-probe
1484 /usr/sbin/grub-probe
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1313784/+subscriptions
More information about the foundations-bugs
mailing list