<div dir="ltr">i installed both xen-4.2.1 and libvirt-1.2.0 from the source only. i moved with the latest version of libvrirt.<div>i did the gdb in libvirt-1.2.0 and i raised the bug. Please find the following link for the bug report:</div>

<div><br></div><div><a href="https://bugzilla.redhat.com/show_bug.cgi?id=1044838">https://bugzilla.redhat.com/show_bug.cgi?id=1044838</a><br></div><div><br></div><div>regards,</div><div>cooldharma06.</div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Wed, Dec 18, 2013 at 6:33 PM, Michal Privoznik <span dir="ltr"><<a href="mailto:mprivozn@redhat.com" target="_blank">mprivozn@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div>On <a href="tel:18.12.2013%2007" value="+911812201307" target="_blank">18.12.2013 07</a>:17, cool dharma06 wrote:<br>

> i am using libvirt-1.1.4 with xen(libxl). When destroying the VM its<br>
> showing the following error :<br>
><br>
> virsh # destroy 4<br>
> error: Failed to destroy domain 4<br>
> error: End of file while reading data: Input/output error<br>
> error: One or more references were leaked after disconnect from the<br>
> hypervisor<br>
> error: Failed to reconnect to the hypervisor<br>
><br>
> virsh # list<br>
> error: failed to connect to the hypervisor<br>
> error: no valid connection<br>
> error: Failed to connect socket to '/var/run/libvirt/libvirt-sock':<br>
> Connection refused<br>
><br>
> already i send one request to this community to solve this problem. they<br>
> suggested to do gdb.<br>
><br>
> Any guide to do the gdb libvirtd. By googling i did the following things:<br>
><br>
> 1. i enable the logoutput and loglevel in libvirtd.conf<br>
<br>
</div><a href="http://wiki.libvirt.org/page/DebugLogs" target="_blank">http://wiki.libvirt.org/page/DebugLogs</a><br>
<div><br>
> 2. restarted the libvirtd with the changed configuration file.<br>
> 3. ps -aux | grep libvirtd<br>
> 4. gdb libvirtd pid<br>
> 5. then what i have to do to find the reason for this error.<br>
><br>
<br>
</div>You need to hit 'c[enter]' in the gdb console (and by [enter] I mean pressing the enter key not actually typing it onto console). Then you need to run 'virsh destroy 4' in a different console so you reproduce the crash. After this, when you return do gdb you should see a stack trace. It will point to line which caused the trouble. If not, you may need to install libvirt debug infos (actual command to do this is distro specific).<br>


<br>
Btw: you can join steps 3 and 4 into one:<br>
<br>
  gdb -p $(pgrep libvirtd)<br>
<br>
Once you have the stack trace and the logs, please do open a new bug against libvirt:<br>
<br>
   <a href="https://bugzilla.redhat.com/enter_bug.cgi?product=Virtualization%20Tools" target="_blank">https://bugzilla.redhat.com/enter_bug.cgi?product=Virtualization%20Tools</a><br>
<br>
and attach the stack trace and the debug logs.<br>
<span><font color="#888888"><br>
Michal<br>
<br>
</font></span></blockquote></div><br></div></div>