[libvirt] libvirt sgefaults upon ctrl-c

Eric Blake eblake at redhat.com
Wed Aug 8 19:48:38 UTC 2012


On 08/08/2012 01:45 PM, Stefan Berger wrote:
> On 08/08/2012 03:00 PM, Eric Blake wrote:
>> Set LIBVIRT_AUTOSTART=0 when running test suites I don't see how that
>> patch can affect libvirtd, since it only touched tests/Makefile.am and
>> has no impact on libvirtd itself. 
> Indeed, the problem happens here:
> 
> commit 958499b0c12072e36d20effeddf4a400d9919bb8
> Author: Daniel P. Berrange <berrange at redhat.com>
> Date:   Wed Jul 11 14:35:52 2012 +0100

In which case, it is probably fixed here:

commit 411859278650b331fa4f06d52bee0aa8c0001ce5
Author: Guannan Ren <gren at redhat.com>
Date:   Wed Aug 8 17:32:22 2012 +0800

    rpc: fix a virObject typo error in struct _virNetServer

    This typo will crash libvirtd when it recevies signal SIGINT

diff --git a/src/rpc/virnetserver.c b/src/rpc/virnetserver.c
index a1ea038..15abb56 100644
--- a/src/rpc/virnetserver.c
+++ b/src/rpc/virnetserver.c
@@ -64,7 +64,7 @@ struct _virNetServerJob {
 };

 struct _virNetServer {
-    virObjectPtr object;
+    virObject object;

     virMutex lock;


-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120808/a8f3dc95/attachment-0001.sig>


More information about the libvir-list mailing list