Package: ruby-libvirt / 0.5.1-3

Metadata

Package Version Patches format
ruby-libvirt 0.5.1-3 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
0001 Don t free more entries than we retrieved.patch | (download)

ext/libvirt/connect.c | 4 2 + 2 - 0 !
ext/libvirt/domain.c | 2 1 + 1 - 0 !
ext/libvirt/nodedevice.c | 2 1 + 1 - 0 !
ext/libvirt/storage.c | 2 1 + 1 - 0 !
4 files changed, 5 insertions(+), 5 deletions(-)

 don't free more entries than we retrieved

The vir*List* functions return the number of fetched entries. We mustn't
free more, otherwise we'll crash like

 #0  0xb779d424 in __kernel_vsyscall ()
 #1  0xb733981f in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
 #2  0xb733ccd3 in __GI_abort () at abort.c:90
 #3  0xb7376275 in __libc_message (do_abort=do_abort@entry=2, fmt=fmt@entry=0xb74767d0 "*** Error in `%s': %s: 0x%s ***\n") at ../sysdeps/unix/sysv/linux/libc_fatal.c:199
 #4  0xb7380e52 in malloc_printerr (action=<optimized out>, str=<optimized out>, ptr=0xb7087000) at malloc.c:4923
 #5  0xb7381b90 in _int_free (av=0xb74b7440 <main_arena>, p=0xb7086ff8, have_lock=0) at malloc.c:3779
 #6  0xb75c059f in ruby_xfree () from /usr/lib/libruby-1.9.1.so.1.9
 #7  0xb7076448 in ruby_libvirt_generate_list () from /usr/lib/ruby/vendor_ruby/1.9.1/i486-linux/_libvirt.so
...

since we're trying to free random addresses.

0002 Allow to set URI via environment variable.patch | (download)

tests/test_nodedevice.rb | 2 1 + 1 - 0 !
tests/test_open.rb | 36 18 + 18 - 0 !
tests/test_stream.rb | 2 1 + 1 - 0 !
tests/test_utils.rb | 2 2 + 0 - 0 !
4 files changed, 22 insertions(+), 20 deletions(-)

 allow to set uri via environment variable

This allows us to run tests with the destdriver like:

  RUBY_LIBVIRT_TEST_URI=test:///default \
  RUBYLIB=lib/:ext/libvirt/ \
  ruby tests/test_open.rb

0003 Don t run tests that require qemu system.patch | (download)

Rakefile | 8 3 + 5 - 0 !
1 file changed, 3 insertions(+), 5 deletions(-)

 don't run tests that require qemu:///system

We only want to run tests for now that work with the testdriver