[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [OpenVZ]



> If it is, then here is a result of command
> [root snow tmp]# LIBVIRT_DEBUG=yes virsh create ju >ham 2>&1
> Segmentation fault
Now I have a patch (see next message), that fixes that problem.

Nevertheless, the other problem is still here and its name is 'pthread usage':

[root snow tmp]# LIBVIRT_DEBUG=y gdb virsh
GNU gdb 6.6-alt3 (ALT Linux)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i586-alt-linux"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run
Starting program: /usr/bin/virsh
[Thread debugging using libthread_db enabled]
[New process 4187]
DEBUG: libvirt.c: virInitialize (register drivers)
DEBUG: libvirt.c: virRegisterDriver (registering Test as driver 0)
DEBUG: libvirt.c: virRegisterNetworkDriver (registering Test as network driver 0)
DEBUG: libvirt.c: virRegisterStorageDriver (registering Test as storage driver 0)
DEBUG: libvirt.c: virRegisterDeviceMonitor (registering Test as device driver 0)
DEBUG: libvirt.c: virRegisterDriver (registering Xen as driver 1)
DEBUG: libvirt.c: virRegisterDriver (registering OPENVZ as driver 2)
DEBUG: libvirt.c: virRegisterDriver (registering remote as driver 3)
DEBUG: libvirt.c: virRegisterNetworkDriver (registering remote as network driver 1)
DEBUG: libvirt.c: virRegisterStorageDriver (registering remote as storage driver 1)
DEBUG: libvirt.c: virRegisterDeviceMonitor (registering remote as device driver 1)
DEBUG: libvirt.c: virConnectOpenAuth (name=(null), auth=0x6c26dc, flags=0)
DEBUG: libvirt.c: do_open (no name, allowing driver auto-select)
DEBUG: libvirt.c: do_open (trying driver 0 (Test) ...)
DEBUG: libvirt.c: do_open (driver 0 Test returned DECLINED)
DEBUG: libvirt.c: do_open (trying driver 1 (Xen) ...)
DEBUG: libvirt.c: do_open (driver 1 Xen returned DECLINED)
DEBUG: libvirt.c: do_open (trying driver 2 (OPENVZ) ...)
[New Thread -1208350512 (LWP 4187)]
DEBUG: util.c: virExec (/usr/sbin/vzctl --help)
DEBUG: libvirt.c: do_open (driver 2 OPENVZ returned SUCCESS)
DEBUG: libvirt.c: do_open (network driver 0 Test returned DECLINED)
DEBUG: remote_internal.c: doRemoteOpen (proceeding with name = openvz:///system)
DEBUG: remote_internal.c: doRemoteOpen (Adding Handler for remote events)
DEBUG: remote_internal.c: doRemoteOpen (virEventAddHandle failed: No addHandleImpl defined. continuing without events.)
DEBUG: libvirt.c: do_open (network driver 1 remote returned SUCCESS)
DEBUG: libvirt.c: do_open (storage driver 0 Test returned DECLINED)
DEBUG: libvirt.c: do_open (storage driver 1 remote returned SUCCESS)
DEBUG: libvirt.c: do_open (node driver 0 Test returned DECLINED)
DEBUG: libvirt.c: do_open (node driver 1 remote returned DECLINED)
Welcome to virsh, the virtualization interactive terminal.

Type:  'help' for help with commands
       'quit' to quit

virsh # create joo
DEBUG: libvirt.c: virDomainCreateXML (conn=0x81ac910, xmlDesc=<domain type="openvz">
  <name>109</name>
  <memory>524288</memory>
  <os>
    <type>exe</type>
  </os>
  <devices>
    <filesystem type="template">
      <source name="altlinux-Charibdis"/>
      <target dir="/"/>
    </filesystem>
    <interface type="bridge">
      <source bridge="mkvebr0"/>
    </interface>
  </devices>
</domain>
, flags=0)
DEBUG: util.c: virRun (/usr/sbin/vzctl --quiet create 109 --ostemplate altlinux-Charibdis)
DEBUG: util.c: virRun (/usr/sbin/vzctl --quiet set 109 --netif_add eth0,52:54:00:60:E8:FF,veth109.0,52:54:00:60:E8:FF,mkvebr0 --save)
DEBUG: util.c: virRun (/usr/sbin/vzctl --quiet start 109)
DEBUG: util.c: virRun (Command stdout: Adding interface veth109.0 to bridge mkvebr0 on CT0 for CT109
)
DEBUG: util.c: virRun (Command stderr: Error: an inet prefix is expected rather than "0".
/usr/sbin/vznetaddbr: line 34: /proc/sys/net/ipv4/conf/veth109.0/proxy_arp: No such file or directory
/usr/sbin/vznetaddbr: line 35: /proc/sys/net/ipv4/conf/veth109.0/forwarding: No such file or directory
)
DEBUG: datatypes.c: virGetDomain (New hash entry 0x81c4b38)

<virsh is sleeping, I typing Ctrl-C>

Program received signal SIGINT, Interrupt.
[Switching to Thread -1208350512 (LWP 4187)]
0x00510de4 in __lll_lock_wait () from /lib/libpthread.so.0
(gdb) backtrace
#0  0x00510de4 in __lll_lock_wait () from /lib/libpthread.so.0
#1  0x0050c695 in _L_lock_58 () from /lib/libpthread.so.0
#2  0x0050c0ea in pthread_mutex_lock () from /lib/libpthread.so.0
#3  0x0064ec1d in virDomainObjLock (obj=0x81c1ef0) at domain_conf.c:3503
#4  0x00650a15 in virDomainFindByUUID (doms=0x81aca14, uuid=0x81c4b4c "+\211$�e\027�ITy#�e\fK�\021") at domain_conf.c:174
#5  0x0069ff65 in openvzDomainSetVcpus (dom=0x81c4b38, nvcpus=1) at openvz_driver.c:979
#6  0x006a1cdc in openvzDomainCreateXML (conn=0x81ac910,
    xml=0x81bed78 "<domain type=\"openvz\">\n  <name>109</name>\n  <memory>524288</memory>\n  <os>\n    <type>exe</type>\n  </os>\n  <devices>\n    <filesystem type=\"template\">\n      <source name=\"altlinux-Charibdis\"/>\n      <ta"..., flags=0) at openvz_driver.c:791
#7  0x00649862 in virDomainCreateXML (conn=0x81ac910,
    xmlDesc=0x81bed78 "<domain type=\"openvz\">\n  <name>109</name>\n  <memory>524288</memory>\n  <os>\n    <type>exe</type>\n  </os>\n  <devices>\n    <filesystem type=\"template\">\n      <source name=\"altlinux-Charibdis\"/>\n      <ta"..., flags=0) at libvirt.c:1365
#8  0x08056876 in cmdCreate (ctl=0xbfe46c58, cmd=0x81ba048) at virsh.c:896
#9  0x0804c166 in vshCommandRun (ctl=0xbfe46c58, cmd=0x81ba048) at virsh.c:6168
#10 0x080597ce in main (argc=1, argv=0xbfe46d34) at virsh.c:7139
(gdb)

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]