[libvirt] [PATCH] qemu: Fix crash in qemucapsprobe

Martin Kletzander mkletzan at redhat.com
Tue Sep 27 12:27:33 UTC 2016


On Tue, Sep 27, 2016 at 01:47:10PM +0200, Jiri Denemark wrote:
>The qemucapsprobe helper calls virQEMUCapsInitHostCPUModel with
>caps == NULL, causing the following crash:
>
>    Program received signal SIGSEGV, Segmentation fault.
>    #0  0x00007ffff788775f in virQEMUCapsInitHostCPUModel
>        (qemuCaps=qemuCaps at entry=0x649680, host=host at entry=0x10) at
>        src/qemu/qemu_capabilities.c:2969
>    #1  0x00007ffff7889dbf in virQEMUCapsNewForBinaryInternal
>        (caps=caps at entry=0x0, binary=<optimized out>,
>        libDir=libDir at entry=0x4033f6 "/tmp", cacheDir=cacheDir at entry=0x0,
>        runUid=runUid at entry=4294967295, runGid=runGid at entry=4294967295,
>        qmpOnly=true) at src/qemu/qemu_capabilities.c:4039
>    #2  0x0000000000401702 in main (argc=2, argv=0x7fffffffd968) at
>        tests/qemucapsprobe.c:73
>
>Signed-off-by: Jiri Denemark <jdenemar at redhat.com>
>---

Some would say that you should put the causing commit
(68c7011856ad0033dff55a1b2c7b9749ce98e439) in the message, but I'm not
one of them.  So just ACK.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20160927/c8f503eb/attachment-0001.sig>


More information about the libvir-list mailing list