virConnectOpenReadOnly broken

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is just a note that the following program tickles a nasty (memory
corruptor?) bug somewhere in the open code.  I'm still trying to look
into the cause and will post a followup if I find the problem.

Rich.

  #include <libvirt/libvirt.h>
  #include <stdlib.h>
  #include <assert.h>
  
  int
  main ()
  {
    virConnectPtr conn;
  
    conn = virConnectOpenReadOnly ("xen+unix:///");
    assert (conn);
    virConnectClose (conn);
    exit (0);
  }

  $ gcc -Wall test.c -lvirt -o test
  $ ./test
  libvir: Domain error : invalid domain pointer in virDomainFree
  test: test.c:11: main: Assertion `conn' failed.
  Aborted

-- 
Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]