[libvirt] SIGSEGV using virConnect.newStream with Python

Eric Blake eblake at redhat.com
Wed Aug 21 12:41:48 UTC 2013


On 08/21/2013 02:51 AM, Claudio Bley wrote:
> At Tue, 20 Aug 2013 11:34:56 +0200,
> Claudio Bley wrote:
>>
>> Hi.
>>
>> I tried this on Fedora 19, using libvirt 1.0.5 and also tested with
>> git v1.1.1-maint as well as git master on Ubuntu 12.04.
>>
>> How to reproduce:
>>
>> ---- python -----
>> import libvirt as l
>> c = l.virConnect("test:///default")
>> v = c.virStream()
>> -----------------
> 
> Sorry for the noise, I just discovered that one has to use the
> libvirt.open function in order to create a virConnect instance.

It's not noise - we should try harder to avoid a segv, even when the
caller doesn't make the right call to initiate a connection.

-- 
Eric Blake   eblake 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: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130821/9fb68127/attachment-0001.sig>


More information about the libvir-list mailing list