Re: [Qemu-devel] [PATCH v4 5/6] add regression tests for backup

2013-02-20 Thread Dietmar Maurer
> > Note: the call to g_thread_init() solves problems with g_slice_alloc() - > > without > that call we get arbitrary crashes. > > This should be a comment in the code. GLib needs to be running in > multithreaded mode in order for the GSlice allocator to be thread-safe. > This is why you see cra

Re: [Qemu-devel] [PATCH v4 5/6] add regression tests for backup

2013-02-20 Thread Stefan Hajnoczi
On Wed, Feb 20, 2013 at 10:32:02AM +0100, Dietmar Maurer wrote: > Simple regression tests using vma-reader and vma-writer. > > Note: the call to g_thread_init() solves problems with g_slice_alloc() - > without that call we get arbitrary crashes. This should be a comment in the code. GLib needs

[Qemu-devel] [PATCH v4 5/6] add regression tests for backup

2013-02-20 Thread Dietmar Maurer
Simple regression tests using vma-reader and vma-writer. Note: the call to g_thread_init() solves problems with g_slice_alloc() - without that call we get arbitrary crashes. Signed-off-by: Dietmar Maurer --- tests/Makefile | 11 +- tests/backup-test.c | 517