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 to be running in multithreaded mode in order for the GSlice allocator to be thread-safe. This is why you see crashes without g_thread_init().