[Pkg-libvirt-maintainers] Bug#697457: Bug#697457: libvirt-bin crash at startup — some tests

Guido Günther agx at sigxcpu.org
Mon Jan 7 11:34:20 UTC 2013


On Mon, Jan 07, 2013 at 07:34:49PM +1100, Thom wrote:
> > I fail to parse this. Pleasae use a C locale for (non locale related) bugreports.
> 
> I'm sorry it's my fault
> 
> Repost with LANG=C and GDB (I'm not sure what to used it correctly)
> 
> 
> • amd64
> • libvirt version: 1.0.1
> • qemu-kvm version: 1.1.2
> 
> 
> user at host:~$ export LANG=C
> 
> // downgrade 1.0.1-3 → 0.9.12-5
> 
> user at host:~$ sudo aptitude -t sid
> dpkg: warning: downgrading libvirt0-dbg from 1.0.1-3 to 0.9.12-5
> (Reading database ... 44158 files and directories currently installed.)
> Preparing to replace libvirt0-dbg 1.0.1-3 (using .../libvirt0-dbg_0.9.12-5_amd64.deb) ...
> Unpacking replacement libvirt0-dbg ...
> dpkg: warning: downgrading libvirt-bin from 1.0.1-3 to 0.9.12-5
> Preparing to replace libvirt-bin 1.0.1-3 (using .../libvirt-bin_0.9.12-5_amd64.deb) ...
> Unpacking replacement libvirt-bin ...
> dpkg: warning: downgrading python-libvirt from 1.0.1-3 to 0.9.12-5
> Preparing to replace python-libvirt 1.0.1-3 (using .../python-libvirt_0.9.12-5_amd64.deb) ...
> Unpacking replacement python-libvirt ...
> dpkg: warning: downgrading libvirt0 from 1.0.1-3 to 0.9.12-5
> Preparing to replace libvirt0 1.0.1-3 (using .../libvirt0_0.9.12-5_amd64.deb) ...
> Unpacking replacement libvirt0 ...
> Processing triggers for man-db ...
> (Reading database ... 44110 files and directories currently installed.)
> Removing libaudit0 ...
> Removing libnl-route-3-200:amd64 ...
> Removing libnl-3-200:amd64 ...
> Removing vbetool ...
> Removing libx86-1:amd64 ...
> Removing pm-utils ...
> Processing triggers for man-db ...
> Setting up libvirt0 (0.9.12-5) ...
> Setting up libvirt0-dbg (0.9.12-5) ...
> Setting up libvirt-bin (0.9.12-5) ...
> Installing new version of config file /etc/libvirt/libvirtd.conf ...
> Installing new version of config file /etc/libvirt/lxc.conf ...
> Installing new version of config file /etc/libvirt/qemu.conf ...
> Installing new version of config file /etc/default/libvirt-bin ...
> Installing new version of config file /etc/init.d/libvirt-bin ...
> Installing new version of config file /etc/init.d/libvirt-guests ...
> Installing new version of config file /etc/sasl2/libvirt.conf ...
> [ ok ] Stopping libvirt management daemon: libvirtd not running.
> [ ok ] Starting libvirt management daemon: libvirtd.
> Setting up python-libvirt (0.9.12-5) ...
> Press Return to continue.
> 
> // Check libvirt-bin status — ok
> 
> user at host:~$ sudo /etc/init.d/libvirt-bin status
> [ ok ] Checking status of libvirt management daemon: libvirtd running.
> 
> // Try to use virt-manager — success: guest system starts and works fine
> 
> user at host:~$ virt-manager
> 
> // Now try to upgrade libvirt0 / libvirt-bin / python-libvirt from experimental (0.9.12-5 → 1.0.1-3)
> 
> user at host:~$ sudo aptitude -t experimental
> Reading changelogs... Done
> Selecting previously unselected package libnl-3-200:amd64.
> (Reading database ... 44007 files and directories currently installed.)
> Unpacking libnl-3-200:amd64 (from .../libnl-3-200_3.2.7-4_amd64.deb) ...
> Selecting previously unselected package libnl-route-3-200:amd64.
> Unpacking libnl-route-3-200:amd64 (from .../libnl-route-3-200_3.2.7-4_amd64.deb) ...
> Selecting previously unselected package libx86-1:amd64.
> Unpacking libx86-1:amd64 (from .../libx86-1_1.1+ds1-10_amd64.deb) ...
> Selecting previously unselected package libaudit0.
> Unpacking libaudit0 (from .../libaudit0_1%3a1.7.18-1.1_amd64.deb) ...
> Preparing to replace libvirt0-dbg 0.9.12-5 (using .../libvirt0-dbg_1.0.1-3_amd64.deb) ...
> Unpacking replacement libvirt0-dbg ...
> Preparing to replace libvirt-bin 0.9.12-5 (using .../libvirt-bin_1.0.1-3_amd64.deb) ...
> Unpacking replacement libvirt-bin ...
> Preparing to replace libvirt0 0.9.12-5 (using .../libvirt0_1.0.1-3_amd64.deb) ...
> Unpacking replacement libvirt0 ...
> Selecting previously unselected package pm-utils.
> Unpacking pm-utils (from .../pm-utils_1.4.1-9_all.deb) ...
> Preparing to replace python-libvirt 0.9.12-5 (using .../python-libvirt_1.0.1-3_amd64.deb) ...
> Unpacking replacement python-libvirt ...
> Selecting previously unselected package vbetool.
> Unpacking vbetool (from .../vbetool_1.1-3_amd64.deb) ...
> Processing triggers for man-db ...
> Setting up libnl-3-200:amd64 (3.2.7-4) ...
> Setting up libnl-route-3-200:amd64 (3.2.7-4) ...
> Setting up libx86-1:amd64 (1.1+ds1-10) ...
> Setting up libaudit0 (1:1.7.18-1.1) ...
> Setting up libvirt0 (1.0.1-3) ...
> Setting up libvirt0-dbg (1.0.1-3) ...
> Setting up libvirt-bin (1.0.1-3) ...
> Installing new version of config file /etc/init.d/libvirt-guests ...
> Installing new version of config file /etc/init.d/libvirt-bin ...
> Installing new version of config file /etc/sasl2/libvirt.conf ...
> Installing new version of config file /etc/libvirt/libvirtd.conf ...
> Installing new version of config file /etc/libvirt/qemu.conf ...
> Installing new version of config file /etc/libvirt/lxc.conf ...
> Installing new version of config file /etc/default/libvirt-bin ...
> [ ok ] Stopping libvirt management daemon: libvirtd.
> [ ok ] Starting libvirt management daemon: libvirtd.
> Setting up pm-utils (1.4.1-9) ...
> Setting up python-libvirt (1.0.1-3) ...
> Setting up vbetool (1.1-3) ...
> Press Return to continue.
> 
> // Check libvirt-bin status — fail
> 
> user at host:~$ sudo /etc/init.d/libvirt-bin status
> [FAIL] Checking status of libvirt management daemon: libvirtd not running failed!
> 
> user at host:~$ sudo -i
> 
> root at host:~# gdb /usr/sbin/libvirtd
> GNU gdb (GDB) 7.4.1-debian
> Copyright (C) 2012 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
> and "show warranty" for details.
> This GDB was configured as "x86_64-linux-gnu".
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>...
> Reading symbols from /usr/sbin/libvirtd...Reading symbols from /usr/lib/debug/usr/sbin/libvirtd...done.
> done.
> (gdb) ^Z
> [1]+  Stopped                 gdb /usr/sbin/libvirtd
> 
> // Find PID
> 
> root at host:~# ps -o etime,pid `pgrep libvirt`
>     ELAPSED   PID
>       02:01 22878
>       02:01 22879
>       00:21 23917
>       00:00 24114
> 
> // Attaching GDB
> 
> root at host:~# fg
> gdb /usr/sbin/libvirtd
> attach 22878
> Attaching to program: /usr/sbin/libvirtd, process 22878
> Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols found)...done.
> Loaded symbols for /lib64/ld-linux-x86-64.so.2
> 0x00007f2940825553 in ?? ()
> (gdb) thread apply all bt full
> 
> Thread 1 (process 22878):
> #0  0x00007f2940825553 in ?? ()
> No symbol table info available.
> #1  0x00000000004066ac in ?? ()
> No symbol table info available.
> #2  0x000000001b858b93 in ?? ()
> No symbol table info available.
> #3  0x00007f2940eebc02 in ?? () from /lib64/ld-linux-x86-64.so.2
> No symbol table info available.
> Backtrace stopped: previous frame inner to this frame (corrupt stack?)
> (gdb) quit
> A debugging session is active.
> 
>         Inferior 1 [process 22878] will be detached.
> 
> Quit anyway? (y or n) y
> Detaching from program: /usr/sbin/libvirtd, process 22878
> 
> // If the log of gdb is useless, I need step by step instructions (I'm not a programmer or developer, just a user)

You need to install the libvirt debug package. It's also better to run
libvirtd from gdb, that is:

gdb /usr/sbin/libvirtd
# run


Cheers,
 -- Guido

> 



More information about the Pkg-libvirt-maintainers mailing list