[libvirt] [PATCH v2] virsh: Correctly initialize libvirt

Eric Blake eblake at redhat.com
Mon May 16 15:05:36 UTC 2011


On 05/16/2011 08:59 AM, Jiri Denemark wrote:
> virsh didn't call virInitialize(), which (among other things)
> initializes virLastErr thread local variable. As a result of that, virsh
> could just segfault in virEventRegisterDefaultImpl() since that is the
> first call that touches (resets) virLastErr.
> 
> I have no idea what lucky coincidence made this bug visible but I was
> able to reproduce it in 100% cases but only in one specific environment
> which included building in sandbox.
> ---
>  src/libvirt.c |    3 +++
>  tools/virsh.c |   13 +++++++++----
>  2 files changed, 12 insertions(+), 4 deletions(-)

ACK.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

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


More information about the libvir-list mailing list