/var/log/apt/history.log fd leaked on lvs invocation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: apt
Hi
While removing a kernel of my system, I saw:
File descriptor 46 (/var/log/
Except of the log:
[...]
Suppression de linux-image-
Examining /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found memtest86+ image: /memtest86+.bin
Found memtest86+ multiboot image: /memtest86+
File descriptor 46 (/var/log/
Found Debian GNU/Linux (squeeze/sid) on /dev/mapper/
done
The link /vmlinuz.old is a damaged link
Removing symbolic link vmlinuz.old
you may need to re-run your boot loader[grub]
The link /initrd.img.old is a damaged link
Removing symbolic link initrd.img.old
you may need to re-run your boot loader[grub]
Purge des fichiers de configuration de linux-image-
Examining /etc/kernel/
run-parts: executing /etc/kernel/
[...]
This suggests APT is leaving a file open to a child which it should not?
Cheers,
ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: apt 0.8.3ubuntu3
ProcVersionSign
Uname: Linux 2.6.35-20-generic x86_64
Architecture: amd64
Date: Sat Sep 11 22:40:02 2010
ProcEnviron:
LANGUAGE=
PATH=(custom, user)
LANG=fr_FR.UTF-8
SHELL=/bin/zsh
SourcePackage: apt
It seems this is because OpenLog() is called in the parent process and the fd for it is not closed in the child.