[Pkg-libvirt-maintainers] Bug#658428: libvirt-bin: leaking file descriptors

Maciej Galkiewicz maciej.galkiewicz at gmail.com
Thu Feb 2 22:08:51 UTC 2012


Package: libvirt-bin
Version: 0.9.8-2
Severity: important

This bug looks like: https://bugzilla.redhat.com/show_bug.cgi?id=639581
I have also tried libvirt 0.8.3-5+squeeze2 and 0.8.8-3. All versions are affected.

# lsof | grep libvirt | wc -l
1183
root at n3c1:/home/maciek# virsh list
2012-02-02 21:58:39.081+0000: 25199: info : libvirt version: 0.9.8
2012-02-02 21:58:39.081+0000: 25199: warning : xenHypervisorMakeCapabilities:2748 : Failed to get host power management capabilities
 Id Name                 State
----------------------------------
  0 Domain-0             running

root at n3c1:/home/maciek# lsof | grep libvirt | wc -l
1186
root at n3c1:/home/maciek# virsh list
2012-02-02 21:58:44.237+0000: 25213: info : libvirt version: 0.9.8
2012-02-02 21:58:44.237+0000: 25213: warning : xenHypervisorMakeCapabilities:2748 : Failed to get host power management capabilities
 Id Name                 State
----------------------------------
  0 Domain-0             running

root at n3c1:/home/maciek# lsof | grep libvirt | wc -l
1189

# python
Python 2.6.6 (r266:84292, Dec 26 2010, 22:31:48)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> def openclose():
...      c = libvirt.open('xen:///')
...      c.close()
... 
>>> import os
>>> import libvirt
>>> openclose()
2012-01-29 23:08:32.146+0000: 6293: warning : xenHypervisorMakeCapabilities:2748 : Failed to get host power management capabilities
>>> os.system('lsof -p %d | wc -l' % os.getpid())
52
0
>>> os.system('lsof -p %d | wc -l' % os.getpid())
52
0
>>> openclose()
2012-01-29 23:08:39.939+0000: 6293: warning : xenHypervisorMakeCapabilities:2748 : Failed to get host power management capabilities
>>> os.system('lsof -p %d | wc -l' % os.getpid())
55
0   
>>> openclose()
2012-01-29 23:08:47.507+0000: 6293: warning : xenHypervisorMakeCapabilities:2748 : Failed to get host power management capabilities
>>> os.system('lsof -p %d | wc -l' % os.getpid())
58  
0  

Lsof reports a lot of entries like:
libvirtd   3031       root   18u     unix 0xffff880176f44300        0t0    6765380 socket
libvirtd   3031       root   19r     FIFO                0,8        0t0    6765382 pipe
libvirtd   3031       root   20w     FIFO                0,8        0t0    6765382 pipe
libvirtd   3031       root   21u     unix 0xffff88016275d200        0t0    6769446 socket
libvirtd   3031       root   22r     FIFO                0,8        0t0    6769448 pipe
libvirtd   3031       root   23w     FIFO                0,8        0t0    6769448 pipe
libvirtd   3031       root   24u     unix 0xffff880176f46a00        0t0    6773222 socket
libvirtd   3031       root   25r     FIFO                0,8        0t0    6773224 pipe
libvirtd   3031       root   26w     FIFO                0,8        0t0    6773224 pipe
libvirtd   3031       root   27u     unix 0xffff880176f71200        0t0    6775961 socket
libvirtd   3031       root   28r     FIFO                0,8        0t0    6775963 pipe
libvirtd   3031       root   29w     FIFO                0,8        0t0    6775963 pipe
libvirtd   3031       root   30u     unix 0xffff88016275de00        0t0    6778688 socket
libvirtd   3031       root   31r     FIFO                0,8        0t0    6778690 pipe
libvirtd   3031       root   32w     FIFO                0,8        0t0    6778690 pipe

-- System Information:
Debian Release: 6.0.4
  APT prefers stable-updates
  APT policy: (900, 'stable-updates'), (900, 'stable'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-xen-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libvirt-bin depends on:
ii  adduser            3.112+nmu2            add and remove users and groups
ii  gettext-base       0.18.1.1-3            GNU Internationalization utilities
ii  libavahi-client3   0.6.27-2+squeeze1     Avahi client library
ii  libavahi-common3   0.6.27-2+squeeze1     Avahi common library
ii  libblkid1          2.17.2-9              block device id library
ii  libc6              2.11.3-2              Embedded GNU C Library: Shared lib
ii  libcap-ng0         0.6.4-1               An alternate posix capabilities li
ii  libdevmapper1.02.1 2:1.02.48-5           The Linux Kernel Device Mapper use
ii  libgcrypt11        1.4.5-2               LGPL Crypto library - runtime libr
ii  libgnutls26        2.12.16-1             GNU TLS library - runtime library
ii  libnl1             1.1-6                 library for dealing with netlink s
ii  libnuma1           2.0.8~rc2-1           Libraries for controlling NUMA pol
ii  libparted0debian1  2.3-5                 The GNU Parted disk partitioning s
ii  libpcap0.8         1.1.1-2+squeeze1      system interface for user-level pa
ii  libpciaccess0      0.12.0-1              Generic PCI access library for X
ii  libreadline6       6.1-3                 GNU readline and history libraries
ii  libsasl2-2         2.1.23.dfsg1-7        Cyrus SASL - authentication abstra
ii  libudev0           164-3                 libudev shared library
ii  libvirt0           0.9.8-2               library for interfacing with diffe
ii  libxenstore3.0     4.0.1-4               Xenstore communications library fo
ii  libxml2            2.7.8.dfsg-2+squeeze2 GNOME XML library
ii  libyajl1           1.0.12-2              Yet Another JSON Library
ii  logrotate          3.7.8-6               Log rotation utility

Versions of packages libvirt-bin recommends:
ii  bridge-utils      1.4-5                  Utilities for configuring the Linu
ii  dmidecode         2.9-1.2                Dump Desktop Management Interface 
ii  dnsmasq-base      2.55-2                 A small caching DNS proxy and DHCP
ii  ebtables          2.0.9.2-2              Ethernet bridge frame table admini
ii  gawk              1:3.1.7.dfsg-5         GNU awk, a pattern scanning and pr
ii  iproute           20100519-3             networking and traffic control too
ii  iptables          1.4.12.2-1             administration tools for packet fi
ii  libxml2-utils     2.7.8.dfsg-2+squeeze2  XML utilities
ii  netcat-openbsd    1.89-4                 TCP/IP swiss army knife
ii  parted            2.3-5                  The GNU Parted disk partition resi
ii  qemu-kvm          0.12.5+dfsg-5+squeeze8 Full virtualization on x86 hardwar

Versions of packages libvirt-bin suggests:
pn  policykit-1                   <none>     (no description available)
ii  radvd                         1:1.6-1.1  Router Advertisement Daemon

-- Configuration Files:
/etc/libvirt/libvirtd.conf changed:
unix_sock_group = "libvirt"
unix_sock_ro_perms = "0777"
unix_sock_rw_perms = "0770"
auth_unix_ro = "none"
auth_unix_rw = "none"

/etc/libvirt/qemu.conf changed:
user = "eucalyptus"


-- no debconf information





More information about the Pkg-libvirt-maintainers mailing list