Debian Bug report logs -
#669457
libvirt-bin: libvirt_lxc segfault
Reported by: Samuel Hassine <samuel.hassine@anotherservice.com>
Date: Thu, 19 Apr 2012 19:30:02 UTC
Severity: important
Tags: moreinfo
Found in version libvirt/0.9.11-2
Fixed in version libvirt/0.9.13~rc1-1
Done: Guido Günther <agx@sigxcpu.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, Debian Libvirt Maintainers <pkg-libvirt-maintainers@lists.alioth.debian.org>:
Bug#669457; Package libvirt-bin.
(Thu, 19 Apr 2012 19:30:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Samuel Hassine <samuel.hassine@anotherservice.com>:
New Bug report received and forwarded. Copy sent to Debian Libvirt Maintainers <pkg-libvirt-maintainers@lists.alioth.debian.org>.
(Thu, 19 Apr 2012 19:30:05 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: libvirt-bin
Version: 0.9.11-2
Severity: important
Hi mainteners,
We are trying to run a LXC container through libvirt binary with the following command:
/usr/lib/libvirt/libvirt_lxc --name instance-0000000c --console 22 --handshake 25 --background --veth veth1
We have the error:
root@PAR-SRV-02-MASTER:/# /usr/lib/libvirt/libvirt_lxc --name instance-0000000c --console 22 --handshake 25 --background --veth veth1
2012-04-19 19:10:27.189+0000: 14242: info : libvirt version: 0.9.11
2012-04-19 19:10:27.189+0000: 14242: warning : lxcCapsInit:77 : Failed to get host power management capabilities
Segmentation fault
In the syslog:
Apr 19 20:58:22 PAR-SRV-02-MASTER kernel: [ 3122.548430] libvirt_lxc[13788]: segfault at 0 ip 00007f960ae68788 sp 00007fff55eaeb38 error 4 in libc-2.13.so[7f960ae31000+17d000]
Apr 19 21:10:27 PAR-SRV-02-MASTER kernel: [ 3846.923857] libvirt_lxc[14242]: segfault at 0 ip 00007fe2185a3788 sp 00007fffe882ade8 error 4 in libc-2.13.so[7fe21856c000+17d000]
With strace:
futex(0x7f1115c05ba8, FUTEX_WAKE_PRIVATE, 2147483647) = 0
stat("/var/run/libvirt/lxc/instance-0000000c.xml", {st_mode=S_IFREG|0600, st_size=1980, ...}) = 0
stat("/var/run/libvirt/lxc/instance-0000000c.xml", {st_mode=S_IFREG|0600, st_size=1980, ...}) = 0
stat("/var/run/libvirt/lxc/instance-0000000c.xml", {st_mode=S_IFREG|0600, st_size=1980, ...}) = 0
open("/var/run/libvirt/lxc/instance-0000000c.xml", O_RDONLY) = 5
lseek(5, 0, SEEK_CUR) = 0
read(5, "<!--\nWARNING: THIS IS AN AUTO-GE"..., 8192) = 1980
read(5, "", 6212) = 0
brk(0x261e000) = 0x261e000
close(5) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Segmentation fault
Full strace on pastebin:
http://pastebin.com/qdJFFudn
With gdb:
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
2012-04-19 19:11:37.358+0000: 14299: info : libvirt version: 0.9.11
2012-04-19 19:11:37.358+0000: 14299: warning : lxcCapsInit:77 : Failed to get host power management capabilities
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff6240788 in random_r () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt
#0 0x00007ffff6240788 in random_r () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x000000000043e906 in ?? ()
#2 0x0000000000434374 in ?? ()
#3 0x0000000000469055 in ?? ()
#4 0x0000000000469194 in ?? ()
#5 0x000000000044d7c5 in ?? ()
#6 0x000000000045e819 in ?? ()
#7 0x000000000045fdd2 in ?? ()
#8 0x00000000004606cb in ?? ()
#9 0x0000000000408d6a in ?? ()
#10 0x00007ffff6227ead in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
#11 0x000000000040b221 in ?? ()
#12 0x00007fffffffdfc8 in ?? ()
#13 0x000000000000001c in ?? ()
#14 0x0000000000000005 in ?? ()
00007fffffffe270 in ?? ()
#16 0x00007fffffffe28d in ?? ()
#17 0x00007fffffffe294 in ?? ()
#18 0x00007fffffffe2a6 in ?? ()
#19 0x00007fffffffe2a9 in ?? ()
#20 0x0000000000000000 in ?? ()
Best regards.
Sam
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable')
rchitecture: amd64 (x86_64)
nel: Linux 3.2.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash
Versions of packages libvirt-bin depends on:
ii adduser 3.113+nmu1
ii gettext-base 0.18.1.1-5
ii libavahi-client3 0.6.31-1
ii libavahi-common3 0.6.31-1
ii libblkid1 2.20.1-4
ii libc6 2.13-30
ii libcap-ng0 0.6.6-1
ii libdevmapper1.02.1 2:1.02.67-2
ii libgcrypt11 1.5.0-3
ii libgnutls26 2.12.18-1
ii libnetcf1 0.1.9-2
ii libnl1 1.1-7
ii libnuma1 2.0.8~rc3-1
ii libparted0debian1 2.3-9.1
ii libpcap0.8 1.2.1-1
ii libpciaccess0 0.13.1-1
ii libreadline6 6.2-8
ii libsasl2-2 2.1.25.dfsg1-4
ii libudev0 175-3.1
ii libvirt0 0.9.11-2
ii libxenstore3.0 4.1.2-4
ii libxml2 2.7.8.dfsg-8
ii libyajl2 2.0.4-2
ii logrotate 3.8.1-1
Versions of packages libvirt-bin recommends:
ii bridge-utils 1.5-2
ii dmidecode 2.11-6
ii dnsmasq-base 2.60-2
ii ebtables 2.0.9.2-2.1
ii gawk 1:4.0.1+dfsg-1
ii iproute 20120319-1
ii iptables 1.4.13-1
ii libxml2-utils 2.7.8.dfsg-8
ii netcat-openbsd 1.105-5
ii parted 2.3-9.1
ii qemu-kvm 1.0+dfsg-11
Versions of packages libvirt-bin suggests:
pn policykit-1 <none>
pn radvd <none>
-- Configuration Files:
/etc/libvirt/lxc.conf changed:
log_with_libvirtd = 1
-- no debconf information
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Libvirt Maintainers <pkg-libvirt-maintainers@lists.alioth.debian.org>:
Bug#669457; Package libvirt-bin.
(Mon, 11 Feb 2013 15:33:06 GMT) (full text, mbox, link).
Acknowledgement sent
to Guido Günther <agx@sigxcpu.org>:
Extra info received and forwarded to list. Copy sent to Debian Libvirt Maintainers <pkg-libvirt-maintainers@lists.alioth.debian.org>.
(Mon, 11 Feb 2013 15:33:06 GMT) (full text, mbox, link).
Message #10 received at 669457@bugs.debian.org (full text, mbox, reply):
Hi,
On Thu, Apr 19, 2012 at 09:17:28PM +0200, Samuel Hassine wrote:
> Package: libvirt-bin
> Version: 0.9.11-2
> Severity: important
>
> Hi mainteners,
>
> We are trying to run a LXC container through libvirt binary with the following command:
>
> /usr/lib/libvirt/libvirt_lxc --name instance-0000000c --console 22 --handshake 25 --background --veth veth1
Is this how you'r invoking it our how libvirt invokes it? I can't seem
to reproduct this with 1.0.2. Could you check? If it still breaks please
attache the domain xml as well.
Cheers,
-- Guido
>
> We have the error:
>
> root@PAR-SRV-02-MASTER:/# /usr/lib/libvirt/libvirt_lxc --name instance-0000000c --console 22 --handshake 25 --background --veth veth1
> 2012-04-19 19:10:27.189+0000: 14242: info : libvirt version: 0.9.11
> 2012-04-19 19:10:27.189+0000: 14242: warning : lxcCapsInit:77 : Failed to get host power management capabilities
> Segmentation fault
>
> In the syslog:
>
> Apr 19 20:58:22 PAR-SRV-02-MASTER kernel: [ 3122.548430] libvirt_lxc[13788]: segfault at 0 ip 00007f960ae68788 sp 00007fff55eaeb38 error 4 in libc-2.13.so[7f960ae31000+17d000]
> Apr 19 21:10:27 PAR-SRV-02-MASTER kernel: [ 3846.923857] libvirt_lxc[14242]: segfault at 0 ip 00007fe2185a3788 sp 00007fffe882ade8 error 4 in libc-2.13.so[7fe21856c000+17d000]
>
> With strace:
>
> futex(0x7f1115c05ba8, FUTEX_WAKE_PRIVATE, 2147483647) = 0
> stat("/var/run/libvirt/lxc/instance-0000000c.xml", {st_mode=S_IFREG|0600, st_size=1980, ...}) = 0
> stat("/var/run/libvirt/lxc/instance-0000000c.xml", {st_mode=S_IFREG|0600, st_size=1980, ...}) = 0
> stat("/var/run/libvirt/lxc/instance-0000000c.xml", {st_mode=S_IFREG|0600, st_size=1980, ...}) = 0
> open("/var/run/libvirt/lxc/instance-0000000c.xml", O_RDONLY) = 5
> lseek(5, 0, SEEK_CUR) = 0
> read(5, "<!--\nWARNING: THIS IS AN AUTO-GE"..., 8192) = 1980
> read(5, "", 6212) = 0
> brk(0x261e000) = 0x261e000
> close(5) = 0
> --- SIGSEGV (Segmentation fault) @ 0 (0) ---
> +++ killed by SIGSEGV +++
> Segmentation fault
>
> Full strace on pastebin:
>
> http://pastebin.com/qdJFFudn
>
> With gdb:
>
> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
> 2012-04-19 19:11:37.358+0000: 14299: info : libvirt version: 0.9.11
> 2012-04-19 19:11:37.358+0000: 14299: warning : lxcCapsInit:77 : Failed to get host power management capabilities
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x00007ffff6240788 in random_r () from /lib/x86_64-linux-gnu/libc.so.6
> (gdb) bt
> #0 0x00007ffff6240788 in random_r () from /lib/x86_64-linux-gnu/libc.so.6
> #1 0x000000000043e906 in ?? ()
> #2 0x0000000000434374 in ?? ()
> #3 0x0000000000469055 in ?? ()
> #4 0x0000000000469194 in ?? ()
> #5 0x000000000044d7c5 in ?? ()
> #6 0x000000000045e819 in ?? ()
> #7 0x000000000045fdd2 in ?? ()
> #8 0x00000000004606cb in ?? ()
> #9 0x0000000000408d6a in ?? ()
> #10 0x00007ffff6227ead in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
> #11 0x000000000040b221 in ?? ()
> #12 0x00007fffffffdfc8 in ?? ()
> #13 0x000000000000001c in ?? ()
> #14 0x0000000000000005 in ?? ()
> 00007fffffffe270 in ?? ()
> #16 0x00007fffffffe28d in ?? ()
> #17 0x00007fffffffe294 in ?? ()
> #18 0x00007fffffffe2a6 in ?? ()
> #19 0x00007fffffffe2a9 in ?? ()
> #20 0x0000000000000000 in ?? ()
>
> Best regards.
> Sam
>
> -- System Information:
> Debian Release: wheezy/sid
> APT prefers unstable
> APT policy: (500, 'unstable')
> rchitecture: amd64 (x86_64)
>
> nel: Linux 3.2.0-2-amd64 (SMP w/8 CPU cores)
> Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1)
> Shell: /bin/sh linked to /bin/dash
>
> Versions of packages libvirt-bin depends on:
> ii adduser 3.113+nmu1
> ii gettext-base 0.18.1.1-5
> ii libavahi-client3 0.6.31-1
> ii libavahi-common3 0.6.31-1
> ii libblkid1 2.20.1-4
> ii libc6 2.13-30
> ii libcap-ng0 0.6.6-1
> ii libdevmapper1.02.1 2:1.02.67-2
> ii libgcrypt11 1.5.0-3
> ii libgnutls26 2.12.18-1
> ii libnetcf1 0.1.9-2
> ii libnl1 1.1-7
> ii libnuma1 2.0.8~rc3-1
> ii libparted0debian1 2.3-9.1
> ii libpcap0.8 1.2.1-1
> ii libpciaccess0 0.13.1-1
> ii libreadline6 6.2-8
> ii libsasl2-2 2.1.25.dfsg1-4
> ii libudev0 175-3.1
> ii libvirt0 0.9.11-2
> ii libxenstore3.0 4.1.2-4
> ii libxml2 2.7.8.dfsg-8
> ii libyajl2 2.0.4-2
> ii logrotate 3.8.1-1
>
> Versions of packages libvirt-bin recommends:
> ii bridge-utils 1.5-2
> ii dmidecode 2.11-6
> ii dnsmasq-base 2.60-2
> ii ebtables 2.0.9.2-2.1
> ii gawk 1:4.0.1+dfsg-1
> ii iproute 20120319-1
> ii iptables 1.4.13-1
> ii libxml2-utils 2.7.8.dfsg-8
> ii netcat-openbsd 1.105-5
> ii parted 2.3-9.1
> ii qemu-kvm 1.0+dfsg-11
>
> Versions of packages libvirt-bin suggests:
> pn policykit-1 <none>
> pn radvd <none>
>
> -- Configuration Files:
> /etc/libvirt/lxc.conf changed:
> log_with_libvirtd = 1
>
>
> -- no debconf information
>
>
Reply sent
to Guido Günther <agx@sigxcpu.org>:
You have taken responsibility.
(Sat, 09 Mar 2013 15:15:04 GMT) (full text, mbox, link).
Notification sent
to Samuel Hassine <samuel.hassine@anotherservice.com>:
Bug acknowledged by developer.
(Sat, 09 Mar 2013 15:15:04 GMT) (full text, mbox, link).
Message #15 received at 669457-done@bugs.debian.org (full text, mbox, reply):
Version: 1.0.3-1
Hi,
I can't reproduce this here whith any recent version and there wasn't
any feedback from the submitter so marking this bug as fixed with
in experimental version.
Cheers,
-- Guido
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Libvirt Maintainers <pkg-libvirt-maintainers@lists.alioth.debian.org>:
Bug#669457; Package libvirt-bin.
(Fri, 05 Apr 2013 19:09:04 GMT) (full text, mbox, link).
Acknowledgement sent
to "gustavo panizzo <gfa>" <gfa@zumbi.com.ar>:
Extra info received and forwarded to list. Copy sent to Debian Libvirt Maintainers <pkg-libvirt-maintainers@lists.alioth.debian.org>.
(Fri, 05 Apr 2013 19:09:04 GMT) (full text, mbox, link).
Message #20 received at 669457@bugs.debian.org (full text, mbox, reply):
Package: libvirt-bin
Version: 1.0.4-1
Followup-For: Bug #669457
i can confirm this bug still affects 1.0.4-1
i think this patch should be applied, it looks to me like it was partially reverted
http://libvirt.org/git/?p=libvirt.git;a=commit;h=57349ffc10290eed2cb25ca7cfb4b34ab5003156
thanks
-- System Information:
Debian Release: 7.0
APT prefers testing
APT policy: (900, 'testing'), (500, 'testing-updates'), (300, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.2.0-4-amd64 (SMP w/2 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.113+nmu3
ii gettext-base 0.18.1.1-9
ii libaudit0 1:1.7.18-1.1
ii libavahi-client3 0.6.31-2
ii libavahi-common3 0.6.31-2
ii libblkid1 2.20.1-5.3
ii libc6 2.13-38
ii libcap-ng0 0.6.6-2
ii libdbus-1-3 1.6.8-1
ii libdevmapper1.02.1 2:1.02.74-7
ii libgcrypt11 1.5.0-5
ii libgnutls26 2.12.20-4
ii libnetcf1 1:0.2.3-1
ii libnl-3-200 3.2.7-4
ii libnl-route-3-200 3.2.7-4
ii libnuma1 2.0.8~rc4-1
ii libparted0debian1 2.3-12
ii libpcap0.8 1.3.0-1
ii libpciaccess0 0.13.1-2
ii libreadline6 6.2+dfsg-0.1
ii libsasl2-2 2.1.25.dfsg1-6
ii libudev0 175-7.1
ii libvirt0 1.0.4-1
ii libxenstore3.0 4.1.4-2
ii libxml2 2.8.0+dfsg1-7+nmu1
ii libyajl2 2.0.4-2
ii logrotate 3.8.1-4
Versions of packages libvirt-bin recommends:
ii bridge-utils 1.5-6
ii dmidecode 2.11-9
ii dnsmasq-base 2.62-3+deb7u1
ii ebtables 2.0.10.4-1
ii gawk 1:4.0.1+dfsg-2.1
ii iproute 20120521-3+b3
ii iptables 1.4.14-3.1
ii libxml2-utils 2.8.0+dfsg1-7+nmu1
ii netcat-openbsd 1.105-7
ii parted 2.3-12
ii pm-utils 1.4.1-9
ii qemu-kvm 1.1.2+dfsg-6
Versions of packages libvirt-bin suggests:
pn auditd <none>
ii policykit-1 0.105-3
pn radvd <none>
pn systemtap <none>
-- no debconf information
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Libvirt Maintainers <pkg-libvirt-maintainers@lists.alioth.debian.org>:
Bug#669457; Package libvirt-bin.
(Fri, 05 Apr 2013 19:57:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Guido Günther <agx@sigxcpu.org>:
Extra info received and forwarded to list. Copy sent to Debian Libvirt Maintainers <pkg-libvirt-maintainers@lists.alioth.debian.org>.
(Fri, 05 Apr 2013 19:57:04 GMT) (full text, mbox, link).
Message #25 received at 669457@bugs.debian.org (full text, mbox, reply):
On Fri, Apr 05, 2013 at 03:58:03PM -0300, gustavo panizzo <gfa> wrote:
> Package: libvirt-bin
> Version: 1.0.4-1
> Followup-For: Bug #669457
>
> i can confirm this bug still affects 1.0.4-1
>
> i think this patch should be applied, it looks to me like it was partially reverted
> http://libvirt.org/git/?p=libvirt.git;a=commit;h=57349ffc10290eed2cb25ca7cfb4b34ab5003156
The bug is still missing the requested information.
Cheers,
-- Guido
Added tag(s) moreinfo.
Request was from Guido Günther <agx@sigxcpu.org>
to control@bugs.debian.org.
(Fri, 05 Apr 2013 19:57:13 GMT) (full text, mbox, link).
No longer marked as fixed in versions 1.0.3-1.
Request was from Laurent Bigonville <bigon@debian.org>
to control@bugs.debian.org.
(Fri, 12 Jul 2013 12:57:04 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Libvirt Maintainers <pkg-libvirt-maintainers@lists.alioth.debian.org>:
Bug#669457; Package libvirt-bin.
(Fri, 12 Jul 2013 13:09:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Laurent Bigonville <bigon@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Libvirt Maintainers <pkg-libvirt-maintainers@lists.alioth.debian.org>.
(Fri, 12 Jul 2013 13:09:04 GMT) (full text, mbox, link).
Message #34 received at 669457@bugs.debian.org (full text, mbox, reply):
Hi,
"gustavo panizzo <gfa>" <gfa@zumbi.com.ar> wrote:
> i can confirm this bug still affects 1.0.4-1
>
> i think this patch should be applied, it looks to me like it was
> partially reverted
> http://libvirt.org/git/?p=libvirt.git;a=commit;h=57349ffc10290eed2cb25ca7cfb4b34ab5003156
See:
http://libvirt.org/git/?p=libvirt.git;a=commit;h=87de27b7f9296c90b6f4e35eeb5448db491dcba2
This patch is in 0.10.0~rc1.
The initial patch was included in 0.9.13~rc1, not sure this is actually
the same issue.
Cheers
Laurent Bigonville
Marked as fixed in versions libvirt/0.9.13~rc1-1.
Request was from Laurent Bigonville <bigon@debian.org>
to control@bugs.debian.org.
(Fri, 12 Jul 2013 13:09:07 GMT) (full text, mbox, link).
No longer marked as found in versions libvirt/1.0.4-1.
Request was from Andreas Beckmann <anbe@debian.org>
to control@bugs.debian.org.
(Sat, 02 Nov 2013 15:58:20 GMT) (full text, mbox, link).
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Wed, 04 Dec 2013 07:30:22 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Wed Oct 11 23:40:33 2017;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.