[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Problem under OSX Lion: GThread-ERROR **: GThread syste
From: |
Andreas Färber |
Subject: |
Re: [Qemu-devel] Problem under OSX Lion: GThread-ERROR **: GThread system may only be initialized once |
Date: |
Mon, 31 Oct 2011 17:40:02 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 |
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