<div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">> If it is, then here is a result of command<br>

> [root@snow tmp]# LIBVIRT_DEBUG=yes virsh create ju >ham 2>&1<br>
> Segmentation fault</div></blockquote><div class="Ih2E3d">Now I have a patch (see next message), that fixes that problem. <br>
<br>Nevertheless, the other problem is still here and its name is 'pthread usage':<br><br>[root@snow tmp]# LIBVIRT_DEBUG=y gdb virsh<br>GNU gdb 6.6-alt3 (ALT Linux)<br>Copyright (C) 2006 Free Software Foundation, Inc.<br>
GDB is free software, covered by the GNU General Public License, and you are<br>welcome to change it and/or distribute copies of it under certain conditions.<br>Type "show copying" to see the conditions.<br>There is absolutely no warranty for GDB.  Type "show warranty" for details.<br>
This GDB was configured as "i586-alt-linux"...<br>Using host libthread_db library "/lib/libthread_db.so.1".<br>(gdb) run<br>Starting program: /usr/bin/virsh<br>[Thread debugging using libthread_db enabled]<br>
[New process 4187]<br>DEBUG: libvirt.c: virInitialize (register drivers)<br>DEBUG: libvirt.c: virRegisterDriver (registering Test as driver 0)<br>DEBUG: libvirt.c: virRegisterNetworkDriver (registering Test as network driver 0)<br>
DEBUG: libvirt.c: virRegisterStorageDriver (registering Test as storage driver 0)<br>DEBUG: libvirt.c: virRegisterDeviceMonitor (registering Test as device driver 0)<br>DEBUG: libvirt.c: virRegisterDriver (registering Xen as driver 1)<br>
DEBUG: libvirt.c: virRegisterDriver (registering OPENVZ as driver 2)<br>DEBUG: libvirt.c: virRegisterDriver (registering remote as driver 3)<br>DEBUG: libvirt.c: virRegisterNetworkDriver (registering remote as network driver 1)<br>
DEBUG: libvirt.c: virRegisterStorageDriver (registering remote as storage driver 1)<br>DEBUG: libvirt.c: virRegisterDeviceMonitor (registering remote as device driver 1)<br>DEBUG: libvirt.c: virConnectOpenAuth (name=(null), auth=0x6c26dc, flags=0)<br>
DEBUG: libvirt.c: do_open (no name, allowing driver auto-select)<br>DEBUG: libvirt.c: do_open (trying driver 0 (Test) ...)<br>DEBUG: libvirt.c: do_open (driver 0 Test returned DECLINED)<br>DEBUG: libvirt.c: do_open (trying driver 1 (Xen) ...)<br>
DEBUG: libvirt.c: do_open (driver 1 Xen returned DECLINED)<br>DEBUG: libvirt.c: do_open (trying driver 2 (OPENVZ) ...)<br>[New Thread -1208350512 (LWP 4187)]<br>DEBUG: util.c: virExec (/usr/sbin/vzctl --help)<br>DEBUG: libvirt.c: do_open (driver 2 OPENVZ returned SUCCESS)<br>
DEBUG: libvirt.c: do_open (network driver 0 Test returned DECLINED)<br>DEBUG: remote_internal.c: doRemoteOpen (proceeding with name = openvz:///system)<br>DEBUG: remote_internal.c: doRemoteOpen (Adding Handler for remote events)<br>
DEBUG: remote_internal.c: doRemoteOpen (virEventAddHandle failed: No addHandleImpl defined. continuing without events.)<br>DEBUG: libvirt.c: do_open (network driver 1 remote returned SUCCESS)<br>DEBUG: libvirt.c: do_open (storage driver 0 Test returned DECLINED)<br>
DEBUG: libvirt.c: do_open (storage driver 1 remote returned SUCCESS)<br>DEBUG: libvirt.c: do_open (node driver 0 Test returned DECLINED)<br>DEBUG: libvirt.c: do_open (node driver 1 remote returned DECLINED)<br>Welcome to virsh, the virtualization interactive terminal.<br>
<br>Type:  'help' for help with commands<br>       'quit' to quit<br><br>virsh # create joo<br>DEBUG: libvirt.c: virDomainCreateXML (conn=0x81ac910, xmlDesc=<domain type="openvz"><br>  <name>109</name><br>
  <memory>524288</memory><br>  <os><br>    <type>exe</type><br>  </os><br>  <devices><br>    <filesystem type="template"><br>      <source name="altlinux-Charibdis"/><br>
      <target dir="/"/><br>    </filesystem><br>    <interface type="bridge"><br>      <source bridge="mkvebr0"/><br>    </interface><br>  </devices><br></domain><br>
, flags=0)<br>DEBUG: util.c: virRun (/usr/sbin/vzctl --quiet create 109 --ostemplate altlinux-Charibdis)<br>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)<br>
DEBUG: util.c: virRun (/usr/sbin/vzctl --quiet start 109)<br>DEBUG: util.c: virRun (Command stdout: Adding interface veth109.0 to bridge mkvebr0 on CT0 for CT109<br>)<br>DEBUG: util.c: virRun (Command stderr: Error: an inet prefix is expected rather than "0".<br>
/usr/sbin/vznetaddbr: line 34: /proc/sys/net/ipv4/conf/veth109.0/proxy_arp: No such file or directory<br>/usr/sbin/vznetaddbr: line 35: /proc/sys/net/ipv4/conf/veth109.0/forwarding: No such file or directory<br>)<br>DEBUG: datatypes.c: virGetDomain (New hash entry 0x81c4b38)<br>
<br><virsh is sleeping, I typing Ctrl-C><br><br>Program received signal SIGINT, Interrupt.<br>[Switching to Thread -1208350512 (LWP 4187)]<br>0x00510de4 in __lll_lock_wait () from /lib/libpthread.so.0<br>(gdb) backtrace<br>
#0  0x00510de4 in __lll_lock_wait () from /lib/libpthread.so.0<br>#1  0x0050c695 in _L_lock_58 () from /lib/libpthread.so.0<br>#2  0x0050c0ea in pthread_mutex_lock () from /lib/libpthread.so.0<br>#3  0x0064ec1d in virDomainObjLock (obj=0x81c1ef0) at domain_conf.c:3503<br>
#4  0x00650a15 in virDomainFindByUUID (doms=0x81aca14, uuid=0x81c4b4c "+\211$�e\027�ITy#�e\fK�\021") at domain_conf.c:174<br>#5  0x0069ff65 in openvzDomainSetVcpus (dom=0x81c4b38, nvcpus=1) at openvz_driver.c:979<br>
#6  0x006a1cdc in openvzDomainCreateXML (conn=0x81ac910,<br>    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<br>
#7  0x00649862 in virDomainCreateXML (conn=0x81ac910,<br>    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<br>
#8  0x08056876 in cmdCreate (ctl=0xbfe46c58, cmd=0x81ba048) at virsh.c:896<br>#9  0x0804c166 in vshCommandRun (ctl=0xbfe46c58, cmd=0x81ba048) at virsh.c:6168<br>#10 0x080597ce in main (argc=1, argv=0xbfe46d34) at virsh.c:7139<br>
(gdb)<br></div></div>