Am 31.10.2011 17:36, schrieb Daniel P. Berrange: > On Mon, Oct 31, 2011 at 09:25:26AM -0700, Juan Pineda wrote: >> The current Qemu master branch crashes under OSX with a GThread error. >> Commenting out vlc.c line 2188 (call to g_thread_init) allows it to run >> successfully. > > As a general rule all calls to 'g_thread_init(NULL)' should be protected > by a conditional thus: > > if (!g_thread_supported()) > g_thread_init(NULL); > > Even though QEMU calls g_thread_init() very early in main(), there is > always the possibility that some library QEMU links to, has got an ELF > initializer, triggering before main(), which calls g_thread_init().
Thanks to both of you! I checked: vl.c is the only use without such condition. So it seems this regression was introduced through coroutine-gthread.c and is not specific to Darwin. I'll post a patch shortly. Andreas